Mate pair positions using pysam
I can do this for the read in pysam
pos = read.positions
# returns a list of positions
I want to do this for the mate. There is no .mpositions but there is a .mpos
Thanks!
python
pysam
mate-pair
• 3,115 views
•
link
updated
by
Ram
•
written
by
QVINTVS_FABIVS_MAXIMVS
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
What do the samtools column names mean
written by Ishak •Can anyone explain more what do these items mean? MRNM is the mate reference name. MPOS is the mate position (1-based, leftmost). ISIZE is the …
-
Extracting Read and mates having variant positions Using BAM file vcf file in Python using pysam/ b…
written by Hassan •I am using Python and using PYSAM and PyVCF libraries for data handling. Hi, Suppose I have a bam file and a vcf file containing …
-
How to get a list of aligned read and reference positions using samtools
written by Aref.Ariyapour •I am trying to convert a python script that manipulates bam files, to C++. However, I couldn't find out how can I get a list …
-
How to filter/view reads mapped to multiple locations using samtools or pysam
written by AlchemistMoz •I've looked through the documentation for samtools and pysam but haven't found what I'm looking for. Pysam can check if `read.is_secondary` which returns true if …
-
How to cache reads?
written by everrove •I am using pysam (http://pysam.readthedocs.org/en/latest/api.html#pysam.AlignmentFile.mate) which is an interface to the samtools command line utilities to do analyze sequencing data. I'd like to work with …
-
Reading CRAM files in pysam
written by QVINTVS_FABIVS_MAXIMVSI'm new to CRAM format and I am wondering if I can read a CRAM file in pysam or samtools. Or generally speaking how do …
-
pysam: filtering reads based on flag
written by QVINTVS_FABIVS_MAXIMVSI would like to return reads with a flag of 0x02 similar to this $ samtools view -f 0x02 in.bam 1:100-200 **without** using system calls …
-
Optimizing samtools shell scripts. How to make code run faster
written by QVINTVS_FABIVS_MAXIMVSI would like to count the number of reads within a genomic region. This is the command I would like to use samtools view -f …
-
reads in pysam
written by yzhuan0621 •Hey, I am a newbie in pysam, and now I have a question. I use pysam to find the reads which overlap a given position, …
-
Calculating Mate Pair Offset from SAM file
written by QVINTVS_FABIVS_MAXIMVSI have a sam file that I would like to parse information out of ( who wouldn't?) I am interested in finding mate pairs that …
Hello,
It seems that
.mposis deprecated by.next_reference_startnow, but I still have a problem using it. If the mate read of a read exists and it is aligned to a position of the chrom,.next_reference_startreturns a region of aligned mate reads or just the start?Thanks a lot,
Fredsamhaak
Please make a new question horticulturesh, you've "answered" a few other questions with your own questions, which is not how this is supposed to work :P Write a new question, give as much code/data as you can, and you will get an answer :)