Skip to content

Commit 442d2f3

Browse files
authored
Add StrVCTVRE scoring (#120)
* rework annotation structure * bump changelog * add StrVCTVRE * pre-commit * add tests * run new test * remove failing ci test * first linting fixes * fix nf-core lint * fix vcfanno usage when no valid toml is present * bump nf-core version * fix vcf_annotate tests
1 parent 8ce10a7 commit 442d2f3

36 files changed

Lines changed: 1331 additions & 327 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
- "bam_variant_calling_qdnaseq"
4949
- "bam_variant_calling_smoove"
5050
- "bam_variant_calling_wisecondorx"
51-
- "vcf_annotate_vep_annotsv"
51+
# - "vcf_annotate_vep_annotsv"
52+
- "vcf_annotate"
5253
- "vcf_annotate_vcfanno"
5354
- "vcf_concat_bcftools"
5455
- "vcf_merge_callers_jasmine"

.github/workflows/linting_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Download lint results
14-
uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc # v8
14+
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
1515
with:
1616
workflow: linting.yml
1717
workflow_conclusion: completed
@@ -21,7 +21,7 @@ jobs:
2121
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
2222

2323
- name: Post PR comment
24-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
24+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2
2525
with:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727
number: ${{ steps.pr_number.outputs.pr_number }}

.github/workflows/template_version_comment.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.nf-core.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ lint:
1010
- assets/nf-core-structural_logo_light.png
1111
- docs/images/nf-core-structural_logo_light.png
1212
- docs/images/nf-core-structural_logo_dark.png
13+
- .github/workflows/nf-test.yml
14+
- .github/actions/get-shards/action.yml
15+
- .github/actions/nf-test/action.yml
16+
- tests/default.nf.test
1317
files_unchanged:
1418
- LICENSE
1519
- .github/PULL_REQUEST_TEMPLATE.md
@@ -24,7 +28,7 @@ lint:
2428
- manifest.name
2529
- manifest.homePage
2630
multiqc_config: false
27-
nf_core_version: 3.2.0
31+
nf_core_version: 3.3.2
2832
repository_type: pipeline
2933
template:
3034
author: nvnieuwk

.prettierrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
printWidth: 120
2+
tabWidth: 4
3+
overrides:
4+
- files: "*.{md,yml,yaml,html,css,scss,js,cff}"
5+
options:
6+
tabWidth: 2

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
2. Added the `--bedpe` parameter. This makes the pipeline output BEDPE files alongside the VCF files.
1212
3. Added parallelization on SV type to the delly flow
1313
4. Added a `--gtf` parameter for annotation of gene and transcript overlap using `gatk SVAnnotate`.
14+
5. Added `StrVCTVRE` as a new annotation tool
1415

1516
### `Changes`
1617

@@ -26,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2627
10. Removed the `--delly_sv_types` parameter.
2728
11. Moved all `wisecondorx` and `qdnaseq` outputs to a separate directory in each sample output.
2829
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))
2931

3032
### `Fixed`
3133

conf/modules.config

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -206,31 +206,31 @@ process {
206206
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
207207
*/
208208

209-
withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:BCFTOOLS_FILTER\$" {
210-
ext.prefix = {"${meta.id}.filter"}
211-
ext.args = "-e 'GT=\"ref\"' --output-type z"
212-
}
209+
// withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:BCFTOOLS_FILTER\$" {
210+
// ext.prefix = {"${meta.id}.filter"}
211+
// ext.args = "-e 'GT=\"ref\"' --output-type z"
212+
// }
213213

214-
withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:ANNOTSV_ANNOTSV\$" {
215-
ext.args = {[
216-
"-SVminSize 20",
217-
"-vcf 1",
218-
meta.hpo ? "-hpo ${meta.hpo}" : ""
219-
].join(" ")}
220-
ext.prefix = {"${meta.id}.annot"}
221-
}
214+
// withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:ANNOTSV_ANNOTSV\$" {
215+
// ext.args = {[
216+
// "-SVminSize 20",
217+
// "-vcf 1",
218+
// meta.hpo ? "-hpo ${meta.hpo}" : ""
219+
// ].join(" ")}
220+
// ext.prefix = {"${meta.id}.annot"}
221+
// }
222222

223-
withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:BCFTOOLS_CONCAT\$" {
224-
ext.prefix = "annotsv_annotated_unsorted"
225-
ext.args = "--output-type z --naive-force"
226-
}
223+
// withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:BCFTOOLS_CONCAT\$" {
224+
// ext.prefix = "annotsv_annotated_unsorted"
225+
// ext.args = "--output-type z --naive-force"
226+
// }
227227

228-
withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:BCFTOOLS_SORT\$" {
229-
ext.prefix = "annotsv_annotated"
230-
ext.args = "--output-type z --write-index=tbi"
231-
}
228+
// withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:BCFTOOLS_SORT\$" {
229+
// ext.prefix = "annotsv_annotated"
230+
// ext.args = "--output-type z --write-index=tbi"
231+
// }
232232

233-
withName: "^.*VCF_ANNOTATE_VEP_ANNOTSV:ENSEMBLVEP_VEP\$" {
233+
withName: "^.*VCF_ANNOTATE:ENSEMBLVEP_VEP\$" {
234234
ext.prefix = {"${meta.id}.vep"}
235235
ext.args = {[
236236
// specify we use VCF files
@@ -259,10 +259,14 @@ process {
259259
ext.args = "-ends"
260260
}
261261

262-
withName: "^.*GATK4_SVANNOTATE\$" {
262+
withName: "^.*VCF_ANNOTATE:GATK4_SVANNOTATE\$" {
263263
ext.prefix = {"${meta.id}.${meta.variant_type}.svannotate"}
264264
}
265265

266+
withName: "^.*VCF_ANNOTATE:TABIX_BGZIPTABIX\$" {
267+
ext.prefix = {"${meta.id}.${meta.variant_type}.strvctvre"}
268+
}
269+
266270
/*
267271
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
268272
SV AND CNV FILTERING

conf/test.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ params {
4343
genomes_ignore = true
4444
genome = 'GRCh38'
4545
vep_cache = null
46-
annotsv_annotations = null
46+
// annotsv_annotations = null
4747

4848
concat_output = true
4949

main.nf

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ params.dict = getGenomeAttribute('dict')
3232
params.gtf = getGenomeAttribute('gtf')
3333
params.vep_cache = getGenomeAttribute('vep_cache')
3434
// params.bwa = getGenomeAttribute('bwa')
35-
params.annotsv_annotations = getGenomeAttribute('annotsv_annotations')
35+
// params.annotsv_annotations = getGenomeAttribute('annotsv_annotations')
3636
params.expansionhunter_catalog = getGenomeAttribute('expansionhunter_catalog')
3737
params.qdnaseq_male = getGenomeAttribute("qdnaseq_male_${params.qdnaseq_bin_size.toInteger() / 1000}kbp".toString())
3838
params.qdnaseq_female = getGenomeAttribute("qdnaseq_female_${params.qdnaseq_bin_size.toInteger() / 1000}kbp".toString())
3939
params.wisecondorx_reference = getGenomeAttribute('wisecondorx_reference')
40+
params.strvctvre_phylop = getGenomeAttribute('strvctvre_phylop')
41+
params.strvctvre_data = getGenomeAttribute('strvctvre_data')
4042

4143

4244
/*
@@ -90,9 +92,9 @@ workflow {
9092
params.qdnaseq_male,
9193
params.wisecondorx_reference,
9294
params.vep_cache,
93-
params.annotsv_annotations,
94-
params.annotsv_candidate_genes,
95-
params.annotsv_gene_transcripts,
95+
// params.annotsv_annotations,
96+
// params.annotsv_candidate_genes,
97+
// params.annotsv_gene_transcripts,
9698
params.vcfanno_lua,
9799
params.vcfanno_resources,
98100
params.vcfanno_toml,
@@ -101,6 +103,8 @@ workflow {
101103
"${projectDir}/assets/svync",
102104
"${projectDir}/assets/bedgovcf",
103105
"${projectDir}/assets/vcfanno",
106+
params.strvctvre_phylop,
107+
params.strvctvre_data,
104108

105109
// booleans
106110
params.annotate,
@@ -116,7 +120,8 @@ workflow {
116120
params.vep_assembly,
117121
params.vep_cache_version,
118122
params.filter,
119-
params.outdir
123+
params.outdir,
124+
params.annotate_tools ? params.annotate_tools.tokenize(",") : []
120125
)
121126
//
122127
// SUBWORKFLOW: Run completion tasks

0 commit comments

Comments
 (0)