Hi all,
I have been given some .sam files which were mapped using Shrimp2. I am now converting the file to a bam using samtools. My question is this: I know that I can use the '-F 4' flag to remove any of the unmapped reads. But I am also interested in keeping only those reads which have no more than 2 mismatches or insertions/deletions. When converting the file, is there an additional flag that will also do this type of filtering, such as an additional one of the hex flags?
Thanks
I have been given some .sam files which were mapped using Shrimp2. I am now converting the file to a bam using samtools. My question is this: I know that I can use the '-F 4' flag to remove any of the unmapped reads. But I am also interested in keeping only those reads which have no more than 2 mismatches or insertions/deletions. When converting the file, is there an additional flag that will also do this type of filtering, such as an additional one of the hex flags?
Thanks
Comment