mag icon indicating copy to clipboard operation
mag copied to clipboard

Help running in offline cluster

Open telatin opened this issue 4 years ago • 3 comments

I need to run mag in offline mode and I tried with:

nextflow run $NF/nextflow/nf-core-mag-1.0.0/workflow/main.nf \
  --reads '$INPUT/reads/*_R{1,2}.fq.gz' \
  --busco_reference $DB/bacteria_odb9.tar.gz \
  --outdir out \
  --cat_db $DB/CAT_prepare_20190108.tar.gz \
  --kraken2_db $DB/minikraken2_v2_8GB_201904_UPDATE.tgz \
  --centrifuge_db $DB/p_compressed+h+v.tar.gz \
  -profile singularity

But I got an error from the KronaDB updater:

Caused by:
  Process `krona_db` terminated with an error exit status (1)

Command executed:
  ktUpdateTaxonomy.sh taxonomy

Command exit status:
  1

Command output:
  Creating taxonomy...
  
  Fetching taxdump.tar.gz...
  
  Update failed.
     Is your internet connection okay?

Command error:
  /opt/conda/envs/nf-core-mag-1.0.0/bin/ktUpdateTaxonomy.sh: line 163: [: ==: unary operator expected

Work dir:
  /qib/platforms/Informatics/GMH/nextflow/work/86/ca13b3e7b7dcc86ba54cb03e2f0d1b

I'd like to skip the ktUpdateTaxonomy.sh without skipping Krona plots, how can I do the step in advance (if required) and then run the workflow from the cluster? Thanks

telatin avatar Mar 10 '20 06:03 telatin

At the moment you can't run krona in offline mode, that's an oversight on our part. I'll put this on the 1.1.0 release that should be out soon.

Thanks for bringing this up!

HadrienG avatar Mar 10 '20 20:03 HadrienG

Ok thanks! I made a small change in the code to provide a taxonomy file in the meanwhile.

telatin avatar Mar 10 '20 20:03 telatin

@HadrienG any progress here?

d4straub avatar Jul 14 '20 11:07 d4straub