Skip to content

Commit

Permalink
redirect which output to avoid poluting stderr with messages about mi…
Browse files Browse the repository at this point in the history
…ssing binaries a run may not need (e.g. bwa when no HiC)
  • Loading branch information
skoren committed Dec 21, 2023
1 parent b7f7bab commit aa46707
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/verkko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ if [ "x$mbg" = "x" ] ; then # Not set by an option,
mbg=${verkko}/bin/MBG # Set it to our bin/ directory.
fi
if [ ! -e $mbg ] ; then # Not in the bin directory,
mbg=$(which MBG) # Set it to whatever is in the PATH.
mbg=$(which MBG 2>/dev/null) # Set it to whatever is in the PATH.
fi
if [ "x$mbg" != "x" ]; then
mbg=$(fullpath $mbg)
Expand All @@ -529,17 +529,17 @@ if [ "x$graphaligner" = "x" ] ; then
graphaligner=${verkko}/bin/GraphAligner
fi
if [ ! -e $graphaligner ] ; then
graphaligner=$(which GraphAligner)
graphaligner=$(which GraphAligner 2>/dev/null)
fi
if [ "x$graphaligner" != "x" ]; then
graphaligner=$(fullpath $graphaligner)
graphaligner=$(fullpath $graphaligner 2>/dev/null)
fi

if [ "x$mashmap" = "x" ] ; then
mashmap=${verkko}/bin/mashmap
fi
if [ ! -e $mashmap ] ; then
mashmap=$(which mashmap)
mashmap=$(which mashmap 2>/dev/null)
fi
if [ "x$mashmap" != "x" ]; then
mashmap=$(fullpath $mashmap)
Expand All @@ -549,7 +549,7 @@ if [ "x$winnowmap" = "x" ] ; then
winnowmap=${verkko}/bin/winnowmap
fi
if [ ! -e $winnowmap ] ; then
winnowmap=$(which winnowmap)
winnowmap=$(which winnowmap 2>/dev/null)
fi
if [ "x$winnowmap" != "x" ]; then
winnowmap=$(fullpath $winnowmap)
Expand All @@ -559,7 +559,7 @@ if [ "x$bwa" = "x" ] ; then
bwa=${verkko}/bin/bwa
fi
if [ ! -e $bwa ] ; then
bwa=$(which bwa)
bwa=$(which bwa 2>/dev/null)
fi
if [ "x$bwa" != "x" ]; then
bwa=$(fullpath $bwa)
Expand All @@ -569,7 +569,7 @@ if [ "x$samtools" = "x" ] ; then
samtools=${verkko}/bin/samtools
fi
if [ ! -e $samtools ] ; then
samtools=$(which samtools)
samtools=$(which samtools 2>/dev/null)
fi
if [ "x$samtools" != "x" ]; then
samtools=$(fullpath $samtools)
Expand Down

0 comments on commit aa46707

Please sign in to comment.