Header Leaderboard Ad

Collapse

Aligned position within a read from Samtools mpileup

Collapse

Announcement

Collapse
No announcement yet.
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, 05-26-2023, 09:22 AM
    0 responses
    8 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-24-2023, 09:49 AM
    0 responses
    9 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-23-2023, 07:14 AM
    0 responses
    29 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-18-2023, 11:36 AM
    0 responses
    113 views
    0 likes
    Last Post seqadmin  
    Working...
    X