Hi All, I'm running bacass for the first time. Th...
# bacass
d
Hi All, I'm running bacass for the first time. The assembly and annotation itself seems to work well, but the pipeline appears to be hanging on the kraken2 step without throwing any obvious errors. Here is what I see in the .nextflow.log:
Copy code
Jan-30 13:51:40.147 [Task monitor] DEBUG n.processor.TaskPollingMonitor - No more task to compute -- The following nodes are still active:
[process] NFCORE_BACASS:BACASS:KRAKEN2_DB_PREPARATION
  status=ACTIVE
  port 0: (value) bound ; channel: db
  port 1: (cntrl) -     ; channel: $

[process] NFCORE_BACASS:BACASS:KRAKEN2
  status=ACTIVE
  port 0: (queue) OPEN  ; channel: -
  port 1: (value) OPEN  ; channel: db
  port 2: (cntrl) -     ; channel: $

[process] NFCORE_BACASS:BACASS:GET_SOFTWARE_VERSIONS
  status=ACTIVE
  port 0: (value) OPEN  ; channel: versions
  port 1: (cntrl) -     ; channel: $

[process] NFCORE_BACASS:BACASS:MULTIQC
  status=ACTIVE
  port 0: (value) OPEN  ; channel: multiqc_files
  port 1: (cntrl) -     ; channel: $
Here is the command that I'm running:
Copy code
#!/usr/bin/env bash

#SBATCH --job-name=nfcore_asm
#SBATCH --output=nfcore_bacass_kim0123
#SBATCH --time=48:00:00
#SBATCH -p long-40core

# get a decent java version
module load openjdk
# write singularity images to scratch

export NXF_SINGULARITY_CACHEDIR=/gpfs/scratch/decarlson/singularity/nfcore

# pull the latest version of Nextflow

#curl -s https://get.nextflow.io | bash

#PATH TO SAMPLE SHEET
SAMPLES=kim_rickettsia_sbu1_samples.csv
# Project name
PROJECT=kim_rickett_01_23
# output dir for project
OUTDIR=`pwd`/output/${PROJECT}

./nextflow run \
nf-core/bacass \
--input kim_rickettsia_sbu1_samples.csv \
-profile singularity \
--kraken2db "https://genome-idx.s3.amazonaws.com/kraken/k2_standard_8gb_20210517.tar.gz" \
--outdir ${OUTDIR} \
-resume
I'm also attaching the full version of the .nextflow.log file. Anyone have ideas on what's going wrong?
d
Hi there, maybe you had trouble with the container for KRAKEN2_DB_PREPARATION, which is
Jan-30 13:31:40.411 [Actor Thread 38] INFO  nextflow.container.SingularityCache - Pulling Singularity image https://containers.biocontainers.pro/s3/SingImgsRepo/biocontainers/v1.2.0_cv1/biocontainers_v1.2.0_cv1.img [cache /gpfs/scratch/decarlson/singularity/nfcore/containers.biocontainers.pro-s3-SingImgsRepo-biocontainers-v1.2.0_cv1-biocontainers_v1.2.0_cv1.img.img]
Could you try to resume? check whether you got the container and the database downloaded properly?
d
Thanks for your response. I tried resuming and also rerunning the pipeline from scratch. In neither case did the KRAKEN2_DB_PREPARATION image get successfully pulled (note that there was a lock file for the container image generated each time but not the container itself). I ended up manually downloading the image, giving it the name that the pipeline expects (
/gpfs/scratch/decarlson/singularity/nfcore/containers.biocontainers.pro-s3-SingImgsRepo-biocontainers-v1.2.0_cv1-biocontainers_v1.2.0_cv1.img.img
). Ater rerunning the pipeline, it appears that this has allowed the KRAKEN2_DB_PREPARATION process to run to completion. I'm still running the rest of the pipeline and will confirm once it has finished.
d
Glad to hear it works now (almost) as intended!
d
Thanks. Using the manually downloaded KRAKEN2_DB_PREPARATION container, the pipeline did complete successfully. Thanks for pointing me in the right direction.
🎉 1