Identify dovetail read-pairs from a bam/sam file
1
0
Entering edit mode
7.8 years ago
neja ▴ 70

Hi, Is there a way to identify read pairs which are aligned as "dove-tail" by bowtie2? I've used the flag --dovetail while mapping with bowtie2.

alignment • 2.4k views
ADD COMMENT
1
Entering edit mode
7.8 years ago

Using samjs: https://github.com/lindenb/jvarkit/wiki/SamJS

java -jar dist/samjs.jar -e 'record.getReadPairedFlag() && !record.getReadUnmappedFlag() && !record.getMateUnmappedFlag() && record.getReferenceName().equals(record.getMateReferenceName()) && record.getAlignmentStart()<= record.getMateAlignmentStart() && record.getMateAlignmentStart()<=record.getAlignmentEnd()'  input.bam

you might consider the strand of the read/mate too.

ADD COMMENT

Login before adding your answer.

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