Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IO] BAM index support #2985

Open
jay-tux opened this issue May 21, 2022 · 6 comments
Open

[IO] BAM index support #2985

jay-tux opened this issue May 21, 2022 · 6 comments
Labels
feature/proposal a new feature or an idea of

Comments

@jay-tux
Copy link

jay-tux commented May 21, 2022

Platform

  • SeqAn version: 3.0
  • Operating system: Linux kaya 5.17.9-arch1-1 #1 SMP PREEMPT Wed, 18 May 2022 17:30:11 +0000 x86_64 GNU/Linux
  • Compiler: gcc (GCC) 12.1.0

Question

Is there a way to use *.bam.bai files to use as an index? The documentation on your site covers generating arbitrary indexes, but can it also be used to (auto-)load the companion index file when loading the BAM file? I currently use seqan3::sam_file_input in{file}; to load the input file.

Thank you!

@jay-tux jay-tux added the question a user question how to do certain things label May 21, 2022
@smehringer
Copy link
Member

Hi @jay-tux,

unfortunately we do not support BAM indexing yet in seqan3. I can't give a good time estimate on when we will be able to implement this feature. I know of a external draft bai support though. I'll ask the authors and come back to you.

@jay-tux
Copy link
Author

jay-tux commented May 21, 2022

Alright! Thank you!

If it's not implemented yet, no worries. I think I can do without.

@tsnorri
Copy link
Contributor

tsnorri commented Aug 18, 2022

Hi @smehringer,
I also have a use case in which BAM indexing would help. (In the end, I would like to be able to do pileup like in pysam.) If there is an implementation available, I would be interested.

@smehringer
Copy link
Member

I'm very sorry for the late reply!

@Irallia Could you point them to the bam index library of Josh you are using in IgenVar?

@smehringer smehringer added the feature/proposal a new feature or an idea of label Oct 20, 2022
@eseiler
Copy link
Member

eseiler commented Oct 20, 2022

@Irallia Could you point them to the bam index library of Josh you are using in IgenVar?

https://github.com/joshuak94/BAMIntervalTree

@eseiler eseiler removed the question a user question how to do certain things label Oct 20, 2022
@eseiler eseiler changed the title BAM index support [IO] BAM index support Oct 20, 2022
@behrj
Copy link

behrj commented Dec 7, 2022

This is just to cast my vote for this feature. I switched back to htslib for all the bamIO and I guess you know that no one ever really wants to do that...
Thanks for the link above. Will have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/proposal a new feature or an idea of
Projects
None yet
Development

No branches or pull requests

5 participants