BBmap: how to map ONLY paired-end reads to the reference
1
0
Entering edit mode
4.6 years ago
b.shrestha • 0

Hi,

I am using BBmap to map paired-end DNA reads to a reference and want to map pairs only without mapping individual mates similar to --no-mixed option in bowtie2.

Could someone help me with this?

Thanks!

BBmap • 1.6k views
ADD COMMENT
1
Entering edit mode

so you want BBmap to only report a mapping if both reads of a pair maps?

if so, have a look at the pairedonly=f option (put it to t for your case)

ADD REPLY
0
Entering edit mode

Yes, i will try that. Thanks for the help.

ADD REPLY
1
Entering edit mode
4.6 years ago
GenoMax 147k

Try the following option with bbmap.sh. I don't know if this is only referring to reads that are not a proper pair.

pairedonly=t            (po) Treat unpaired reads as unmapped.  Thus they will 
                        be sent to 'outu' but not 'outm'.

Otherwise you can do something like:

bbmap.sh <options> out=stdout.bam | reformat.sh in=stdin.bam out=final.bam pairedonly=t            

pairedonly=f            Toss reads that are not mapped as proper pairs.
ADD COMMENT
0
Entering edit mode

I want to toss the reads that map but don't have a pair. Thank you for your help.

ADD REPLY

Login before adding your answer.

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