Skip to content

Commit

Permalink
separated samtools, bcftools and realign envs to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Jun 22, 2024
1 parent 9df2e17 commit ee09756
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 99 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Prioritization of neoantigens is now done separately for each variant type (speeds up the process)
- NMD information (e.g., escape rule,...) is now also calculated for all variants

## [0.2.7] - 2024-06-23

### Fix

- Separated samtools, bcftools and realign environments to avoid conflicts

## [0.2.6] - 2024-06-20

### Fix
Expand Down
6 changes: 6 additions & 0 deletions workflow/envs/bcftools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- bcftools=1.20
7 changes: 7 additions & 0 deletions workflow/envs/realign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- bwa=0.7.18
- samtools=1.20
6 changes: 3 additions & 3 deletions workflow/envs/samtools.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
channels:
- conda-forge
- bioconda
- nodefaults
dependencies:
- samtools=1.9
- bcftools=1.9

- samtools=1.14
4 changes: 2 additions & 2 deletions workflow/rules/align.smk
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ rule realign:
output:
bam="results/{sample}/{seqtype}/align/{group}_final_BWA.bam",
conda:
"../envs/basic.yml"
"../envs/realign.yml"
log:
"logs/{sample}/realign/{seqtype}_{group}.log"
threads: config['threads']
Expand All @@ -225,7 +225,7 @@ if config['data']['dnaseq_filetype'] in ['.fq','.fastq']:
log:
"logs/{sample}/bwa_align/dnaseq_{group}.log"
conda:
"../envs/basic.yml"
"../envs/realign.yml"
params:
extra=""
threads: config['threads']
Expand Down
Empty file removed workflow/rules/all.smk
Empty file.
4 changes: 2 additions & 2 deletions workflow/rules/altsplicing.smk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ rule sort_altsplicing:
log:
"logs/{sample}/spladder/{group}_sort.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -70,7 +70,7 @@ rule combine_altsplicing:
log:
"logs/{sample}/exitrons/combine_exitrons.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat --naive -O z {input} -o - | bcftools sort -O z -o {output} > {log} 2>&1
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/custom.smk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ rule sort_custom_variants:
log:
"logs/{sample}/custom/sort_custom_variants.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand Down
4 changes: 2 additions & 2 deletions workflow/rules/exitron.smk
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ rule sort_exitron:
log:
"logs/exitron_sort_{sample}_{group}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -132,7 +132,7 @@ rule combine_exitrons:
log:
"logs/{sample}/exitrons/combine_exitrons.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat --naive -O z {input} -o - | bcftools sort -O z -o {output} > {log} 2>&1
Expand Down
16 changes: 8 additions & 8 deletions workflow/rules/germline.smk
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ rule sort_variants_htc_first_round:
log:
"logs/{sample}/gatk/haplotypecaller/{seqtype}_{group}_1rd_{chr}_sort.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -113,7 +113,7 @@ rule index_variants_htc_first_round:
log:
"logs/{sample}/gatk/haplotypecaller/{seqtype}_{group}_1rd_{chr}_index.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools index -t {input} > {log} 2>&1
Expand All @@ -130,7 +130,7 @@ rule merge_variants_htc_first_round:
log:
"logs/{sample}/gatk/haplotypecaller/{seqtype}_{group}_1rd_merge.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat -O z -a {input.vcf} -o {output} > {log} 2>&1
Expand All @@ -146,7 +146,7 @@ rule index_merged_variants_htc_first_round:
log:
"logs/{sample}/gatk/haplotypecaller/{seqtype}_{group}_1rd_index.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools index -t {input} > {log} 2>&1
Expand Down Expand Up @@ -346,7 +346,7 @@ rule sort_variants_htc_final_round:
log:
"logs/{sample}/indel/gatk/haplotypecaller/sort_final_{seqtype}_{group}_{chr}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -362,7 +362,7 @@ rule index_variants_htc_final_round:
log:
"logs/{sample}/indel/gatk/haplotypecaller/index_final_{seqtype}_{group}_{chr}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools index -t {input} > {log} 2>&1
Expand All @@ -379,7 +379,7 @@ rule merge_variants_htc_final_round:
log:
"logs/{sample}/indel/gatk/haplotypecaller/merge_final_{seqtype}_{group}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat -O z -a {input.vcf} -o {output} > {log} 2>&1
Expand All @@ -395,7 +395,7 @@ rule index_merged_variants_htc_final_round:
log:
"logs/{sample}/indel/gatk/haplotypecaller/index_final_{seqtype}_{group}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools index -t {input} > {log} 2>&1
Expand Down
20 changes: 10 additions & 10 deletions workflow/rules/indel.smk
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ rule longindel_sort_and_compress:
log:
"logs/{sample}/transindel/{seqtype}_{group}_longindel_sort.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -126,7 +126,7 @@ rule combine_longindels:
log:
"logs/{sample}/transindel/combine_longindels.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat --naive -O z {input} -o - | bcftools sort -O z -o {output} > {log} 2>&1
Expand Down Expand Up @@ -222,7 +222,7 @@ rule sort_short_indels_m2:
log:
"logs/{sample}/gatk/mutect2/sort_{seqtype}_{group}_{chr}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -238,7 +238,7 @@ rule index_short_indels_m2:
log:
"logs/{sample}/gatk/mutect2/index_{seqtype}_{group}_{chr}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools index -t {input} > {log} 2>&1
Expand All @@ -255,7 +255,7 @@ rule merge_short_indels_m2:
log:
"logs/{sample}/gatk/mutect2/merge_{seqtype}_{group}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat -O z -a {input.vcf} -o {output} > {log} 2>&1
Expand All @@ -273,7 +273,7 @@ rule index_merged_short_indels_m2:
log:
"logs/{sample}/gatk/mutect2/index_merged_{seqtype}_{group}.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools index -t {input} > {log} 2>&1
Expand Down Expand Up @@ -328,7 +328,7 @@ rule sort_aug_short_indels_m2:
log:
"logs/{sample}/transindel/{seqtype}_{group}_shortindel_sort.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -344,7 +344,7 @@ rule combine_aug_short_indels_m2:
log:
"logs/{sample}/transindel/combine_longindels.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat --naive -O z {input} -o - | bcftools sort -O z -o {output} > {log} 2>&1
Expand Down Expand Up @@ -398,7 +398,7 @@ rule sort_somatic_SNVs_m2:
log:
"logs/{sample}/transindel/{seqtype}_{group}_SNVs_sort.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools sort {input} -o - | bcftools view -O z -o {output} > {log} 2>&1
Expand All @@ -414,7 +414,7 @@ rule combine_somatic_SNVs_m2:
log:
"logs/{sample}/transindel/combine_somatic_SNVs.log"
conda:
"../envs/samtools.yml"
"../envs/bcftools.yml"
shell:
"""
bcftools concat --naive -O z {input} -o - | bcftools sort -O z -o {output} > {log} 2>&1
Expand Down
71 changes: 0 additions & 71 deletions workflow/rules/postproc.smk

This file was deleted.

0 comments on commit ee09756

Please sign in to comment.