This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Doing nohup samtools sort and [ 1]+ Exit 1 is showing up

I'm currently trying to run a samtools sort on some bam files nohup samtools sort sample.bam s0rted.bam & and I keep on getting [ 1]+ Exit 1 nohup samtools sort sample.bam s0rted.bam when I press enter Why is this happening and how do I fix this problem?

I'm trying to sort the file to index it!

samtools unix alignment command line index

I personally dislike the habit of nohuping and sending processes to background. Either use a batch system if you are on a cluster or use something like GNU screen to be able to log in- and out of processes without the need to have a terminal open. Beyond that maybe your command is wrong, the syntax for sort you use is very old, what is the output of samtools --version?

If I'm not wrong nohup prints a log file called nohup.out. What is the output/content of this file?

1 answer

Your syntax is wrong. All your command will be doing is printing out usage. You want something like:

samtools sort sample.bam -o s0rted.bam

Log in to answer this question.