Skip to content

Commit 9350201

Browse files
committed
Merge branch 'release/1.1.0'
2 parents e6aa311 + 9396a14 commit 9350201

27 files changed

+14791
-421
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Validate CWL Files
2+
3+
on:
4+
push:
5+
branches: [master, develop]
6+
pull_request:
7+
branches: [master, develop]
8+
9+
jobs:
10+
validate_cwls:
11+
runs-on: macos-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: [3.6, 3.7]
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install cwltool
25+
run: |
26+
python -m pip install toil[cwl]==4.2.0
27+
- uses: actions/checkout@v2
28+
- name: Validate
29+
run: |
30+
pip install cwltool
31+
find . -name '*.cwl' | xargs -n 1 -P 8 cwltool --validate

alignment/alignment__packed.cwl

Lines changed: 71 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"boolean"
1313
],
1414
"https://www.sevenbridges.com/x": 319.15625,
15-
"https://www.sevenbridges.com/y": 852.0390625
15+
"https://www.sevenbridges.com/y": 958.8671875
1616
},
1717
{
1818
"id": "#output_file_name",
@@ -21,7 +21,7 @@
2121
"string"
2222
],
2323
"https://www.sevenbridges.com/x": 319.15625,
24-
"https://www.sevenbridges.com/y": 745.2109375
24+
"https://www.sevenbridges.com/y": 852.0390625
2525
},
2626
{
2727
"id": "#read_group_description",
@@ -30,25 +30,25 @@
3030
"string"
3131
],
3232
"https://www.sevenbridges.com/x": 0,
33-
"https://www.sevenbridges.com/y": 1388.765625
33+
"https://www.sevenbridges.com/y": 1495.59375
3434
},
3535
{
3636
"id": "#read_group_identifier",
3737
"type": "string",
3838
"https://www.sevenbridges.com/x": 0,
39-
"https://www.sevenbridges.com/y": 1281.9375
39+
"https://www.sevenbridges.com/y": 1388.765625
4040
},
4141
{
4242
"id": "#read_group_library",
4343
"type": "string",
4444
"https://www.sevenbridges.com/x": 0,
45-
"https://www.sevenbridges.com/y": 1175.109375
45+
"https://www.sevenbridges.com/y": 1281.9375
4646
},
4747
{
4848
"id": "#read_group_platform_unit",
4949
"type": "string",
5050
"https://www.sevenbridges.com/x": 0,
51-
"https://www.sevenbridges.com/y": 1068.28125
51+
"https://www.sevenbridges.com/y": 1175.109375
5252
},
5353
{
5454
"id": "#read_group_run_date",
@@ -57,25 +57,25 @@
5757
"string"
5858
],
5959
"https://www.sevenbridges.com/x": 0,
60-
"https://www.sevenbridges.com/y": 961.453125
60+
"https://www.sevenbridges.com/y": 1068.28125
6161
},
6262
{
6363
"id": "#read_group_sample_name",
6464
"type": "string",
6565
"https://www.sevenbridges.com/x": 0,
66-
"https://www.sevenbridges.com/y": 854.625
66+
"https://www.sevenbridges.com/y": 961.453125
6767
},
6868
{
6969
"id": "#read_group_sequencing_center",
7070
"type": "string",
7171
"https://www.sevenbridges.com/x": 0,
72-
"https://www.sevenbridges.com/y": 747.796875
72+
"https://www.sevenbridges.com/y": 854.625
7373
},
7474
{
7575
"id": "#read_group_sequencing_platform",
7676
"type": "string",
7777
"https://www.sevenbridges.com/x": 0,
78-
"https://www.sevenbridges.com/y": 640.96875
78+
"https://www.sevenbridges.com/y": 747.796875
7979
},
8080
{
8181
"id": "#sort_order",
@@ -84,7 +84,7 @@
8484
"string"
8585
],
8686
"https://www.sevenbridges.com/x": 0,
87-
"https://www.sevenbridges.com/y": 320.484375
87+
"https://www.sevenbridges.com/y": 427.3125
8888
},
8989
{
9090
"id": "#validation_stringency",
@@ -98,8 +98,17 @@
9898
{
9999
"id": "#reference",
100100
"type": "File",
101+
"secondaryFiles": [
102+
".amb",
103+
".fai",
104+
".sa",
105+
"^.dict",
106+
".ann",
107+
".bwt",
108+
".pac"
109+
],
101110
"https://www.sevenbridges.com/x": 0,
102-
"https://www.sevenbridges.com/y": 427.3125
111+
"https://www.sevenbridges.com/y": 534.140625
103112
},
104113
{
105114
"id": "#reads",
@@ -108,7 +117,7 @@
108117
"items": "File"
109118
},
110119
"https://www.sevenbridges.com/x": 0,
111-
"https://www.sevenbridges.com/y": 534.140625
120+
"https://www.sevenbridges.com/y": 640.96875
112121
},
113122
{
114123
"id": "#output",
@@ -117,7 +126,7 @@
117126
"string"
118127
],
119128
"https://www.sevenbridges.com/x": 0,
120-
"https://www.sevenbridges.com/y": 1602.421875
129+
"https://www.sevenbridges.com/y": 1709.25
121130
},
122131
{
123132
"id": "#P",
@@ -126,7 +135,7 @@
126135
"boolean"
127136
],
128137
"https://www.sevenbridges.com/x": 0,
129-
"https://www.sevenbridges.com/y": 1495.59375
138+
"https://www.sevenbridges.com/y": 1602.421875
130139
},
131140
{
132141
"id": "#M",
@@ -135,7 +144,7 @@
135144
"boolean"
136145
],
137146
"https://www.sevenbridges.com/x": 0,
138-
"https://www.sevenbridges.com/y": 1709.25
147+
"https://www.sevenbridges.com/y": 1816.078125
139148
},
140149
{
141150
"id": "#T",
@@ -144,7 +153,7 @@
144153
"int"
145154
],
146155
"https://www.sevenbridges.com/x": 0,
147-
"https://www.sevenbridges.com/y": 213.65625
156+
"https://www.sevenbridges.com/y": 320.484375
148157
},
149158
{
150159
"id": "#Y",
@@ -162,7 +171,7 @@
162171
"int"
163172
],
164173
"https://www.sevenbridges.com/x": 0,
165-
"https://www.sevenbridges.com/y": 1816.078125
174+
"https://www.sevenbridges.com/y": 1922.90625
166175
},
167176
{
168177
"id": "#bwa_number_of_threads",
@@ -171,7 +180,16 @@
171180
"int"
172181
],
173182
"https://www.sevenbridges.com/x": 0,
174-
"https://www.sevenbridges.com/y": 1922.90625
183+
"https://www.sevenbridges.com/y": 2029.734375
184+
},
185+
{
186+
"id": "#temporary_directory",
187+
"type": [
188+
"null",
189+
"string"
190+
],
191+
"https://www.sevenbridges.com/x": 0,
192+
"https://www.sevenbridges.com/y": 213.65625
175193
}
176194
],
177195
"outputs": [
@@ -181,8 +199,11 @@
181199
"#picard_add_or_replace_read_groups_4_1_8_1/picard_add_or_replace_read_groups_bam"
182200
],
183201
"type": "File",
184-
"https://www.sevenbridges.com/x": 1379.46142578125,
185-
"https://www.sevenbridges.com/y": 961.453125
202+
"secondaryFiles": [
203+
"^.bai"
204+
],
205+
"https://www.sevenbridges.com/x": 1389.239501953125,
206+
"https://www.sevenbridges.com/y": 1014.8671875
186207
}
187208
],
188209
"steps": [
@@ -240,6 +261,10 @@
240261
{
241262
"id": "#picard_add_or_replace_read_groups_4_1_8_1/create_bam_index",
242263
"source": "#create_bam_index"
264+
},
265+
{
266+
"id": "#picard_add_or_replace_read_groups_4_1_8_1/temporary_directory",
267+
"source": "#temporary_directory"
243268
}
244269
],
245270
"out": [
@@ -250,7 +275,7 @@
250275
"run": "#picard_add_or_replace_read_groups_4.1.8.1.cwl",
251276
"label": "picard_add_or_replace_read_groups_4.1.8.1",
252277
"https://www.sevenbridges.com/x": 737.3328857421875,
253-
"https://www.sevenbridges.com/y": 870.453125
278+
"https://www.sevenbridges.com/y": 923.8671875
254279
},
255280
{
256281
"id": "#bwa_mem_0_7_17",
@@ -302,7 +327,7 @@
302327
"run": "#bwa_mem_0.7.17.cwl",
303328
"label": "bwa_mem_0.7.17",
304329
"https://www.sevenbridges.com/x": 319.15625,
305-
"https://www.sevenbridges.com/y": 1014.8671875
330+
"https://www.sevenbridges.com/y": 1121.6953125
306331
}
307332
],
308333
"requirements": [],
@@ -891,12 +916,12 @@
891916
"requirements": [
892917
{
893918
"class": "ResourceRequirement",
894-
"ramMin": "${ if(inputs.memory_per_job && inputs.memory_overhead) { return inputs.memory_per_job + inputs.memory_overhead } else if (inputs.memory_per_job && !inputs.memory_overhead){ return inputs.memory_per_job + 2000 } else if(!inputs.memory_per_job && inputs.memory_overhead){ return 32000 + inputs.memory_overhead } else { return 32000 } }",
895-
"coresMin": "${ if (inputs.number_of_threads) { return inputs.number_of_threads } else { return 16 } }"
919+
"ramMin": 34000,
920+
"coresMin": 16
896921
},
897922
{
898923
"class": "DockerRequirement",
899-
"dockerPull": "mskaccess/bwa_mem_0.7.17:0.1.0"
924+
"dockerPull": "ghcr.io/msk-access/bwa:0.7.17"
900925
},
901926
{
902927
"class": "InlineJavascriptRequirement"
@@ -1135,6 +1160,14 @@
11351160
"prefix": "--CREATE_INDEX"
11361161
},
11371162
"doc": "Whether to create a BAM index when writing a coordinate-sorted BAM file. Default value:false. This option can be set to 'null' to clear the default value. Possible values:{true, false}"
1163+
},
1164+
{
1165+
"id": "#picard_add_or_replace_read_groups_4.1.8.1.cwl/temporary_directory",
1166+
"type": [
1167+
"null",
1168+
"string"
1169+
],
1170+
"doc": "Default value: null. This option may be specified 0 or more times."
11381171
}
11391172
],
11401173
"outputs": [
@@ -1157,13 +1190,14 @@
11571190
},
11581191
{
11591192
"position": 0,
1160-
"valueFrom": "-XX:-UseGCOverheadLimit",
1161-
"shellQuote": false
1193+
"prefix": "-Djava.io.tmpdir=",
1194+
"separate": false,
1195+
"valueFrom": "${\n if(inputs.temporary_directory)\n return inputs.temporary_directory;\n return runtime.tmpdir\n}"
11621196
},
11631197
{
11641198
"position": 0,
1165-
"valueFrom": "-Djava.io.tmpdir=$(runtime.tmpdir)",
1166-
"shellQuote": false
1199+
"shellQuote": false,
1200+
"valueFrom": "-XX:-UseGCOverheadLimit"
11671201
},
11681202
{
11691203
"position": 0,
@@ -1177,7 +1211,7 @@
11771211
{
11781212
"position": 0,
11791213
"prefix": "--TMP_DIR",
1180-
"valueFrom": "$(runtime.tmpdir)"
1214+
"valueFrom": "${\n if(inputs.temporary_directory)\n return inputs.temporary_directory;\n return runtime.tmpdir\n}"
11811215
},
11821216
{
11831217
"position": 0,
@@ -1186,14 +1220,17 @@
11861220
}
11871221
],
11881222
"requirements": [
1223+
{
1224+
"class": "ShellCommandRequirement"
1225+
},
11891226
{
11901227
"class": "ResourceRequirement",
1191-
"ramMin": 25000,
1228+
"ramMin": 17000,
11921229
"coresMin": 2
11931230
},
11941231
{
11951232
"class": "DockerRequirement",
1196-
"dockerPull": "broadinstitute/gatk:4.1.8.1"
1233+
"dockerPull": "ghcr.io/msk-access/gatk:4.1.8.1"
11971234
},
11981235
{
11991236
"class": "InlineJavascriptRequirement"
@@ -1236,6 +1273,6 @@
12361273
],
12371274
"cwlVersion": "v1.0",
12381275
"$schemas": [
1239-
"http://schema.org/version/9.0/schemaorg-current-http.rdf"
1276+
"http://schema.org/version/latest/schemaorg-current-http.rdf"
12401277
]
12411278
}

bam_qc_stats/README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
description: Specifications for performing Indel Re-alignment on a BAM file.
3+
---
4+
5+
## Indel Re-alignment sub-workflow specification - abra_fx.cwl
6+
7+
### Tools used:
8+
9+
- [bedtools genomecov](https://msk-access.gitbook.io/command-line-tools-cwl/bedtools/bedtools_genomecov_v2.28.0_cv2)
10+
- [bedtools merge](https://msk-access.gitbook.io/command-line-tools-cwl/bedtools/bedtools_merge_v2.28.0_cv2)
11+
- [ABRA2](https://msk-access.gitbook.io/command-line-tools-cwl/abra2/abra2_2.22)
12+
- [GATK - FixMateInformation](https://msk-access.gitbook.io/command-line-tools-cwl/picard-tools/picard_fix_mate_information_4.1.8.1)
13+
14+
### Usage
15+
16+
```bash
17+
usage: indel_realignment.cwl [-h] [--window_size WINDOW_SIZE]
18+
[--soft_clip_contig SOFT_CLIP_CONTIG]
19+
[--scoring_gap_alignments SCORING_GAP_ALIGNMENTS]
20+
--reference_fasta REFERENCE_FASTA [--no_sort]
21+
[--maximum_mixmatch_rate MAXIMUM_MIXMATCH_RATE]
22+
[--maximum_average_depth MAXIMUM_AVERAGE_DEPTH]
23+
[--ignore_bad_assembly]
24+
[--contig_anchor CONTIG_ANCHOR]
25+
[--consensus_sequence] [--bam_index]
26+
[--number_of_threads NUMBER_OF_THREADS]
27+
[--option_bedgraph] [--no_edge_complex_indel]
28+
[--distance_between_features DISTANCE_BETWEEN_FEATURES]
29+
[job_order]
30+
31+
positional arguments:
32+
job_order Job input json file
33+
34+
optional arguments:
35+
-h, --help show this help message and exit
36+
--window_size WINDOW_SIZE
37+
--soft_clip_contig SOFT_CLIP_CONTIG
38+
--scoring_gap_alignments SCORING_GAP_ALIGNMENTS
39+
--reference_fasta REFERENCE_FASTA
40+
--no_sort
41+
--maximum_mixmatch_rate MAXIMUM_MIXMATCH_RATE
42+
--maximum_average_depth MAXIMUM_AVERAGE_DEPTH
43+
--ignore_bad_assembly
44+
--contig_anchor CONTIG_ANCHOR
45+
--consensus_sequence
46+
--bam_index
47+
--number_of_threads NUMBER_OF_THREADS
48+
--option_bedgraph
49+
--no_edge_complex_indel
50+
--distance_between_features DISTANCE_BETWEEN_FEATURES
51+
```

0 commit comments

Comments
 (0)