Comments (7)
Hrmpf, this looks like a weird bug. unfortunately one that we didn't catch in the CI tests, as we don't test kraken on the CI. I need to merge in the latest template #34 anyways these days, so that might be something to get in the next fix release too & re-add this to CI to get it tested with a tiny kraken2 database similar to the one used by ViralRecon.
Thanks for reporting !
from bacass.
No problem! Is there a way to bypass this in the meantime? Thanks!
from bacass.
--skip_kraken2
to skip it entirely. I'm afraid not really without skipping kraken entirely for now. I'll try to do it asap but pre-christmas thats sometimes a bit hard 😓
Could be that its enough to follow the viralrecon example is most straightforward:
/*
* PREPROCESSING: Uncompress Kraken2 database
*/
if (!params.skip_kraken2 && params.kraken2_db && !params.skip_assembly) {
file(params.kraken2_db, checkIfExists: true)
if (params.kraken2_db.endsWith('.tar.gz')) {
process UNTAR_KRAKEN2_DB {
label 'error_retry'
if (params.save_reference) {
publishDir "${params.outdir}/genome", mode: params.publish_dir_mode
}
input:
path db from params.kraken2_db
output:
path "$untar" into ch_kraken2_db
script:
untar = db.toString() - '.tar.gz'
"""
tar -xvf $db
"""
}
} else {
ch_kraken2_db = file(params.kraken2_db)
}
}
and then do this in the kraken2 / kraken2-long process:
input:
path db from ch_kraken2_db
and in the script section:
kraken2 \\
--db $db \\
Not sure we will support direct input of gzipped kraken2 dbs, but that could be helpful as they are now available from AWS S3 buckets by the authors, so could be a nice addition.
from bacass.
Fairly easy change - wanna give it a go and I review?
That would then fix dev
and give us the possibility to get things fixed on dev
for you to test ;-)
from bacass.
Let me have a go
from bacass.
should I add the --save_reference
option? or should we always skip it?
from bacass.
Not required I think in this case...
from bacass.
Related Issues (20)
- New module - dragonflye - for long-read assembly
- Update bakta to v1.8.2
- Allow dragonflye to polish draft genome with short-reads
- Improvements in forked repository: KmerFinder, Estimation of Reference Genome, Custom Quast, and Custom MultiQC Reports HOT 3
- URGENT: pin nf-validation version HOT 2
- Add flye to nf-core/bacass HOT 12
- Assembly Polishing is not working in the V2.0 HOT 3
- samplesheet should have a suffix .tsv if it is a tab-separated file as described HOT 8
- sample sheet check reports wrong row item HOT 1
- Add homopolish for nanopore-only assembly HOT 2
- Check for spaces in IDs in Sample Sheet HOT 1
- Nanoplot expect png output in hybrid assembly mode
- Regex problem HOT 4
- skewer.nf problem with Docker container. HOT 3
- Single end Illumina processing? HOT 1
- Working on updating the nf-core/tools template v2.9 HOT 2
- nf-validation on sample sheet HOT 3
- Released nf-core v2.10 template
- Enhance MultiQC to collect stats from all supported modules
- Removal of Prokka in favor of Bakta HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bacass.