counting the unmapped reads
2
0
Entering edit mode
9.6 years ago
zizigolu ★ 4.3k

Hi all,

I have a sam file, my supervisor asked me to count the number of unmapped reads, which command I should use?

samtools view -c -F 4 [file.sam] says that input is probably truncated

RNA-Seq • 5.8k views
ADD COMMENT
0
Entering edit mode

Your file is corrupt, my friend. As mentioned above, the command is fine.

ADD REPLY
0
Entering edit mode

Are you Iranian, Amir?

ADD REPLY
1
Entering edit mode
21 months ago

Hi all,

I have a sam file, my supervisor asked me to count the number of unmapped reads, which command I should use?

samtools view -c -F 4 [file.sam] says that input is probably truncated

The command above would give you the number of mapped reads . if you want to get unmapped reads you should use "-f" not "-F"

samtools view -c -f 4 [file.sam]
ADD COMMENT
0
Entering edit mode
9.6 years ago

Your command is fine, the file isn't. Ask your supervisor to double check that the file isn't corrupt.

ADD COMMENT
0
Entering edit mode

Devon,

He's just waiting for the result I can't report any error.

ADD REPLY
2
Entering edit mode

The file is corrupt, you can't give him a reliable result.

ADD REPLY
0
Entering edit mode

ok thank you

ADD REPLY
1
Entering edit mode

If you've downloaded the file from somewhere you can try downloading again.

ADD REPLY

Login before adding your answer.

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