Skip to content

Commit

Permalink
svdb merge manta delly tga
Browse files Browse the repository at this point in the history
  • Loading branch information
khurrammaqbool committed Mar 8, 2022
1 parent 1451d11 commit 80cdf8a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BALSAMIC/constants/workflow_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"mutation": "somatic",
"type": "SV",
"analysis_type": ["paired", "single"],
"sequencing_type": ["wgs"],
"sequencing_type": ["wgs","targeted"],
"workflow_solution": ["BALSAMIC"],
},
}
Expand Down
23 changes: 23 additions & 0 deletions BALSAMIC/snakemake_rules/annotation/varcaller_sv_filter.rule
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,26 @@ rule bcftools_filter_delly:
bcftools view --threads {threads} -f .,PASS -o {output.vcf_sv_pass} -O z {input.vcf};
tabix -p vcf -f {output.vcf_sv_pass};
"""

rule bcftools_filter_svdb:
input:
vcf = vep_dir + "SV.somatic.{case_name}.svdb.all.vcf.gz",
output:
vcf_sv_pass_svdb = vep_dir + "SV.somatic.{case_name}.svdb.all.filtered.pass.vcf.gz",
benchmark:
benchmark_dir + "bcftools_filter_svdb_SV.somatic.{case_name}.svdb.vep.tsv"
singularity:
Path(singularity_image,config["bioinfo_tools"].get("bcftools") + ".sif").as_posix()
params:
case_name = "{case_name}",
housekeeper_id = {"id": config["analysis"]["case_id"], "tags": "clinical"},
threads:
get_threads(cluster_config, "bcftools_filter_svdb")
message:
"Filtering svdb merged Manta and Delly results for PASS variants using bcftools for sample '{params.case_name}' "
shell:
"""
bcftools view --threads {threads} -f .,PASS -o {output.vcf_sv_pass_svdb} -O z {input.vcf};
tabix -p vcf -f {output.vcf_sv_pass_svdb};
"""

0 comments on commit 80cdf8a

Please sign in to comment.