Skip to content

Commit

Permalink
Merge pull request #12 from BDI-pathogens/slurm_update_errors
Browse files Browse the repository at this point in the history
Add missing CONDA_BIN prefixes; identified following Slurm update
  • Loading branch information
lithomson authored Oct 31, 2022
2 parents c42bb19 + 8eca74c commit f5231b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snakemake/auxfiles/shiver_config_raw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ deduplicate=true
# include options in this command, such as a non-default
# DUPLICATE_SCORING_STRATEGY, but do not include options relating to file-naming
# or the associated shiver commands will break):
DeduplicationCommand="picard MarkDuplicates"
DeduplicationCommand="${CONDA_BIN}/picard MarkDuplicates"

# Shall we remap to the consensus? (For remapping, gaps in coverage in the
# consensus will filled in by the corresponding part of the orginal reference,
Expand Down
2 changes: 1 addition & 1 deletion snakemake/scripts/qc/qc_consensus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ get_mapped() {

get_mapped_positive() {
echo "INFO: Get mapped_positive" >>"${LOG}"
mapped_positive=$(($(samtools view -f3 "${IN_FILE_BAM}" | awk '($2!=147)&&($2!=99)' | wc -l) / 2))
mapped_positive=$(($("${CONDA_BIN}"/samtools view -f3 "${IN_FILE_BAM}" | awk '($2!=147)&&($2!=99)' | wc -l) / 2))
echo -n "${mapped_positive}," >>"${OUT_FILE}"
echo "DEBUG: ${mapped_positive}," >>"${LOG}"
}
Expand Down

0 comments on commit f5231b4

Please sign in to comment.