zaeleus / noodles

Bioinformatics I/O libraries in Rust
MIT License
477 stars 53 forks source link

Add Async GFF Reader and/or expose lazy record from string? #262

Closed tshauck closed 3 months ago

tshauck commented 3 months ago

Hi,

I wanted to ask about either adding an async GFF reader and/or making it possible to create a lazy gff record from a string.

I'd like to use the lazy GFF record with an async data source, but am having trouble because read_lazy_record seems to be the only way to create a lazy record, but because there's no async GFF reader it can't be used in my situation (S3 files). Right now, I'm just reading lines through a regular async reader then parsing via noodles::gff::Line::from_str.

Would you be open to having noodles do either of these things? I'd be happy to implement, but wanted to ask before I did the work.

Happy to provide more details if helpful, thanks!

zaeleus commented 3 months ago

I do have a basic async GFF reader implemented on a local branch. I'll merge that and get it to parity. Thanks for asking!

zaeleus commented 3 months ago

An async GFF reader is now available in noodles 0.73.0/noodles-gff 0.32.0.