Hello all, I am running Hisat2 for my RNASeq alignment for many samples. My bash script is following,
#!/bin/bash
id="4B1
4B2
4B3
4B4
4W1
4W2
4W3
4W4
7B1
7B2
7B3
7B4
7W1
7W2
7W3
7W4
"
for sample in $id
do
echo hisat2 -p 8 -x ./insectgenome/rhod.index --un-conc ./${sample}_insect_unmapped.fastq -1 ./reads/${sample}_R1_001_paired.fq.gz -2 ./reads/${sample}_R2_001_paired.fq.gz | samtools view -Sb - > ./${sample}_insect_mapped.bam
done
But i am getting error saying that [main_samview] fail to read the header.
please help me to get rid of this problem.
thanks and looking forward to hear from you.