-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test dag * fix modes * abspath * args * fix * sorted * fix * wildcard constrains * does this work * parenthesis * expand * expand * suffix * allelic feature counts * dt qc * deeptools allelic * dtqc * fixes * multiqc * pvcf * reverse in * multiqc * parenthesis * dqc * DESeq2 * test dag * link bam * frombam * index external * quotes * escape fromBAM * test dag * test dag * test dag * pytest * pytest * docs * underline * underline --------- Co-authored-by: [email protected] <[email protected]>
- Loading branch information
1 parent
4add952
commit 8d1132a
Showing
14 changed files
with
191 additions
and
13 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
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,6 @@ | ||
name: snakepipes_whatshap_environment_1.0 | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
dependencies: | ||
- whatshap = 2.3 |
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,40 @@ | ||
rule whatshap_haplotag: | ||
input: | ||
ref = genome_fasta, | ||
pvcf = pvcf, | ||
bam = "filtered_bam/{sample}.filtered.bam", | ||
bai = "filtered_bam/{sample}.filtered.bam.bai" | ||
output: | ||
hbam = "allelic_bams/{sample}.allele_flagged.sorted.bam", | ||
hlist = "allelic_bams/{sample}_haplotype_list.tsv" | ||
benchmark: | ||
"allelic_bams/.benchmark/whatshap_haplotag.{sample}.benchmark" | ||
threads: 4 | ||
conda: CONDA_WHATSHAP_ENV | ||
shell: """ | ||
whatshap haplotag --ignore-read-groups -o {output.hbam} --reference {input.ref} --output-threads={threads} --output-haplotag-list={output.hlist} {input.pvcf} {input.bam} | ||
""" | ||
|
||
rule whatshap_split: | ||
input: | ||
hbam = "allelic_bams/{sample}.allele_flagged.sorted.bam", | ||
hlist = "allelic_bams/{sample}_haplotype_list.tsv" | ||
output: | ||
h1bam = "allelic_bams/{sample}.genome1.sorted.bam", | ||
h2bam = "allelic_bams/{sample}.genome2.sorted.bam", | ||
unbam = "allelic_bams/{sample}.unassigned.sorted.bam" | ||
benchmark: | ||
"allelic_bams/.benchmark/whatshap_split.{sample}.benchmark" | ||
conda: CONDA_WHATSHAP_ENV | ||
shell: """ | ||
whatshap split --output-h1 {output.h1bam} --output-h2 {output.h2bam} --output-untagged {output.unbam} {input.hbam} {input.hlist} | ||
""" | ||
|
||
|
||
rule BAMindex_allelic: | ||
input: | ||
expand("allelic_bams/{sample}.{suffix}.sorted.bam",sample=samples,suffix=['allele_flagged', 'genome1', 'genome2', 'unassigned']) | ||
output: | ||
expand("allelic_bams/{sample}.{suffix}.sorted.bam.bai",sample=samples,suffix=['allele_flagged', 'genome1', 'genome2', 'unassigned']) | ||
conda: CONDA_SHARED_ENV | ||
shell: "samtools index {input}" |
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