This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from jlac/activeDev
Added merged output for FusionInspector and Oncofuse across STARfusion and FusionCatcher
- Loading branch information
Showing
21 changed files
with
119 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rule rule fusioninsp: | ||
input: starfusion="starfusion/{x}/star-fusion.fusion_predictions.tsv",fusioncatcher="fusioncatcher/fusioninspector/{x}/{x}_fusionInspector.input",file1="{x}.R1.trimmed.fastq.gz",file2="{x}.R2.trimmed.fastq.gz" | ||
output: "fusioninspector/{x}/{x}.fusion_predictions.final" | ||
params: rname='fusioninsp',sample="{x}",ref=config['project']['annotation'],starlib=config['references'][pfamily]['STARFUSIONLIB'] | ||
shell: "module load fusioninspector/1.1.0; module load STAR/2.7.0f; mkdir -p fusioninspector/{params.sample}; FusionInspector --fusions {input.starfusion},{input.fusioncatcher} --genome_lib {params.starlib} --left_fq {input.file1} --right_fq {input.file2} --out_dir fusioninspector/{params.sample} --out_prefix {params.sample} --prep_for_IGV --CPU 16 --cleanup --annotate --examine_coding_effect" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
rule fusioninsp_fuscatch: | ||
input: fusions="fusioncatcher/{x}/final-list_candidate-fusion-genes.txt",file1="{x}.R1.trimmed.fastq.gz",file2="{x}.R2.trimmed.fastq.gz" | ||
output: "fusioncatcher/fusioninspector/{x}/{x}.fusion_predictions.final" | ||
output: "fusioncatcher/fusioninspector/{x}/{x}.fusion_predictions.final","fusioncatcher/fusioninspector/{x}/{x}_fusionInspector.input" | ||
params: rname='fusioninsp',sample="{x}",ref=config['project']['annotation'],starlib=config['references'][pfamily]['STARFUSIONLIB'] | ||
threads: 8 | ||
shell: "module load fusioninspector/1.1.0; module load python/2.7; mkdir -p fusioncatcher/fusioninspector/{params.sample}; perl Scripts/make_fusioninspector_input.pl {params.sample} {params.ref}; FusionInspector --fusions fusioncatcher/fusioninspector/{params.sample}/{params.sample}_fusionInspector.input --genome_lib {params.starlib} --left_fq {input.file1} --right_fq {input.file2} --out_dir fusioncatcher/fusioninspector/{params.sample} --out_prefix {params.sample} --prep_for_IGV" | ||
shell: "module load fusioninspector/1.1.0; module load STAR/2.7.0f; mkdir -p fusioncatcher/fusioninspector/{params.sample}; perl Scripts/make_fusioninspector_input.pl {params.sample} {params.ref}; FusionInspector --fusions fusioncatcher/fusioninspector/{params.sample}/{params.sample}_fusionInspector.input --genome_lib {params.starlib} --left_fq {input.file1} --right_fq {input.file2} --out_dir fusioncatcher/fusioninspector/{params.sample} --out_prefix {params.sample} --prep_for_IGV" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
rule gatk_select_variants: | ||
input: bam=lambda wildcards: config['project']['units'][wildcards.x]+".recal.bam", | ||
vcf="exome.recode.vcf" | ||
output: vcf="sample_vcfs/{x}.sample.vcf", | ||
vcf="exome.relaxedFilter.vcf", | ||
output: vcfgz="sample_vcfs/{x}.sample.vcf.gz", | ||
csvstats="sample_vcfs/{x}.stats.csv", | ||
htmlstats="sample_vcfs/{x}.stats.html", | ||
bed="sample_vcfs/{x}.snpeff.bed" | ||
params: sample=lambda wildcards: config['project']['units'][wildcards.x],gatk=config['bin'][pfamily]['GATK'],genome=config['references'][pfamily]['GENOME'],targets="exome_targets.bed",snpeff=config['bin'][pfamily]['SNPEFF'],effgenome=config['references'][pfamily]['SNPEFF_GENOME'],effconfig=config['references'][pfamily]['SNPEFF_CONFIG'],rname="pl:extract" | ||
shell: "{params.gatk} -T SelectVariants -R {params.genome} -V {input.vcf} -sn {params.sample} -env -o {output.vcf}; module load snpEff/4.3t; java -Xmx12g -jar $SNPEFF_JAR -v -c {params.effconfig} -o bed -csvStats {output.csvstats} -stats {output.htmlstats} {params.effgenome} {output.vcf} > {output.bed}" | ||
bed="sample_vcfs/{x}.snpeff.bed", | ||
stats="sample_vcfs/{x}.bcftools" | ||
params: sample=lambda wildcards: config['project']['units'][wildcards.x],gatk=config['bin'][pfamily]['GATK'],genome=config['references'][pfamily]['GENOME'],targets="exome_targets.bed",snpeff=config['bin'][pfamily]['SNPEFF'],effgenome=config['references'][pfamily]['SNPEFF_GENOME'],effconfig=config['references'][pfamily]['SNPEFF_CONFIG'],exons=config['references'][pfamily]['EXONS'],rname="pl:extract" | ||
shell: """{params.gatk} -T SelectVariants -R {params.genome} -V {input.vcf} -sn {params.sample} -env -o sample_vcfs/{params.sample}.sample.vcf | ||
module load snpEff/4.3t; java -Xmx12g -jar $SNPEFF_JAR -v -c {params.effconfig} -o bed -csvStats {output.csvstats} -stats {output.htmlstats} {params.effgenome} sample_vcfs/{params.sample}.sample.vcf > {output.bed} | ||
module load samtools | ||
bgzip sample_vcfs/{params.sample}.sample.vcf | ||
tabix -p vcf {output.vcfgz} | ||
bcftools stats --exons {params.exons} --fasta-ref {params.genome} --regions-file {params.targets} {output.vcfgz} > {output.stats}""" |
Oops, something went wrong.