Skip to content

Commit

Permalink
Merge branch 'main' into fix/ffpe-event-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMoelder authored May 24, 2024
2 parents c6f1265 + 4b800cd commit a49fda1
Show file tree
Hide file tree
Showing 6 changed files with 343 additions and 110 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [1.7.0](https://www.github.com/snakemake-workflows/dna-seq-mtb/compare/v1.6.2...v1.7.0) (2024-05-24)


### Features

* update callsets and scenario ([#41](https://www.github.com/snakemake-workflows/dna-seq-mtb/issues/41)) ([568fe15](https://www.github.com/snakemake-workflows/dna-seq-mtb/commit/568fe155c5fc0a0fd055ce0ecfd6eae64b4dc84a))


### Bug Fixes

* update to latest dna-seq-varlociraptor ([b32b229](https://www.github.com/snakemake-workflows/dna-seq-mtb/commit/b32b229514cc3845d02dd6d10f511414ad930335))


### Performance Improvements

* update to dna-seq-varlociraptor 5.6.0 ([#45](https://www.github.com/snakemake-workflows/dna-seq-mtb/issues/45)) ([98ef04b](https://www.github.com/snakemake-workflows/dna-seq-mtb/commit/98ef04b04b5fd5c4451a9c054b6f0a547ca3164a))

### [1.6.2](https://www.github.com/snakemake-workflows/dna-seq-mtb/compare/v1.6.1...v1.6.2) (2024-03-26)


Expand Down
79 changes: 76 additions & 3 deletions workflow/resources/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,20 @@ calling:
for consequence in ANN['Consequence'].split("&")
) and
not ('intron_variant' in ANN['Consequence'] and not 'splice' in ANN['Consequence'])
af_highly_relevant: >-
FORMAT['AF']['tumor'] > 0.1 and ANN['gnomADg_AF'] < 0.01
allele_frequency_high: >-
FORMAT['AF']['tumor'] >= 0.05
allele_frequency_low: >-
FORMAT['AF']['tumor'] < 0.05
spliceai_malign: >-
ANN['SpliceAI_pred_DS_AG'] > 0.5 or ANN['SpliceAI_pred_DS_AL'] > 0.5 or ANN['SpliceAI_pred_DS_DG'] > 0.5 or ANN['SpliceAI_pred_DS_DL'] > 0.5
am_malign: >-
ANN['am_pathogenicity'] is NA or ANN['am_pathogenicity'] >= 0.34
revel_malign: >-
(ANN['REVEL'] is NA or ANN['REVEL'] >= 0.5)
clinsig_not_benign: >-
len(set(['likely benign', 'benign']) & set(ANN['CLIN_SIG'])) == 0
impact_moderate: >-
ANN['IMPACT'] == 'MODERATE'
impact_high: >-
Expand All @@ -121,9 +129,6 @@ calling:
((not {'risk_factor', 'pathogenic', 'drug_response'}.isdisjoint(ANN['CLIN_SIG'])) and ANN['REVEL'] is not NA and ANN['REVEL'] < 0.5) or (
'likely_pathogenic' in ANN['CLIN_SIG'] and (
({'risk_factor', 'pathogenic', 'drug_response'}.isdisjoint(ANN['CLIN_SIG'])) and (ANN['REVEL'] is NA or ANN['REVEL'] >= 0.5))))
loh_relevant: >-
ANN['IMPACT'] != 'LOW' and ANN['IMPACT'] != 'MODIFIER' and
not (set(["benign", "likely benign"]) > set(ANN['CLIN_SIG']) and "benign" in ANN['CLIN_SIG'])
cancer_relevant: >-
ANN['IMPACT'] != 'MODIFIER' and ANN['Consequence'] != 'synonymous_variant'
splice_mutation: >-
Expand All @@ -132,6 +137,10 @@ calling:
aux-files:
cancer_genes: ../resources/config/gene-sets/cancer-genes.txt
expression: "ANN['SYMBOL'] in AUX['cancer_genes']"
drugable_genes:
aux-files:
drugable_genes: ../resources/config/gene-sets/drugable_genes.txt
expression: "ANN['SYMBOL'] in AUX['drugable_genes']"
pi3k_pathway:
aux-files:
pathway_genes: ../resources/config/gene-sets/PI3K_AKT_mTOR.txt
Expand Down Expand Up @@ -162,7 +171,36 @@ calling:
threshold: 0.05
local: true
events:
unfiltered:
types: ["variants"]
varlociraptor: ["somatic_tumor_high", "somatic_tumor_low", "germline"]
desc: Unfiltered variants
labels:
callset: Unfiltered
impact: All
subcategory: Unfiltered variant calls
?for event_type in ["somatic_or_germline", "loh"]:
?f"{event_type}_likely_high_relevance":
types: ["variants"]
varlociraptor: ?get_events(event_type)
filter:
- cancer_relevant
- cancer_genes
- af_highly_relevant
- revel_malign
- am_malign
- spliceai_malign
- clinsig_not_benign
sort:
- "binned max vaf"
- impact
- revel
desc: ?f"{get_description(event_type)} with low to high impact but gnomAD AF <0.01 and VAF 0.1<"
labels:
callset: likely high relevance
impact: low, moderate, high
subcategory: ?get_description(event_type)

?f"{event_type}_impact_moderate_novel":
types: ["variants"]
varlociraptor: ?get_events(event_type)
Expand Down Expand Up @@ -267,6 +305,23 @@ calling:
impact: low, moderate, high
subcategory: ?get_description(event_type)

?f"{event_type}_drugable_genes":
types: ["variants"]
varlociraptor: ?get_events(event_type)
filter:
- cancer_relevant
- drugable_genes
- af_highly_relevant
sort:
- "binned max vaf"
- impact
- revel
desc: ?f"{get_description(event_type)} affecting known drugable genes with low to high impact."
labels:
callset: drugable genes
impact: low, moderate, high
subcategory: ?get_description(event_type)

?f"{event_type}_pi3k_pathway":
types: ["variants"]
varlociraptor: ?get_events(event_type)
Expand Down Expand Up @@ -378,6 +433,22 @@ remove_duplicates:
calc_consensus_reads:
activate: false


population:
db:
# Set to true to contiuously update a population database (BCF) with each new sample.
activate: false
# Path to a BCF file to be used to collect variants across mutliple runs of the pipeline.
# The path can be outside of the workdir. Snakemake will update the file with each new
# sample that occurs.
path: ...
# Varlociraptor events to be used.
alias: tumor
fdr: 0.05
events:
- somatic_tumor_high
- somatic_tumor_medium

annotations:
vcfs:
activate: true
Expand Down Expand Up @@ -409,6 +480,8 @@ annotations:
# Plugin args can be passed as well, e.g. "LoFtool,path/to/custom/scores.txt".
- LoFtool
- REVEL
- SpliceAI,snv=/home/moelder/resources/SpliceAI/spliceai_scores.raw.snv.hg38.vcf.gz,indel=/home/moelder/resources/SpliceAI/spliceai_scores.raw.indel.hg38.vcf.gz
- AlphaMissense,file=/home/moelder/resources/AlphaMissense/AlphaMissense_hg38.tsv.gz

params:
cutadapt: ""
Expand Down
2 changes: 2 additions & 0 deletions workflow/resources/config/gene-sets/README_drugable_genes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
drugable genes are available at https://www.oncokb.org/oncology-therapies and have been converted into a gene list.
updated: 22.03.2024
Loading

0 comments on commit a49fda1

Please sign in to comment.