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
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
Your command is fine, the file isn't. Ask your supervisor to double check that the file isn't corrupt.
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]
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Your file is corrupt, my friend. As mentioned above, the command is fine.
Are you Iranian, Amir?