Bioconductor / Rsamtools

Binary alignment (BAM), FASTA, variant call (BCF), and tabix file import
https://bioconductor.org/packages/Rsamtools
Other
27 stars 27 forks source link

Support for more recent HTSlib #41

Closed matthdsm closed 2 years ago

matthdsm commented 2 years ago

Hi,

Are there plans to drop the "included" RHTSlib and depend on the bioconductor package itself? This would enable us the use more modern interfaces (csi, cram, ...).

If not, could you give some pointers where best to start to implement this? Our ultimate goals would be to enable cram compatibility for downstream tools.

Thanks.

PeteHaitch commented 2 years ago

It looks like some work has been made on that front (see https://github.com/Bioconductor/Rsamtools/tree/htslib-1.15.1) but I'm not sure of the planned next steps.

matthdsm commented 2 years ago

AFAIK that branch was merged into master and released, but the docs at bioconductor don't seem to reflect that

PeteHaitch commented 2 years ago

Oh you're right, my bad! I'd misunderstood your query, hopefully @hpages will soon reply.

mtmorgan commented 2 years ago

Rhtslib provides the C source code library to htslib. Rsamtools provides the interface between R and htslib. Rsamtools uses the current Rhtslib, but does not implement CRAM and other features -- the code in Rsamtools needs to be updated for that.

There is a branch 'cram' that partially implements cram support; I have rebased it to master. The only guarantee, unfortunately, is that it compiles. We will try to work on this, and any help would be appreciated.

hpages commented 2 years ago

I'm not sure I understand the original query either. Rsamtools has never "included" Rhtslib.

Here is the timeline:

AFAIK that branch was merged into master and released, but the docs at bioconductor don't seem to reflect that

@matthdsm Can you be more specific about where the doc needs to be updated?

Thanks, H.

matthdsm commented 2 years ago

Hi,

I'm very sorry, but I'm not really sure anymore 🤔. A cursory search shows the latest version of Rsamtools does indeed use Rhtslib, so I think this issue is moot. If I ever come back to this and encounter any issues, I'll open a new issue.

Thanks anyway for the reply! Matthias