Skip to content

Commit ef65069

Browse files
authored
Remove/small variants (#125)
* remove a reverted change from the changelog * update metro map * remove `small_variants` key
1 parent 64a55ba commit ef65069

8 files changed

Lines changed: 832 additions & 832 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
5. Fixed language server errors
2323
6. Removed the old output publishing code and used the new workflow output definitions instead
2424
7. Bumped the minimal nextflow version to 25.10.0
25-
8. VCFanno will now run when `--vcfanno_toml` has been given and `--annotate` has not been given. You still need to supply `--annotate` to get the full annotation, but this can be used check for common variants without having to perform full annotation.
26-
9. Changed the `--annotations_filter` parameter to a `--filter` parameter. This parameter takes an argument of `bcftools filter` to filter the resulting VCFs.
27-
10. Removed the `--delly_sv_types` parameter.
28-
11. Moved all `wisecondorx` and `qdnaseq` outputs to a separate directory in each sample output.
29-
12. Bumped all annotation modules to the latest versions
30-
13. Reworked the annotation structure to a per tool structure. Specify the annotations tools you want to run with `--annotate_tools`. This parameter takes a comma-separated list of tool names (options: `vep`, `vcfanno`, `svannotate`, `strvctvre` or `all` (=> all tools))
31-
14. Updated to nf-core template v3.5.1
32-
15. Removed AnnotSV from the pipeline
25+
8. Changed the `--annotations_filter` parameter to a `--filter` parameter. This parameter takes an argument of `bcftools filter` to filter the resulting VCFs.
26+
9. Removed the `--delly_sv_types` parameter.
27+
10. Moved all `wisecondorx` and `qdnaseq` outputs to a separate directory in each sample output.
28+
11. Bumped all annotation modules to the latest versions
29+
12. Reworked the annotation structure to a per tool structure. Specify the annotations tools you want to run with `--annotate_tools`. This parameter takes a comma-separated list of tool names (options: `vep`, `vcfanno`, `svannotate`, `strvctvre` or `all` (=> all tools))
30+
13. Updated to nf-core template v3.5.1
31+
14. Removed AnnotSV from the pipeline
32+
15. Removed the `small_variants` field from the samplesheet. Small variant VCFs are no longer used in the pipeline
3333

3434
### `Fixed`
3535

assets/schema_input.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131
"format": "file-path",
3232
"exists": true
3333
},
34-
"small_variants": {
35-
"type": "string",
36-
"pattern": "^\\S+\\.vcf(\\.gz)?$",
37-
"format": "file-path",
38-
"exists": true
39-
},
4034
"sex": {
4135
"type": "string",
4236
"meta": ["sex"],

docs/images/metro_map.png

116 KB
Loading

docs/images/metro_map.svg

Lines changed: 776 additions & 741 deletions
Loading

docs/parameters.md

Lines changed: 34 additions & 36 deletions
Large diffs are not rendered by default.

docs/usage.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ Following table contains all possible values for the samplesheet.
6464
| `family` | The family name of the current sample. All samples in the same family will be merged together at the end of the pipeline. Cannot contain spaces | string | :x: |
6565
| `cram` | Path to the CRAM file to be used by the pipeline for the current sample. | string | :heavy_check_mark: |
6666
| `crai` | Path to the CRAM index file | string | :x: |
67-
| `small_variants` | A VCF containing the SNV (small nucleotide variants) for the current sample to be used by AnnotSV | string | :x: |
6867
| `sex` | The sex of the sample to be used by QDNAseq. Sex will be imputed when missing (Options: `male` or `female`) | string | :x: |
6968

7069
See following samplesheet for a working example of a samplesheet (used by the `test` profile of the pipeline):

subworkflows/local/utils_nfcore_structural_pipeline/main.nf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ workflow PIPELINE_INITIALISATION {
9696
}
9797

9898
def ch_samplesheet = channel.fromList(samplesheetList)
99-
.map { meta, cram, crai, small_variants ->
99+
.map { meta, cram, crai ->
100100
def new_meta = meta + [
101101
family:meta.family ?: meta.sample,
102102
family_count:family_counts[meta.family] ?: 1
103103
]
104-
return [ new_meta, cram, crai, small_variants ]
104+
return [ new_meta, cram, crai ]
105105
}
106106

107107
//

workflows/structural.nf

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ include { methodsDescriptionText } from '../subworkflows/local/utils_nfcore_stru
2121
include { BAM_PREPARE_SAMTOOLS } from '../subworkflows/local/bam_prepare_samtools/main'
2222
include { BAM_SV_CALLING } from '../subworkflows/local/bam_sv_calling/main'
2323
include { BAM_CNV_CALLING } from '../subworkflows/local/bam_cnv_calling/main'
24-
include { VCF_ANNOTATE_VCFANNO } from '../subworkflows/local/vcf_annotate_vcfanno/main'
2524
include { BAM_REPEAT_ESTIMATION_EXPANSIONHUNTER } from '../subworkflows/local/bam_repeat_estimation_expansionhunter/main'
2625
include { VCF_ANNOTATE } from '../subworkflows/local/vcf_annotate/main'
2726
include { VCF_CONCAT_BCFTOOLS } from '../subworkflows/local/vcf_concat_bcftools/main'
@@ -254,71 +253,46 @@ workflow STRUCTURAL {
254253
// Prepare the inputs
255254
//
256255

257-
def ch_deduplicated = ch_samplesheet
258-
.map { meta, _cram, _crai, small_variants ->
259-
[ meta, small_variants ]
260-
}
261-
.groupTuple()
262-
.map { meta, small_variants ->
263-
[ meta, small_variants.find { small_variant -> small_variant != [] } ?: [] ]
264-
}
265-
266256
BAM_PREPARE_SAMTOOLS(
267-
ch_samplesheet.map { meta, cram, crai, _small_variants ->
268-
[ meta, cram, crai ]
269-
},
257+
ch_samplesheet,
270258
ch_fasta,
271259
ch_fai
272260
)
273261
ch_versions = ch_versions.mix(BAM_PREPARE_SAMTOOLS.out.versions)
274262

275263
def ch_input_no_sex = BAM_PREPARE_SAMTOOLS.out.crams
276-
.join(ch_deduplicated, failOnDuplicate:true, failOnMismatch:true)
277264

278265
//
279266
// Determine the gender if needed
280267
//
281268

282-
def ch_input_sex = channel.empty()
269+
def ch_inputs = channel.empty()
283270
if(callers.intersect(sexCallers)) {
284271
def ch_samplegender_input = ch_input_no_sex
285-
.branch { meta, _cram, _crai, _small_variants ->
272+
.branch { meta, _cram, _crai ->
286273
sex: meta.sex
287274
no_sex: !meta.sex
288275
}
289276

290-
def ch_samplegender_multi = ch_samplegender_input.no_sex
291-
.multiMap { meta, cram, crai, small_variants ->
292-
cram: [ meta, cram, crai ]
293-
other: [ meta, small_variants ]
294-
}
295-
296277
NGSBITS_SAMPLEGENDER(
297-
ch_samplegender_multi.cram,
278+
ch_samplegender_input.no_sex,
298279
ch_fasta,
299280
ch_fai,
300281
"xy"
301282
)
302283
ch_versions = ch_versions.mix(NGSBITS_SAMPLEGENDER.out.versions.first())
303284

304-
ch_input_sex = NGSBITS_SAMPLEGENDER.out.tsv
305-
.join(ch_samplegender_multi.cram, failOnDuplicate:true, failOnMismatch:true)
306-
.join(ch_samplegender_multi.other, failOnDuplicate:true, failOnMismatch:true)
307-
.map { meta, tsv, cram, crai, small_variants ->
285+
ch_inputs = NGSBITS_SAMPLEGENDER.out.tsv
286+
.join(ch_samplegender_input.no_sex, failOnDuplicate:true, failOnMismatch:true)
287+
.map { meta, tsv, cram, crai ->
308288
def new_meta = meta + [sex:get_sex(tsv, meta.sample)]
309-
return [ new_meta, cram, crai, small_variants ]
289+
return [ new_meta, cram, crai ]
310290
}
311291
.mix(ch_samplegender_input.sex)
312292
} else {
313-
ch_input_sex = ch_input_no_sex
293+
ch_inputs = ch_input_no_sex
314294
}
315295

316-
def ch_inputs = ch_input_sex
317-
.multiMap { meta, cram, crai, small_variants ->
318-
crams: [ meta, cram, crai ]
319-
small_variants: [ meta, small_variants ]
320-
}
321-
322296
//
323297
// Call the variants
324298
//
@@ -330,7 +304,7 @@ workflow STRUCTURAL {
330304
variant_types.add("sv")
331305

332306
BAM_SV_CALLING(
333-
ch_inputs.crams,
307+
ch_inputs,
334308
ch_fasta,
335309
ch_fai,
336310
ch_manta_config,
@@ -357,7 +331,7 @@ workflow STRUCTURAL {
357331
variant_types.add("cnv")
358332

359333
BAM_CNV_CALLING(
360-
ch_inputs.crams,
334+
ch_inputs,
361335
ch_fasta,
362336
ch_fai,
363337
ch_qdnaseq_male,
@@ -422,7 +396,7 @@ workflow STRUCTURAL {
422396
count_types += 1
423397

424398
BAM_REPEAT_ESTIMATION_EXPANSIONHUNTER(
425-
ch_inputs.crams,
399+
ch_inputs,
426400
ch_fasta,
427401
ch_fai,
428402
ch_catalog

0 commit comments

Comments
 (0)