Doing nohup samtools sort and [ 1]+ Exit 1 is showing up
1
0
Entering edit mode
4.0 years ago

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 • 1.4k views
ADD COMMENT
4
Entering edit mode

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?

ADD REPLY
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode
4.0 years ago
aw7 ▴ 340

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
ADD COMMENT

Login before adding your answer.

Traffic: 2173 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6