SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
samtools flagstat and ViewSam ALIGNMENT_STATUS=Aligned fabrice Bioinformatics 0 08-19-2011 06:01 AM
ShortRead R package Aligned Read Output?? nazanin Bioinformatics 0 01-31-2011 12:34 AM
how to get perfects aligned reads instead of real read ramouz87 Bioinformatics 1 10-25-2010 08:39 AM
get read position from Samtools pileup rcorbett Bioinformatics 2 02-10-2010 04:38 PM
Question on SAMtools variations calling of a BFAST-aligned SAM file? Ling Bioinformatics 4 02-02-2010 07:26 PM

Reply
 
Thread Tools
Old 09-24-2012, 08:51 AM   #1
BertieWooster
Member
 
Location: Sydney, Australia

Join Date: Jul 2009
Posts: 14
Question Aligned position within a read from Samtools mpileup

Hello,

Is it possible to infer the aligned position within a read (1-101) of every read in the alignment from a mpileup file?

Thanks for your input!

~BW
BertieWooster is offline   Reply With Quote
Old 09-24-2012, 09:38 AM   #2
r-waples
Junior Member
 
Location: Seattle

Join Date: Jun 2011
Posts: 1
Default Try pysam

I dealt with a similar issue, and the solution I came to was to use pysam (python module) to parse SAM/BAM files directly, rather than trying to make sense of mpileup files after the fact. Pysam will allow you to call samtools pileup and return the results in small chunks that you can do what you want with.

Take a look at this topic, and perhaps pysam in general. If python isn't your cup of tea, this is a general approach that other languages have implemented.

https://groups.google.com/forum/?fro...up/O35SnaMkiys

good luck.
r-waples is offline   Reply With Quote
Reply

Tags
read position, samtools mpileup

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 04:45 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO