Commit 503249dd authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

check if barcode directory is writeable to handle missing lock files

parent 530135c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -345,7 +345,7 @@ if [[ $verbose == "true" ]]; then
fi
fi


#check if cellranger is writable
#check if cellranger is writable
if [[ ! -w $lockfile ]]; then
if [[ ! -w $barcodedir ]]; then
    echo "Error: Trying to run cellranger installed at ${cellrangerpath}"
    echo "Error: Trying to run cellranger installed at ${cellrangerpath}"
    echo "launch_universc.sh can only run with cellranger installed locally"
    echo "launch_universc.sh can only run with cellranger installed locally"
    echo "Install cellranger in a directory with write permissions such as /home/`whoami`/local and export to the PATH"
    echo "Install cellranger in a directory with write permissions such as /home/`whoami`/local and export to the PATH"
@@ -353,7 +353,7 @@ if [[ ! -w $lockfile ]]; then
    echo " `whereis cellranger`"
    echo " `whereis cellranger`"
    exit 1
    exit 1
fi
fi

exit 0
#check if technology matches expected inputs
#check if technology matches expected inputs
if [[ "$technology" != "10x" ]] && [[ "$technology" != "nadia" ]] && [[ "$technology" != "icell8" ]]; then
if [[ "$technology" != "10x" ]] && [[ "$technology" != "nadia" ]] && [[ "$technology" != "icell8" ]]; then
    if [[ "$technology" != "custom"* ]]; then
    if [[ "$technology" != "custom"* ]]; then