Commit f74a8f8c authored by Holger Brandl's avatar Holger Brandl

fixed arg check in dge_bigwig

parent 3417e5b5
......@@ -190,13 +190,15 @@ fi
genomeFai=$1
bamFiles="${@:2}"
if [ ! -f "${genomeFai}" ]; then
echo "could not find fai index $1! ${usage}" >&2 ; return;
if [ ! -f "${genomeFai}" ] || [ ${genomeFai: -4} != ".fai" ]; then
echo "Could not find fai index $1!
${usage}" >&2 ; return;
fi
if [ -z "$(which wigToBigWig 2>/dev/null)" ]; then
echo "could not find wigToBigWig in PATH! ${usage}" >&2 ; #return;
echo "Could not find wigToBigWig in PATH!
${usage}" >&2 ; #return;
fi
jl reset .bigwig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment