Commit 68c589b4 authored by Swati Parekh's avatar Swati Parekh Committed by GitHub
Browse files

Update zUMIs-master.sh

conda-unpack error fixed
parent d4074026
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ mem_limit=`grep 'mem_limit:' $yaml | awk '{print $2}'`
isstats=`grep 'make_stats:' $yaml | awk '{print $2}'`
fqfiles=`grep 'name:' $yaml | awk '{print $2}'`
velo=`grep 'velocyto:' $yaml | awk '{print $2}'`
staridxdir=`grep 'STAR_index:' $yaml | awk '{print $2}'`


if grep -q 'samtools_exec:' $yaml
@@ -148,6 +149,8 @@ if [[ $conda = true ]]; then
    tar -xj --overwrite -f $miniconda -C $zumisenv
  fi
  #activate zUMIs environment!
  unset PYTHONPATH
  unset PYTHONHOME
  source $zumisenv/bin/activate
  conda-unpack
fi
@@ -194,6 +197,15 @@ if [[ -z "$sam_exc_check" ]] ||
  exit 1
fi

# Check if the STAR version used for mapping and the one in the provided STAR index are the same
starver=`$starexc --version | sed 's/STAR_//g' | sed 's/\s+//g'`
staridxver=`grep "versionGenome" $staridxdir/genomeParameters.txt | awk '{print $2}' | sed 's/\s+//g'`

if [[ "$starver" != "$staridxver" ]]; then
  echo "WARNING: The STAR version used for mapping is $starver and the STAR index is created using the version $staridxver. This might lead to error while mapping. If you encounter error at the mapping stage, please make sure to create the STAR index using STAR $staridxver."
  #exit 1
fi

#create output folders
outdir=`grep 'out_dir' $yaml | awk '{print $2}'`
#[ -d $outdir ] || mkdir $outdir