Michael Karounos
11/10/2025, 9:15 PM#!/bin/bash
#BSUB -J rnaseq
#BSUB -q standard
#BSUB -o /share/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/logs/%J.out
#BSUB -e /share/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/logs/%J.err
#BSUB -n 8
#BSUB -M 8000
#BSUB -W 12:00
module load apptainer
export NXF_EXECUTOR=lsf
export NXF_OFFLINE=true
export NXF_SINGULARITY_CACHEDIR="/share/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/singularity-images"
export PIPELINE_DIR="/share/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0"
cd "$PIPELINE_DIR"
nextflow -log "logs/run.${LSB_JOBID:-$$}.log" run "$PIPELINE_DIR" \
-profile singularity --input samplesheet.csv \
--fasta /gpfs_common/share02/ajbvb/mgkaroun/scratch/refs/finny/CP170741.fasta \
--gtf /gpfs_common/share02/ajbvb/mgkaroun/scratch/refs/finny/CP170741.gtf \
--outdir results --skip_bbsplit true -resume
I have 62 cached tasks and 1 failed, a STAR_ALIGN. The weird thing is it isn't really failing, it's just exiting out of the pipeline early (waits ~7 mins) while the STAR_ALIGN is still pending. Then the task finishes after the pipeline exits. Each time I resume the pipeline it attempts to rerun this task anew, with a new hash work directory despite the previous tmp directory already having the completed output, including .exitcode = 0.
I have this STAR_ALIGN complete in two directories: rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/work/f2/d4973e6ba53602411642f983ca2ac8
and
rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/work/37/b3930888693a3a8649a1cd844bfb2b
Is there a simple way to point the pipeline to this? or any help is appreciated - i may be approaching this completely wrong way... I think I may need to alter the config more, i.e. executer = lsf, etc which I've been avoiding.Jonathan Manning
11/11/2025, 8:58 AMexecutor ). The way you do that will depend on cluster configuration, if your nodes are submission hosts, you can do as you're doing, supplying custom config to the nexflow command (e.g. via -c) to set up the executor, and your Nextflow job will send the child jobs out to other nodes. Some clusters don't allow nodes to submit jobs, in which case you'd have to run the nextflow 'head job' from a login node (rather than as a job itself).
One note of caution: a number of folks have had difficulties running bacterial data due to formats of annotation files etc, and nobody has fixed that up yet.Michael Karounos
11/11/2025, 3:29 PMMichael Karounos
11/11/2025, 10:15 PMThomas Danhorn
11/12/2025, 5:26 PMMichael Karounos
11/12/2025, 5:49 PMProcess NFCORE_RNASEQ:RNASEQ:QUANTIFY_STAR_SALMON:SALMON_QUANT (R_FNY_030D-R2) terminated for an unknown reason -- Likely it has been terminated by the external systemThomas Danhorn
11/12/2025, 6:25 PM.command.log should have the output of the LSF scheduler (together with the program output), and for LSF that shows (if I remember correctly) the resources requested and used. Maybe that helps in figuring out what is going on ...Michael Karounos
11/12/2025, 7:11 PM-[nf-core/rnaseq] Pipeline completed successfully with skipped sampl(es)-
-[nf-core/rnaseq] Please check MultiQC report: 6/6 samples skipped since they failed STAR 5% mapped threshold.-
that my problem is in host contamination, so I shouldn't --skip_bbsplit
I'm stoked that it's not completely jammed though!Thomas Danhorn
11/12/2025, 7:19 PMMichael Karounos
11/18/2025, 9:33 PMThomas Danhorn
11/18/2025, 10:15 PMMichael Karounos
11/19/2025, 5:59 PMThomas Danhorn
11/19/2025, 6:04 PMgene_id and transcript_id. If you are in luck, you may be able to find a GTF in Ensembl for your strain, which should have the correct format.Michael Karounos
12/04/2025, 9:09 PMThomas Danhorn
12/05/2025, 6:22 PM--skip_dupradar parameter.
• Allow it to fail without taking down the pipeline, i.e. you get the results for the samples where it works, but not where it fails. You do that like this:
process {
withName: "DUPRADAR" {
errorStrategy = 'ignore'
}
}
(Hope I didn't mistype anything.) The reason this works is that nothing depends on DupRadar, so the pipeline can continue after an error.
I think DupRadar results are instructive, but you may not want to wait for days for it to complete. In that case something like this would be my recommendation.
I don't think you can point the pipeline to a complete process and make it use it as cache (unfortunately). You might be able to build on the results manually, but not with the pipeline.
NXF_CHDIR is not a valid Nextflow environment variable, AFAIK, is this a typo?
Why is this process crashing? Do the .nextflow.{err,out,log} files show any informative messages? What's the exit code?
My guess is that it might have something to do with resources. I'm not sure how well LSF enforces constraints, so it could be that the process was able to use more (e.g. memory) in the past run, but not since then. If you set the resource allocation to what it needs, it should work (if that's the issue).Michael Karounos
12/05/2025, 7:25 PMSender: LSF System lsfadmin@c016n02
Subject: Job 590126: nf-NFCORE_RNASEQ_RNASEQ_QUALIMAP_RNASEQ_(R_FNY_030D_R2) in cluster Hazel Exited
Job nf-NFCORE_RNASEQ_RNASEQ_QUALIMAP_RNASEQ_(R_FNY_030D_R2) was submitted from host c015n04 by user mgkaroun in cluster Hazel at Tue Dec 2 15:45:47 2025
Job was executed on host(s) 6*c016n02, in queue single_chassis, as user mgkaroun in cluster Hazel at Tue Dec 2 15:45:48 2025
/home/mgkaroun was used as the home directory.
/gpfs_common/share02/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/work/5c/c3e9d15c17605fb01409a857f834f2 was used as the working directory.
Started at Tue Dec 2 15:45:48 2025
Terminated at Tue Dec 2 23:46:05 2025
Results reported at Tue Dec 2 23:46:05 2025
Your job looked like:
------------------------------------------------------------
# LSBATCH: User input
#!/bin/bash
#BSUB -o /gpfs_common/share02/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/work/5c/c3e9d15c17605fb01409a857f834f2/.comm>
#BSUB -n 6
#BSUB -R "span[hosts=1]"
#BSUB -W 08:00
#BSUB -M 6
#BSUB -R "select[mem>=36] rusage[mem=36]"
#BSUB -J nf-NFCORE_RNASEQ_RNASEQ_QUALIMAP_RNASEQ_(R_FNY_030D_R2)
NXF_CHDIR=/gpfs_common/share02/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/3_21_0/work/5c/c3e9d15c17605fb01409a857f834f2
### ---
### name: 'NFCORE_RNASEQ:RNASEQ:QUALIMAP_RNASEQ (R_FNY_030D_R2)'
### container: '/share/ajbvb/mgkaroun/rnaseq_run/nf-core-rnaseq_3.21.0/singularity-images/depot.galaxyproject.org-singularity-qua>
### outputs:
### - 'R_FNY_030D_R2'
### - 'versions.yml'
### ...
set -e
set -u
NXF_DEBUG=${NXF_DEBUG:=0}; [[ $NXF_DEBUG > 1 ]] && set -x
NXF_ENTRY=${1:-nxf_main}
nxf_tree() {
local pid=$1
I see the LSF is calling it with #BSUB -n 6 #BSUB -R "span[hosts=1]" #BSUB -W 08:00 #BSUB -M 6
Probably not enough resources/time?Thomas Danhorn
12/05/2025, 11:33 PMNXF_CHDIR is just an internal variable of that script, not something you can set (unlike e.g. NXF_WORK).
Yes, exit code 140 is (typically) "wall time exceeded", not sure about 130 (SIGINT -- you didn't kill something manually by accident, did you?). The only other resource leading to a kill if lacking would be memory (RAM), which typically is 137.
So I would focus on fixing the time problem. Does your config allow retries? If so, that exit code should trigger that and multiply time, memory, and CPUs each time. (There is no guarantee that would be enough, though, and it depends on the number of retries.) Either way, you can make a config for the specific process (use withName, like above) with time = 24.h (or whatever you can/want to give it).