-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
164 lines (164 loc) · 5.86 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"$schema": "http://json-schema.org/draft-07/schema#",
"id": "config.schema.json",
"name": "Schema for HLA-KIR Imputation Workflow",
"type": "object",
"required": ["project"],
"properties": {
"KIRIMP_PANEL_URL": {
"type": "string",
"default": "http://imp.science.unimelb.edu.au/kir/static/kirimp.uk1.snp.info.csv"
},
"SHAPEIT_GENMAP_URL": {
"type": "string",
"default": "https://github.com/odelaneau/shapeit4/blob/master/maps/genetic_maps.b37.tar.gz?raw=true"
},
"BCFTOOLS_THREADS": {
"type": "integer",
"default": 4
},
"PLINK_THREADS": {
"type": "integer",
"default": 4
},
"SHAPEIT_THREADS": {
"type": "integer",
"default": 4
},
"FREQ_ENCODE_SNPS_THREADS": {
"type": "integer",
"default": 4
},
"project": {
"$ref": "#/definitions/project",
"description": "settings for a specific run"
}
},
"definitions": {
"project": {
"type": "object",
"patternProperties": {
"^[^./]+$": {
"type": "object",
"id": "project_id",
"additionalProperties": false,
"properties": {
"liftover": {
"$ref": "#/definitions/liftover",
"description": "settings relating to converting refernce hg16/hg17/hg18 --> hg19",
"default": {
"reference": "HG18"
}
},
"freq_encode_snps": {
"$ref": "#/definitions/freq_encode_snps",
"description": "setting for re-encoding vcf variants to reference panel frequency",
"default": {
"vcf": "output/{project}/liftover/04_hg19_vcf/{project}.{reference}ToHg19.vcf.gz",
"additional": "--outlier-threshold 0.1"
}
},
"shapeit": {
"$ref": "#/definitions/shapeit",
"description": "setting for shapeit phasing of variants",
"default": {
"vcf": "output/{project}/kirimp/01_freq_encode_snps/{project}.vcf.gz",
"gmap": "input/meta/shapeit/kirimp.chr19.gmap.txt.gz",
"pbwt": 8,
"pbwt-modulo": 8,
"regions": [19],
"states": 500,
"min_missing": 0.25,
"v2_additional": "",
"v4_additional": ""
}
}
}
}
},
"additionalProperties": false
},
"liftover": {
"type": "object",
"properties": {
"reference": {
"type": "string",
"enum": [
"HG38",
"HG18",
"HG17",
"HG16",
"hg38",
"hg18",
"hg17",
"hg16"
],
"default": "hg18"
},
"plink": {
"type": "string",
"pattern": ".+(bed|fam|bim)$",
"description": "path to plink bed file (must contain bim/fam in the same directory)"
},
"vcf": {
"$ref": "#/definitions/vcf"
}
}
},
"freq_encode_snps": {
"type": "object",
"properties": {
"vcf": {
"$ref": "#/definitions/vcf"
},
"additional": {
"$ref": "#/definitions/additional_params"
}
}
},
"shapeit": {
"type": "object",
"properties": {
"vcf": {
"$ref": "#/definitions/vcf"
},
"genmap": {
"type": "string",
"description": "genetic map to be used with phasing"
},
"pbwt": {
"type": "integer",
"description": "numbers of confitioning neighbours (variant density)"
},
"pbwt-modulo": {
"type": "integer",
"description": "numbers of confitioning neighbours (variant density)"
},
"regions": {
"type": "array",
"items": [{ "type": "number" }],
"description": "numbers of confitioning neighbours (variant density)"
},
"states": {
"type": "integer"
},
"min_missing": {
"type": "number",
"description": "Variants with genotype missing rate higher than this will be discarder"
},
"additional": {
"$ref": "#/definitions/additional_params"
}
}
},
"vcf": {
"type": "string",
"pattern": ".+(vcf|bcf|vcf.gz)"
},
"additional_params": {
"type": "string",
"description": "Additional parameters to pass to rules",
"default": ""
}
}
}