Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
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.
-
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);
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
-
by seqadmin
In recent years, precision medicine has become a major focus for researchers and healthcare professionals. This approach offers personalized treatment and wellness plans by utilizing insights from each person's unique biology and lifestyle to deliver more effective care. Its advancement relies on innovative technologies that enable a deeper understanding of individual variability. In a joint documentary with our colleagues at Biocompare, we examined the foundational principles of precision...-
Channel: Articles
01-27-2025, 07:46 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 02-05-2025, 10:34 AM
|
0 responses
16 views
0 likes
|
Last Post
by seqadmin
02-05-2025, 10:34 AM
|
||
Started by seqadmin, 02-03-2025, 09:07 AM
|
0 responses
19 views
0 likes
|
Last Post
by seqadmin
02-03-2025, 09:07 AM
|
||
Started by seqadmin, 01-31-2025, 08:31 AM
|
0 responses
33 views
0 likes
|
Last Post
by seqadmin
01-31-2025, 08:31 AM
|
||
Started by seqadmin, 01-24-2025, 07:35 AM
|
0 responses
81 views
0 likes
|
Last Post
by seqadmin
01-24-2025, 07:35 AM
|
Leave a comment: