Replies: 2 comments 1 reply
-
And here's my [package]
name = "lazy-amplicon-tk"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
color-eyre = "0.6.3"
tokio = { version = "1.0", features = ["full"] }
tokio-stream = { version = "0.1", features = ["io-util"] }
tracing = "0.1.26"
futures = "0.3"
sccache = "0.8.1"
tracing-subscriber = "0.2.19"
noodles = { version = "0.77.0", features = ["fastq", "async"] }
async-compression = { version = "0.4.11", features = ["all"] } |
Beta Was this translation helpful? Give feedback.
0 replies
-
The encoder's finalizer is run on shutdown, not flush, i.e., - final_contents.flush().await?;
+ final_contents.shutdown().await?; Typically, when working with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm relatively new to async Rust, but I noticed noodles has async readers and writers and figured I'd give them a shot for one of my projects. I'd like to asynchronously read compressed FASTQ records, mutate them, and write them to a compressed output. So far, I have everything working in a proof-of-concept except for the compression part.
Here's the code that works but does not compress:
When I slot in the encoder in the writing block of code as below (everything else is the same as above), I get a corrupted
.fastq.gz
file:I'll attach the test fastq I'm using along with my project manifest in a comment in case anyone would like to test the code themselves.
Is this something anyone here has experience doing? Perhaps flush is acting on the encoder without acting on the underlying bufwriter? Any advice or suggestions would be much appreciated! And thanks for the excellent crate!
--Nick
Beta Was this translation helpful? Give feedback.
All reactions