Filter single exon reads
0
0
Entering edit mode
6.8 years ago
sloux • 0

I used Trinity to create a fasta file for my transcriptome, which I then mapped to the genome. Unfortunately, there are a lot of single exon reads in the BAM file which appear to just be junk. Does anyone know of a good way to filter these out? I can do it manually, but I really don't want to do that for a full BAM file.

BAM single exon reads • 1.1k views
ADD COMMENT
1
Entering edit mode

there are a lot of single exon reads

What exactly does that mean?

ADD REPLY
0
Entering edit mode

There are single exon reads I want to remove from my BAM file, i.e. they don't have splice sites. Many of them appear to be pre-mRNA, or intronic reads which I don't want in my final file.

ADD REPLY
1
Entering edit mode

Take a look at this: A: Filtering out the spliced reads from bam file. You want the opposite of what is being asked there.

See if reformat.sh in=mapped.bam out=filtered.bam maxdellen=0 does what you need.

ADD REPLY
0
Entering edit mode

My guess would that those reads are DNA contamination in your cDNA library.

ADD REPLY

Login before adding your answer.

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