Hi, I am trying to run hisat2 with 400 samples in a loop. for some reason when i specify -p it simply takes over all the resources in my computer and exits with error message "(ERR): hisat2-align exited with value 137". It works perfectly ok when don't specify any -p. commands i used
#!/bin/bash
cat /mnt/samplesNewList.txt | while read line
do
sudo hisat2 -p 2 -x /mnt/genomeindex-hisat/genome -U /mnt/$line.clean.fq.gz -S $line.sam --summary-file mnt/summary.txt &
done
any one encountered same issue?
You should not use
sudo
for things like this, only for sysadmin stuff or installing new software globally.