Header Leaderboard Ad

Collapse

Aligned position within a read from Samtools mpileup

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    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.



    good luck.

    Comment

    Latest Articles

    Collapse

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Yesterday, 10:20 AM
    0 responses
    9 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-07-2023, 07:14 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-06-2023, 01:08 PM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-01-2023, 08:56 PM
    0 responses
    166 views
    0 likes
    Last Post seqadmin  
    Working...
    X