Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • maubp
    replied
    You should be able to get the full length of the references from the BAM header (I'm sure there is an API for that), and then you don't have to guess.

    Leave a comment:


  • malavv
    started a topic Samtools seek like effect.

    Samtools seek like effect.

    Hi,
    I am currently implementing a module in c++ using samtools's c library and I seem to encounter many problems in trying to implement a Seek like effect for the bamfile. I have browse through everything I though would help within samtools without success.

    I am using bam_plp_next and bam_plp_next to do a continuous read of the bamfile but I want to be able to say : Seek(int chrmTid); or something like that and then continue reading from the first available position of this chromosome.

    Every function that access the index file is of the form
    Code:
    bam_iter_t bam_iter_query(const bam_index_t *idx, int tid, int beg, int end);
    where beg and end are positions in this chromosome.

    My question is : Is there a way that I can achieve the described functionality while only providing a tid and a beginning position?

    What I use currently is the above mentionned function which I provide with 0 as beg position and arbitrairy 15000 as end.

Latest Articles

Collapse

  • seqadmin
    Exploring the Dynamics of the Tumor Microenvironment
    by seqadmin




    The complexity of cancer is clearly demonstrated in the diverse ecosystem of the tumor microenvironment (TME). The TME is made up of numerous cell types and its development begins with the changes that happen during oncogenesis. “Genomic mutations, copy number changes, epigenetic alterations, and alternative gene expression occur to varying degrees within the affected tumor cells,” explained Andrea O’Hara, Ph.D., Strategic Technical Specialist at Azenta. “As...
    07-08-2024, 03:19 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, Yesterday, 06:46 AM
0 responses
9 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-24-2024, 11:09 AM
0 responses
24 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-19-2024, 07:20 AM
0 responses
159 views
0 likes
Last Post seqadmin  
Started by seqadmin, 07-16-2024, 05:49 AM
0 responses
127 views
0 likes
Last Post seqadmin  
Working...
X