Skip to content

Commit

Permalink
Try fixing samtools merge numpy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Nov 27, 2024
1 parent 4fc3386 commit 0121447
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workflow/envs/samtools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ channels:
- bioconda
dependencies:
# Python
# - python ==3.12
# - pandas ==2.2.2
# - numpy ==2.0.0
- python ==3.12
- pandas ==2.2.2
- numpy ==2.0.0
# Tools
- bioconda::samtools ==1.20
# - snakemake-wrapper-utils ==0.6.2
- snakemake-wrapper-utils ==0.6.2
6 changes: 6 additions & 0 deletions workflow/rules/mapping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ rule bam_index:
"logs/mapping/samtools-index/_" + "{prefix}.log",
group:
"mapping_extra"
conda:
"../envs/samtools.yaml"
wrapper:
"0.51.3/bio/samtools/index"

Expand Down Expand Up @@ -143,6 +145,10 @@ rule merge_sample_unit_bams:
threads: config["params"]["samtools"]["merge-threads"]
log:
"logs/mapping/samtools-merge/{sample}.log",
conda:
# Need our own env again, because of conflicting numpy and pandas version...
# Probably the cause of https://github.com/moiexpositoalonsolab/grenepipe/issues/58
"../envs/samtools.yaml"
wrapper:
"v3.13.6/bio/samtools/merge"

Expand Down

0 comments on commit 0121447

Please sign in to comment.