Entering edit mode
8.6 years ago
bxia
▴
180
I tried to use samtools view -S -F 4 file.sam > mapped.sam to remove the unmapped reads,
But after that, I can't use
samtools view -S -F 0x40 mapped.sam | cut -f1 | sort | uniq | wc -l
to count the mapped read, it said 'missing header',
Anyone know the reason?
Thanks