Feature request: read from url
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
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.
As I got stuck doing something similar, this can help: https://github.com/rust-bio/rust-htslib/issues/404