I have improved the script. However, it is still showing the following error.
for i in $(raw_data/270_R1.fastq,raw_data/270_R2.fastq raw_data/272_R1.fastq,raw_data/272_R2.fastq
raw_data/274_R1.fastq,raw_data/274_R2.fastq raw_data/278C_R1.fastq,raw_data/278C_R2.fastq
raw_data/284C_R1.fastq,raw_data/284C_R2.fastq);
do
/DataAnalysis/STAR-2.7.5a/bin/Linux_x86_64/./STAR --genomeDir /DataAnalysis/Manoj-data/test-star/SAindex \
--readFilesIn raw_data/${i}_R1.fastq,raw_data/${i}_R2.fastq \
--runThreadN 8 --outFileNamePrefix aligned/$i. \
--outSAMtype BAM SortedByCoordinate \
--quantMode GeneCounts; done
error:
./star.sh: line 7: raw_data/270_R1.fastq,raw_data/270_R2.fastq: No such file or directory
There should be a space between the two file names, not a comma.
I tried but not working.
Don't forget to define your read groups (
--outSAMattrRGline) if you're doing multi-sample alignment.