Skip to content

Commit

Permalink
Merge pull request #83 from clinical-genomics-uppsala/develop
Browse files Browse the repository at this point in the history
chore: dev to main
  • Loading branch information
padraicc authored Aug 29, 2024
2 parents cd0097e + 904511c commit 835b970
Show file tree
Hide file tree
Showing 17 changed files with 1,644 additions and 1,534 deletions.
20 changes: 13 additions & 7 deletions .tests/integration/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ default_container: "docker://hydragenetics/common:1.11.1"

modules:
alignment: "v0.6.0"
annotation: "v0.3.0"
annotation: "v1.0.1"
compression: "v2.0.0"
cnv_sv: "v0.5.0"
filtering: "v0.3.0"
Expand Down Expand Up @@ -57,16 +57,19 @@ bcftools_split_vep:
bcftools_view_biallelic:
extra: "-m2 -M2 -v snps"

bcftools_filter_cnvpytor:
exclude: "'pytorp1>0.0001 | pytorDG<100000 | pytorpN>0.5 | pytorQ0>0.5'"
bcftools_softfilter_cnvpytor:
exclude: "'pytorP1>0.0001 | pytorDG<100000 | pytorPN>0.5 | ( pytorQ0>0.5 && FORMAT/CN != 0)'"
extra: "-s LowQual "

bcftools_hardfilter_cnvpytor:
exclude: "'pytorP1>0.0001 | pytorDG<100000 | pytorPN>0.5 | ( pytorQ0>0.5 && FORMAT/CN != 0)'"

bcftools_view_pass:
container: "docker://hydragenetics/common:1.11.1"
extra: "--apply-filter PASS "

bcftools_view_svdb:
extra: "-f 'PASS' -e 'tiddit_AF>0.05 | manta_AF>0.05 | cnvpytor_AF>0.05 | gnomad_AF>0.1'"
extra: "-f 'PASS' -e 'manta_AF>0.05 | cnvpytor_AF>0.05 | gnomad_AF>0.1'"

bwa_mem:
container: "docker://hydragenetics/bwa:0.7.15"
Expand Down Expand Up @@ -319,8 +322,8 @@ stranger:
svdb_merge:
container: "docker://hydragenetics/svdb:2.8.2"
overlap: 0.6
priority: "tiddit,manta,cnvpytor"
extra: "--pass_only "
priority: "manta,cnvpytor"
extra: "--pass_only --no_intra "

svdb_query:
container: "docker://hydragenetics/svdb:2.6.0"
Expand All @@ -332,7 +335,7 @@ tabix:
container: "docker://hydragenetics/common:0.1.9"

tiddit:
container: "docker://hydragenetics/tiddit:3.3.2"
container: "docker://hydragenetics/tiddit:3.7.0"

upd:
container: "docker://hydragenetics/upd:0.1.1"
Expand All @@ -341,16 +344,19 @@ upd:
vep:
container: "docker://ensemblorg/ensembl-vep:release_109.3"
vep_cache: "reference/VEP/"
mode: "--offline --cache --refseq "
extra: "--assembly GRCh38 --check_existing --pick --sift b --polyphen b --ccds --symbol --af --af_1kg --af_gnomad --max_af"

vep_trio:
container: "docker://ensemblorg/ensembl-vep:release_109.3"
vep_cache: "reference/VEP/"
mode: "--offline --cache --refseq "
extra: "--assembly GRCh38 --check_existing --pick --max_af --buffer_size 50000"

vep_svdb:
container: "docker://ensemblorg/ensembl-vep:release_110.1"
vep_cache: "reference/VEP/"
mode: "--offline --cache --refseq "
extra: "--assembly GRCh38 --check_existing --pick --custom file=/data/ref_data/gnomad/gnomad_sv/gnomad.v4.0.sv.vcf.gz,short_name=gnomad,fields=AF%CN_NONREF_FREQ%FILTER%ALGORITHMS%EVIDENCE%SVTYPE,format=vcf,reciprocal=1,overlap_cutoff=60,distance=1000,same_type=1"

verifybamid2:
Expand Down
2 changes: 1 addition & 1 deletion .tests/integration/config/config_hard_filter_germline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
filters:
germline:
description: "Hard filter germline"
expression: "(VEP:MAX_AF > 0.10)"
expression: "(VEP:MAX_AF > 0.10 and VEP:SYMBOL != POLG)"
soft_filter: "False"
2 changes: 1 addition & 1 deletion .tests/integration/config/output_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"results/{sample}/{sample}_snv_indels.vcf.gz.tbi": {"name": "_copy_snv_indels_tbi", "file": "vcf_final/{sample}_N.vcf.gz.tbi", "types": ["N"]},
"results/{sample}/{sample}_snv_indels.filtered.vcf.gz": {"name": "_copy_snv_indels_filtered_vcf", "file": "vcf_final/{sample}_N.vep_annotated.filter.germline.vcf.gz", "types": ["N"]},
"results/{sample}/{sample}_snv_indels.filtered.vcf.gz.tbi": {"name": "_copy_snv_indels_filtered_tbi", "file": "vcf_final/{sample}_N.vep_annotated.filter.germline.vcf.gz.tbi", "types": ["N"]},
"results/{sample}/cnv_sv/{sample}.cnvpytor_filtered.vcf.gz": {"name": "_copy_cnvpytor_filtered_vcf", "file": "cnv_sv/cnvpytor/{sample}_N.filtered.vcf.gz", "types": ["N"]},
"results/{sample}/cnv_sv/{sample}.cnvpytor_filtered.vcf.gz": {"name": "_copy_cnvpytor_filtered_vcf", "file": "cnv_sv/cnvpytor/{sample}_N.hardfiltered.vcf.gz", "types": ["N"]},
"results/{sample}/cnv_sv/{sample}.cnvpytor.vcf.gz": {"name": "_copy_cnvpytor_vcf", "file": "cnv_sv/cnvpytor/{sample}_N.softfiltered.vcf.gz", "types": ["N"]},
"results/{sample}/cnv_sv/{sample}.cnvpytor_filtered.aed": {"name": "_copy_cnvpytor_filtered_aed", "file": "cnv_sv/cnvpytor/{sample}_N_filtered.aed", "types": ["N"]},
"results/{sample}/cnv_sv/{sample}.cnvpytor.aed": {"name": "_copy_cnvpytor_aed", "file": "cnv_sv/cnvpytor/{sample}_N.aed", "types": ["N"]},
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The workflow repository contains a dry run test of the pipeline in `.tests/inte

```bash
$ cd .tests/integration
$ snakemake -n -s ../../workflow/Snakefile --configfiles ../../config/config.yaml config.yaml
$ snakemake -n -s ../../workflow/Snakefile --configfile config/config.yaml
```

## :rocket: [Usage](https://poirot-rd-wgs.readthedocs.io/en/latest/running/)
Expand Down
40 changes: 22 additions & 18 deletions config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---

aligner: "bwa_gpu"
snp_caller: "deepvariant_gpu"

resources: "config/resources.yaml"
samples: "samples_with_info.tsv"
Expand All @@ -11,7 +13,7 @@ default_container: "docker://hydragenetics/common:1.11.1"

modules:
alignment: "v0.6.0"
annotation: "v0.3.0"
annotation: "v1.0.1"
compression: "v2.0.0"
cnv_sv: "v0.5.0"
filtering: "v0.3.0"
Expand All @@ -23,28 +25,25 @@ modules:
snv_indels: "v1.0.0"

reference:
coverage_bed: "/beegfs-storage/data/ref_data/refseq/refseq_select_mane_with_MT_20240102.bed" #Created bed with https://github.com/zezzipa/UCSCtable2bed
coverage_bed: "/beegfs-storage/data/ref_data/refseq/refseq_select_mane_with_MT_with_non_coding_20240613.bed" # see /beegfs-storage/data/ref_data/refseq/README
design_bed: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/homo_sapiens.hg38.wgs.bed"
exome_bed: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/Twist_Comprehensive_Exome_Covered_Targets_hg38.bed"
exome_intervals: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/Twist_Comprehensive_Exome_Covered_Targets_hg38.interval_list"
fasta: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/GCA_000001405.15_GRCh38_no_alt_analysis_set_GRCmasked.fasta"
fai: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/GCA_000001405.15_GRCh38_no_alt_analysis_set_GRCmasked.fasta.fai"
genepanels: "/beegfs-storage/projects/wp3/Reference_files/Manifest/Clinical_research_exome/Gene_panels/genepanels_WGS.list"
genepanels: "config/gene_panels/genepanels_WGS.list"
sites: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/Homo_sapiens_assembly38.known_indels.vcf.gz"
wgs_intervals: "/beegfs-storage/data/ref_genomes/GRCh38/GRCmasked/homo_sapiens.hg38.wgs.interval_list"
str_panels_dir: "config/str_panels"
str_panels:
- "ataxia.list"
- "ataxi.list"
merge_contigs: # contigs to be merged to a single BAM for mark duplicates
- ".*_random"
- "chrUn_.*"
- "chrEBV"

trimmer_software: "fastp_pe"

aligner: "bwa_gpu" # "bwa_cpu" or "bwa_gpu"
snp_caller: "deepvariant_gpu" # "deepvariant_cpu" or "deepvariant_gpu"

automap:
container: "docker://hydragenetics/automap:1.2"
build: "hg38"
Expand All @@ -57,15 +56,18 @@ bcftools_split_vep:
bcftools_view_biallelic:
extra: "-m2 -M2 -v snps"

bcftools_filter_cnvpytor:
exclude: "'pytorP1>0.0001 | pytorDG<100000 | pytorPN>0.5 | pytorQ0>0.5'"
bcftools_softfilter_cnvpytor:
exclude: "'pytorP1>0.0001 | pytorDG<100000 | pytorPN>0.5 | ( pytorQ0>0.5 && FORMAT/CN != 0)'"
extra: "-s LowQual "

bcftools_hardfilter_cnvpytor:
exclude: "'pytorP1>0.0001 | pytorDG<100000 | pytorPN>0.5 | ( pytorQ0>0.5 && FORMAT/CN != 0)'"

bcftools_view_pass:
extra: "--apply-filter PASS "

bcftools_view_svdb:
extra: "-f 'PASS' -e 'tiddit_AF>0.05 | manta_AF>0.05 | cnvpytor_AF>0.05 | gnomad_AF>0.1'"
extra: "-f 'PASS' -e 'manta_AF>0.05 | cnvpytor_AF>0.05 | gnomad_AF>0.1'"

bwa_mem:
container: "docker://hydragenetics/bwa:0.7.15"
Expand Down Expand Up @@ -109,7 +111,6 @@ cnvpytor_filter:
view: "500"

create_cov_excel:
container: "docker://hydragenetics/common:1.11.1"
covLimits: "10 20 30"

deepvariant:
Expand All @@ -119,7 +120,7 @@ deepvariant:

expansionhunter:
container: "docker://hydragenetics/expansionhunter:5.0.0"
variant_catalog: "/beegfs-storage/data/ref_data/stranger/v0.8.1/variant_catalog_hg38.json"
variant_catalog: "config/str_catalog/variant_catalog_hg38.json"

fastp_pe:
container: "docker://hydragenetics/fastp:0.20.1"
Expand Down Expand Up @@ -313,25 +314,25 @@ spring:

stranger:
container: "docker://hydragenetics/stranger:0.8.1"
catalog: "/beegfs-storage/data/ref_data/stranger/v0.8.1/variant_catalog_hg38.json"
catalog: "config/str_catalog/variant_catalog_hg38.json"

svdb_merge:
container: "docker://hydragenetics/svdb:2.8.2"
overlap: 0.6
priority: "tiddit,manta,cnvpytor"
extra: "--pass_only "
priority: "manta,cnvpytor"
extra: "--pass_only --no_intra "

svdb_query:
container: "docker://hydragenetics/svdb:2.8.2"
db_string:
"--db /beegfs-storage/data/ref_data/wp3/svdb/svdb_create/tiddit_wgs_hg38_1.0.vcf.gz,/beegfs-storage/data/ref_data/wp3/svdb/svdb_create/manta_wgs_hg38_1.0.vcf.gz,/beegfs-storage/data/ref_data/wp3/svdb/svdb_create/cnvpytor_wgs_hg38_1.0.vcf.gz"
extra: "--in_frq FRQ,FRQ,FRQ --in_occ OCC,OCC,OCC --out_frq tiddit_AF,manta_AF,cnvpytor_AF --out_occ tiddit_OCC,manta_OCC,cnpytor_OCC "
"--db /beegfs-storage/data/ref_data/wp3/svdb/svdb_create/manta_wgs_hg38_1.0.vcf.gz,/beegfs-storage/data/ref_data/wp3/svdb/svdb_create/cnvpytor_wgs_hg38_1.0.vcf.gz"
extra: "--in_frq FRQ,FRQ --in_occ OCC,OCC --out_frq manta_AF,cnvpytor_AF --out_occ manta_OCC,cnvpytor_OCC "

tabix:
container: "docker://hydragenetics/common:1.11.1"

tiddit:
container: "docker://hydragenetics/tiddit:3.3.2"
container: "docker://hydragenetics/tiddit:3.7.0"

upd:
container: "docker://hydragenetics/upd:0.1.1"
Expand All @@ -340,16 +341,19 @@ upd:
vep:
container: "docker://ensemblorg/ensembl-vep:release_110.1"
vep_cache: "/beegfs-storage/data/ref_genomes/VEP/"
mode: "--offline --cache --refseq "
extra: "--assembly GRCh38 --check_existing --pick --sift b --polyphen b --ccds --symbol --af --af_1kg --af_gnomad --max_af"

vep_trio:
container: "docker://ensemblorg/ensembl-vep:release_110.1"
vep_cache: "/beegfs-storage/data/ref_genomes/VEP/"
mode: "--offline --cache --refseq "
extra: "--assembly GRCh38 --check_existing --pick --max_af --buffer_size 50000"

vep_svdb:
container: "docker://ensemblorg/ensembl-vep:release_110.1"
vep_cache: "/beegfs-storage/data/ref_genomes/VEP/"
mode: "--offline --cache --refseq "
extra: "--assembly GRCh38 --check_existing --pick --custom file=/data/ref_data/gnomad/gnomad_sv/gnomad.v4.0.sv.vcf.gz,short_name=gnomad,fields=AF%CN_NONREF_FREQ%FILTER%ALGORITHMS%EVIDENCE%SVTYPE,format=vcf,reciprocal=1,overlap_cutoff=60,distance=1000,same_type=1"

verifybamid2:
Expand Down
Loading

0 comments on commit 835b970

Please sign in to comment.