Entering edit mode
2.5 years ago
Olajucan
•
0
I can see that hisat2 is working because it shows the result on the terminal, but a result file is not created.
Here is my code.
#!/usr/bin bash
File='abc.txt'
Samples=$(cat $File)
IDX=/mnt/g/refs/wheat/iwgsc_refseqv2.1_assembly.fa
WD=/mnt/g/translocation
for Sample in $Samples
do
hisat2 -x $IDX -p 16 -1 $WD/"$Sample"_R1.fastq.gz -2 $WD/"$Sample"_R2.fastq.gz | samtools sort > $WD/$Sample.bam
done
Please give me any advices. Thank you.
when in doubt, echo every thing and run main function with small sized files.