Commit ef920957 authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

update syntax for renaming files automatically

parent 3d929287
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1445,9 +1445,9 @@ for key in ${keys[@]}; do
                    echo "  renaming $read ..."
                fi
                k=$((${j} + 1))
                rename -f "s/_L([0-9][0123456789][0123456789])/_S${k}_L\$1/" ${read}*
                rename -f "s/_L([0123456789][0123456789][0123456789])/_S${k}_L\1/" ${read}*
                #update file variable
                read=`echo $read | sed -e "s/_L([0-9][0123456789][0123456789])/_S${k}_L\$1/g"`
                read=`echo $read | sed -e "s/_L\([0123456789][0123456789][0123456789]\)/_S${k}_L\1/g"`
                list[$j]=$read
            ;;
        esac
+2 −2
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ bash launch_universc.sh --id "test-icell8-72618_KU812-2-lanes" --technology "iCe
 --read1 "test/shared/icell8-test/72618_KU812_L001_R1_001.fastq" "test/shared/icell8-test/72618_KU812_L002_R1_001.fastq" \
 --read2 "test/shared/icell8-test/72618_KU812_L001_R2_001.fastq" "test/shared/icell8-test/72618_KU812_L002_R2_001.fastq" \
 --barcodefile "test/shared/icell8-test/WellList.txt" \
 --per-cell-data --jobmode "local" --localcores 2 --localmem 4
 --per-cell-data --jobmode "local" --localcores 2 --localmem 4 --verbose

if [ -f test/shared/icell8-test/72618_KU812_S1_L001_R1_001.fastq ]; then
    rename "s/_S1_L001/_L001/" test/shared/icell8-test/72618_KU812_S1_L001_R1_001.fastq*
@@ -93,7 +93,7 @@ bash launch_universc.sh --id "test-icell8-72618_KU812-1-lane" --technology "iCel
 --read1 "test/shared/icell8-test/72618_KU812_L001_R1_001.fastq" \
 --read2 "test/shared/icell8-test/72618_KU812_L001_R2_001.fastq" \
 --barcodefile "test/shared/icell8-test/WellList.txt" \
 --per-cell-data --jobmode "local" --localcores 2 --localmem 4
 --per-cell-data --jobmode "local" --localcores 2 --localmem 4 --verbose

if [ -f test/shared/icell8-test/72618_KU812_S1_L001_R1_001.fastq ]; then
    rename "s/_S1_L001/_L001/" test/shared/icell8-test/72618_KU812_S1_L001_R1_001.fastq*