> Hi all! A question about `kraken2/kraken2`: t...
# modules
p
Hi all! A question about `kraken2/kraken2`: the module always passes
--gzip-compressed
, so plain or bzip2 FASTQ/FASTA input fails. Without the flag, Kraken2 detects gzip and bzip2 by itself (it has done so since 2.0.7-beta), and its check should also work on the symlinks Nextflow stages. The flag has been in the module since it was first added in 2021 (#266). Does anyone know if it’s there for a reason, or would it be OK to drop it? cc @Jose Espinosa-Carrasco @hpatel (module maintainers). Context: github.com/nf-core/modules/pull/13957
j
It is an nf-core policy to keep input and output files compressed whenever possible, where applicable and reasonable. nf-co.re/docs/…/general#… If you want you can, try and do a similar solution as we have in other modules to make it autodetect instead. github.com/search?q=repo%3Anf-core%2Fmod…&type=code
p
I looked at the
is_compressed
modules: they unzip because their tools can’t read gzip. Kraken2 can, and it already detects plain, gzip and bzip2 from the file content (also through Nextflow’s symlinks), so I’ll just drop the forced flag and let it autodetect. Compressed input keeps working and the outputs stay gzipped.
s
Make a PR to modules to remove it