Is there a tool that filters a sam/bam file by the following: (1) similarity score; (2) length fraction?
0
1
Entering edit mode
5.1 years ago
O.rka ▴ 710

I want to make a pipeline that can take sam files from different aligners like HISAT2. One thing I like about HISAT2 is you can either map the reads to a transcripts or a GTF file if you had one available. What I like about BBMAP is that it has minid:

minid=0.76 Approximate minimum alignment identity to look for. Higher is faster and less sensitive.

CLC (a proprietary tool) has similarity and lengthfraction but I'm wondering if there are any downstream tools that can do this from the sam/bam file that is also computationally efficient. If I wrote something in Python it would take a long time (plus I don't really know what I'm doing for this type of work...I deal mostly with downstream data)

http://resources.qiagenbioinformatics.com/manuals/clcassemblycell/420/index.php?manual=Options_clc_mapper.html

-s --similarity Set similarity score (default 0.8).

-l --lengthfraction Set length fraction (default 0.5).

enter image description here Is there a tool that takes in sam/bam as input and take parameters like similarity and lengthfraction(like CLC) that outputs a filtered sam/bam file?

RNA-Seq alignment sequencing next-gen • 1.3k views
ADD COMMENT
0
Entering edit mode

I don't know any tool that can do that automatically.

I guess the easiest way is to parse each alignment with the softclips in the CIGAR string for the length fraction and the MD-tag for the similarity. If your BAM file is encoded in sam1.4, you can just use the CIGAR string.

If you want to compare different alignments, you can also include the BAM files' mapping quality.

ADD REPLY

Login before adding your answer.

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