Commit d44dae84 authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

correct 10x setup fo chemistry

parent 5ef95054
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -2027,15 +2027,7 @@ fi
#allow "auto" only for 10x
if [[ "$technology" != "10x" ]]; then
    #use SC3Pv3 (umi length 12)
     if [[ "$chemistry" != "auto" ]];then
         #use automatic chemistry detection
         echo "Detecting 10x chemistry automatically"
         chemistry="auto"
         #do not convert UMI
         umi_default=12
         umilength=${umi_default}
         umiadjust=0
    elif [[ $umilength -ge 11 ]]; then
    if [[ $umilength -ge 11 ]]; then
        if [[ "$chemistry" == "SC3Pv1" ]] || [[ "$chemistry" == "SC3Pv2" ]]; then
            echo "Using 10x version 3 chemistry to support longer UMIs"
            chemistry="SC3Pv3"
@@ -2052,6 +2044,18 @@ if [[ "$technology" != "10x" ]]; then
       exit 1
    fi
fi
if [[ "$technology" == "10x" ]]; then
    #use SC3Pv3 (umi length 12)
    if [[ "$chemistry" != "auto" ]];then
    #use automatic chemistry detection
    echo "Detecting 10x chemistry automatically"
    chemistry="auto"
    #do not convert UMI
    umi_default=12
    umilength=${umi_default}
    umiadjust=0
    fi
fi
if [[ "$technology" == "smartseq" ]] || [[ "$technology" == "smartseq3" ]] || [[ "$technology" == "icell8-5-prime" ]]; then
    if [[ $verbose ]]; then
        echo "  Using $chemistry for $technology"