Get complete mate position

28 views
Skip to first unread message

Victorin Martin

unread,
Jan 12, 2015, 11:07:00 AM1/12/15
to bamtoo...@googlegroups.com
Hi,

First of all Thanks Derek for BamTools :-).
I'm a new user and I'm still trying to grasp all the power of the API.

I'm currently using it on RNA-seq paired-end reads. I was wondering what is the simplest way to get the complete genomic position of a mate read.
MatePosition is of course directly available but I'd like to access the output of GetEndPosition() called on the mate of the current read.
Is there any way to do so?

I thought about sorting the bam file by name to get mates as successive reads in the Bam file but, since there is no real name convention for the reads, I doubt this is a good idea.

Thanks!

Victorin.

Lawrence Ganeshalingam

unread,
Jun 2, 2015, 9:19:55 AM6/2/15
to bamtoo...@googlegroups.com
Victorin

I contemplating in using this tool. I'm a new user as well. I'm wondering, if you ever got a response to your question? Basically I'm trying to understand that if the Author or any other power users are very sportive in this forum. I appreciate your response.

thanks,
Lawrence

Adam Roberts

unread,
Jun 2, 2015, 1:08:03 PM6/2/15
to bamtoo...@googlegroups.com
You can look at how I do it here: https://github.com/adarob/eXpress/blob/master/src/mapparser.cpp

Unfortunately there is no straightforward way to do it efficiently if you are parsing the full file.

--
You received this message because you are subscribed to the Google Groups "bamtools-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bamtools-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages