modkit icon indicating copy to clipboard operation
modkit copied to clipboard

Feature request: read from url

Open wdecoster opened this issue 1 year ago • 2 comments

Hi,

Would you like to add the option to read an alignment bam/cram file from ftp/https/s3? I could open a PR, but I wanted to check first. Additionally, I wonder why you still consider cram to be unstable and advice against it. Setting the CRAM_OPT_REQUIRED_FIELDS could greatly speed up parsing cram files, depending on which fields you need to decode (see for example https://brentp.github.io/post/cram-speed/).

Wouter

wdecoster avatar Jan 31 '24 08:01 wdecoster

Hello @wdecoster,

Yes this is something we can add. I'll try and get it into the next release. Happy to review a PR but no worries if you're busy.

ArtRand avatar Jan 31 '24 15:01 ArtRand

As I got stuck doing something similar, this can help: https://github.com/rust-bio/rust-htslib/issues/404

wdecoster avatar Jan 31 '24 15:01 wdecoster