Marcos Garcia Lacarte
05/02/2025, 4:17 PMnextflow run . --input samplesheet.csv --oudir test_results --genome GRCh38 --profile singularity -c config.config
In the config.config file, I specify that I want it to run with SLURM and provide the necessary configuration. (My institution does not have a .config file)
process {
executor = 'slurm'
queue = 'short'
cpus = 2
memory = '10.GB'
time = '4h'
resourceLimits = [
cpus: 32,
memory: '100.GB',
time: '24h'
]
withLabel:process_high {
cpus = 8
memory = '32.GB'
time = '12h'
}
}
executor.perCpuMemAllocation = true
However, when I run it this way, the process works within the session but prevents me from continuing to work or disconnecting. What I want to do is create an sbatch script and submit the job to SLURM.
Unfortunately, when I run this sbatch, it doesn't work, and the job ends after about 30 seconds.
#!/bin/bash
#SBATCH -J RNASEQ
#SBATCH -o output.rnaseq.out
#SBATCH -e error.rnaseq.err
#SBATCH -c 2
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --mem=10000M
# Load Nextflow
module load Nextflow/24.04.2
# Run analysis
nextflow run . --input samplesheet.csv --oudir test_results --genome GRCh38 --profile singularity -c config.config
Is there any configuration I need to consider before submitting the sbatch to SLURM?
Thank you very much!James Fellows Yates
05/02/2025, 4:59 PMmodule load singularity` on the compute node?
But otherwise it's hard to say what could be causing it without seening the error messagepontus
05/02/2025, 5:51 PMtmux (or screen). Nextflow can also be run in the background if that makes more sense.Marcos Garcia Lacarte
05/06/2025, 8:58 AMmodule load the Singularity module on that HPC (and I didn't do it when running in Bash either — I only do it with Nextflow).
The error says:
N E X T F L O W ~ version 24.04.2
ERROR ~ Unable to parse config file: '/gpfs3/well/church/users/usj491/nf-core-rnaseq/3_18_0/nextflow.config'
Cannot read config file include: <https://raw.githubusercontent.com/nf-core/configs/master/nfcore_custom.config>
But since I'm using exactly the same command that works in Bash:
nextflow run . --input samplesheet.csv --oudir test_results --genome GRCh38 --profile singularity -c config.config
…the problem must be in how SLURM is handling my configuration, right?
TA!pontus
05/06/2025, 9:01 AMMarcos Garcia Lacarte
05/06/2025, 9:37 AMtxum and forget SLURM?James Fellows Yates
05/06/2025, 9:43 AMMarcos Garcia Lacarte
05/06/2025, 9:50 AM