samtools fixmate: what's wrong with the terminal?
2
0
Entering edit mode
12 months ago

What is wrong with my terminal? Why it could look like on the picture? The command which I use:

samtools fixmate -m file_nSorted -@ 6 -0 BAM -path/file_fixmated.bam

Terminal during script processing:

screenshot of terminal

samtools • 804 views
ADD COMMENT
0
Entering edit mode
12 months ago
Ram 43k

The output format parameter is -O, not -0. Also, there's a - before the path/ which makes samtools thing ath/file_fixmated.bam is the value passed to -p but -p doesn't expect an input parameter. Speaking of, -m doesn't expect an input parameter as well, so I'm not sure what the file_nSorted value is doing there. Also, there's only one positional argument supplied so BAM output is being written to STDOUT. It looks like you did not read the extremely brief manual at all. Please read it and fix all of that - nothing is wrong with your terminal. PEBCAK.

ADD COMMENT
0
Entering edit mode
12 months ago

1) your standard output is redirected to the terminal instead of a file.

2) there is no such option -0 (zero) . your want -O (letter)

3) -path/file_fixmated.bam is a source of error as -p is a flag, you shouldn't concatenate it with a filename . Disable FR proper pair check 4) what is file_nSorted ?

etc...

all in one, you should have a look at the samtools manual. http://www.htslib.org/doc/samtools-fixmate.html

ADD COMMENT
0
Entering edit mode

oh , Ram was too fast ! :-D

ADD REPLY
0
Entering edit mode

Lol I started writing first, then discovered each issue as I was writing. All I saw was the -0 but then oh my goodness, so many problems!

ADD REPLY

Login before adding your answer.

Traffic: 3106 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