Skip to content

Commit

Permalink
Add capability to process GRIDSS2.0 VCFs
Browse files Browse the repository at this point in the history
  • Loading branch information
ppararaj committed Nov 8, 2021
1 parent aacbc47 commit daeb9a4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions modules/jabba/1.0/jabba.smk
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@ rule _jabba_input_gridss_vcf:
run:
op.relative_symlink(input.junc, output.junc)

rule _jabba_process_gridss_vcf:
input:
junc = str(rules._jabba_input_gridss_vcf.output.junc)
output:
junc = CFG["dirs"]["inputs"] + "junc/gridss/{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}.bnd.vcf"
shell:
op.as_one_line("""
zcat {input.junc} || cat {input.junc} | awk 'BEGIN {{OFS=FS=\"\t\"}} $0 ~ /^#/ || $3 !~ /b$/' > {output.junc}
""")

rule _jabba_input_manta_vcf:
input:
Expand All @@ -150,7 +159,7 @@ rule _jabba_merge_svs:
input:
installed = str(rules._jabba_install_jabba.output.complete),
manta = str(rules._jabba_input_manta_vcf.output.junc),
gridss = str(rules._jabba_input_gridss_vcf.output.junc)
gridss = str(rules._jabba_process_gridss_vcf.output.junc)
output:
junc = CFG["dirs"]["inputs"] + "junc/merged/{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}.rds"
log:
Expand Down Expand Up @@ -236,7 +245,9 @@ rule _jabba_run_jabba:
rds = str(rules._jabba_run_dryclean_tumour.output.rds),
junc = str(rules._jabba_merge_svs.output.junc)
output:
rds = CFG["dirs"]["jabba"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}/jabba.simple.gg.rds"
rds = CFG["dirs"]["jabba"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}/jabba.simple.gg.rds",
karyograph = CFG["dirs"]["jabba"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}/karyograph.rds",
simple = CFG["dirs"]["jabba"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}/jabba.simple.rds"
log:
stdout = CFG["logs"]["jabba"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}.stdout.log",
stderr = CFG["logs"]["jabba"] + "{seq_type}--{genome_build}/{tumour_id}--{normal_id}--{pair_status}.stderr.log"
Expand Down

0 comments on commit daeb9a4

Please sign in to comment.