Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/dev' into refactor-inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
fellen31 committed Oct 30, 2024
2 parents bd1eb18 + d444307 commit 42bc326
Show file tree
Hide file tree
Showing 29 changed files with 1,173 additions and 136 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#431](https://github.com/genomic-medicine-sweden/nallo/pull/431) - Added files needed to automatically build and publish docs to GitHub Pages
- [#435](https://github.com/genomic-medicine-sweden/nallo/pull/435) - Added nf-test to rank variants
- [#445](https://github.com/genomic-medicine-sweden/nallo/pull/445) - Added FOUND_IN tag and nf-test to rank variants
- [#446](https://github.com/genomic-medicine-sweden/nallo/pull/446) - Added the vcfstatsreport from DeepVariant to snv calling
- [#450](https://github.com/genomic-medicine-sweden/nallo/pull/450) - Added ranking of SVs (and CNVs)

### `Changed`

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

##### Ranking

- Rank SNVs with [GENMOD](https://github.com/Clinical-Genomics/genmod)
- Rank SNVs, INDELs and SVs with [GENMOD](https://github.com/Clinical-Genomics/genmod)

## Usage

Expand Down
25 changes: 25 additions & 0 deletions conf/modules/annotate_consequence_pli.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
*/

process {

//
// SNVs
//
withName: '.*:ANN_CSQ_PLI_SNV:.*' {
publishDir = [
enabled: false
Expand All @@ -29,4 +33,25 @@ process {
withName: '.*ANN_CSQ_PLI_SNV:TABIX_BGZIPTABIX' {
ext.prefix = { "${meta.id}_snv_csq_pli" }
}

//
// SVs
//
withName: '.*:ANN_CSQ_PLI_SVS:.*' {
publishDir = [
enabled: false
]
}

withName: '.*ANN_CSQ_PLI_SVS:ADD_MOST_SEVERE_CSQ' {
ext.prefix = { "${meta.id}_svs_csq" }
}

withName: '.*ANN_CSQ_PLI_SVS:ADD_MOST_SEVERE_PLI' {
ext.prefix = { "${meta.id}_svs_csq_pli" }
}

withName: '.*ANN_CSQ_PLI_SVS:TABIX_BGZIPTABIX' {
ext.prefix = { "${meta.id}_svs_csq_pli" }
}
}
4 changes: 2 additions & 2 deletions conf/modules/annotate_svs.config
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ process {
publishDir = [
path: { "${params.outdir}/svs/family/${meta.id}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
saveAs: { filename -> filename.equals('versions.yml') || !params.skip_rank_variants ? null : filename }
]
}

withName: '.*ANNOTATE_SVS:TABIX_ENSEMBLVEP_SV' {
publishDir = [
path: { "${params.outdir}/svs/family/${meta.id}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
saveAs: { filename -> filename.equals('versions.yml') || !params.skip_rank_variants ? null : filename }
]
}

Expand Down
47 changes: 39 additions & 8 deletions conf/modules/rank_variants.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@
----------------------------------------------------------------------------------------
*/

//
// Score and rank SNVs
//

process {

//
// Score and rank SNVs
//
withName: '.*:RANK_VARIANTS_SNV:.*' {
publishDir = [
enabled: false,
]
}

withName: '.*:RANK_VARIANTS_SNV:GENMOD_ANNOTATE' {
ext.prefix = { "${meta.id}_snv_genmod_annotate" }
ext.args = { [
Expand All @@ -31,20 +29,53 @@ process {
'--temp_dir ./'
].join(' ') }
}

withName: '.*:RANK_VARIANTS_SNV:GENMOD_MODELS' {
ext.prefix = { "${meta.id}_snv_genmod_models" }
ext.args = "--whole_gene --temp_dir ./"
}

withName: '.*:RANK_VARIANTS_SNV:GENMOD_SCORE' {
ext.prefix = { "${meta.id}_snv_genmod_score" }
ext.args = "--rank_results"
}

withName: '.*:RANK_VARIANTS_SNV:GENMOD_COMPOUND' {
ext.prefix = { "${meta.id}_snv_genmod_compound" }
ext.args = "--temp_dir ./"
}

//
// Score and rank SVSs
//
withName: '.*:RANK_VARIANTS_SVS:.*' {
publishDir = [
enabled: false,
]
}
withName: '.*:RANK_VARIANTS_SVS:GENMOD_ANNOTATE' {
ext.prefix = { "${meta.id}_svs_genmod_annotate" }
ext.args = { [
'--annotate_regions',
'--genome-build 38',
'--temp_dir ./'
].join(' ') }
}
withName: '.*:RANK_VARIANTS_SVS:GENMOD_MODELS' {
ext.prefix = { "${meta.id}_svs_genmod_models" }
ext.args = "--whole_gene --temp_dir ./"
}
withName: '.*:RANK_VARIANTS_SVS:GENMOD_SCORE' {
ext.prefix = { "${meta.id}_svs_genmod_score" }
ext.args = "--rank_results"
}
withName: '.*:RANK_VARIANTS_SVS:GENMOD_COMPOUND' {
ext.prefix = { "${meta.id}_svs_genmod_compound" }
ext.args = "--temp_dir ./"
}
withName: '.*:RANK_VARIANTS_SVS:TABIX_BGZIPTABIX' {
ext.prefix = { params.skip_cnv_calling ? "${meta.id}_svs_merged_annotated_ranked" : "${meta.id}_svs_cnvs_merged_annotated_ranked" }
publishDir = [
path: { "${params.outdir}/svs/family/${meta.id}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
9 changes: 9 additions & 0 deletions conf/modules/short_variant_calling.config
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ process {
meta.sex == 1 ? '--haploid_contigs="chrX,chrY"' : ''
].join(' ') }
}
withName: '.*:SHORT_VARIANT_CALLING:DEEPVARIANT_VCFSTATSREPORT' {
publishDir = [
path: { "${params.outdir}/qc/deepvariant_vcfstatsreport/${meta.id}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]

}

withName: '.*:SHORT_VARIANT_CALLING:GLNEXUS' {
ext.args = '--config DeepVariant_unfiltered'
Expand Down Expand Up @@ -75,4 +83,5 @@ process {
'-w 10000'
].join(' ')
}

}
4 changes: 3 additions & 1 deletion conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ params {
modules_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/'

// Base directory for genomic-medicine-sweden/nallo test data
pipelines_testdata_base_path = 'https://raw.githubusercontent.com/genomic-medicine-sweden/test-datasets/7be7114cb132be8cae9343f225bcf42ec11ecc1b/'
pipelines_testdata_base_path = 'https://raw.githubusercontent.com/genomic-medicine-sweden/test-datasets/22fb5b8a1a358df96e49f8d01a9c6e18770fbd6d/'

// References
fasta = params.pipelines_testdata_base_path + 'reference/hg38.test.fa.gz'
Expand All @@ -36,7 +36,9 @@ params {
svdb_dbs = params.pipelines_testdata_base_path + 'testdata/svdb_dbs.csv'
reduced_penetrance = params.pipelines_testdata_base_path + 'reference/reduced_penetrance.tsv'
score_config_snv = params.pipelines_testdata_base_path + 'reference/rank_model_snv.ini'
score_config_svs = params.pipelines_testdata_base_path + 'reference/rank_model_svs.ini'
variant_consequences_snv = params.pipelines_testdata_base_path + 'reference/variant_consequences_v2.txt'
variant_consequences_svs = params.pipelines_testdata_base_path + 'reference/variant_consequences_v2.txt'
somalier_sites = params.pipelines_testdata_base_path + 'reference/somalier_sites.vcf.gz'

// Pipeline options
Expand Down
Loading

0 comments on commit 42bc326

Please sign in to comment.