Hello everyone, I've used this pipeline before wit...
# rnaseq
a
Hello everyone, I've used this pipeline before with different dataset, but this time I'm facing this issue (attached image) consistently, I tried all ways to fix it, like going to directory where the error is showing followed by executing the command, but still the pipeline break at same point. I'm using my institutional Cluster account (PBS). Thanks in advance!!
t
How are you running this? With containers (Singularity/Apptainer, Podman, Docker, etc.), or Conda? Are you using a profile or config file? From the error is seems you are not using any of these, that's why
samtools
cannot be found. (If you were using containers, it would be in the container.) I think you are not setting the correct configuration for your cluster in your command.
a
Thanks for reply Thomas, I am using Conda This is how I run pipeline “nextflow run nf-core/rnaseq -r 3.22.0 --input ~/Samplesheet.csv --outdir / --fasta ~/GRCh38.primary_assembly.genome.fa --gtf ~/gencode.v47.primary_assembly.annotation.gtf -profile conda,cluster -c nf_core.config -resume” My previous config, worked last time, but this time is not working “profiles { cluster { process.conda ="env_nf" process.cpus=25 process.executor="pbs" process.queue="cpu-q" process.memory=110.GB process.time=20.d process.clusterOptions=[ "" ] process.retry.maxAttempt = 2 process.resourceLimits = [ memory: 250.GB, cpus: 56, time: 30.d, accelerator: 2 ] } }” These following are new configs that I tried, but gives same error “profiles { cluster { process { conda = "env_nf" cpus = 25 executor = "pbs" queue = "cpu-q" memory = 110.GB time = 20.d clusterOptions = '' maxRetries = 2 } } }” “profiles { cluster { process { cpus = 25 executor = "pbs" queue = "cpu-q" memory = 110.GB time = 20.d clusterOptions = '' maxRetries = 2 } } }”
t
If you need to use Conda (containers are preferred, because they there tend to be fewer things that can go wrong), you should be using the environments that come with the pipeline (they should be automatically downloaded; not sure how predownloading works, I only use Singularity, but there is probably a way to do that). When you use
profile.conda = "env_nf"
, you would be overriding that and point to the
env_nf
environment, which may or may not exist and/or work. A big part of using a pipeline is that you always use the same software to make the results as reproducible as they get, which is why the pipeline provides containers and Conda environments. Running with
-profile conda
should activate the Conda mode and lead to downloading of the software.
a
Thank you, again, Thomas for your reply Kindly correct me If I'm wrong, First, “nextflow run nf-core/rnaseq -r 3.22.0 --input ~/Samplesheet.csv --outdir / --fasta ~/GRCh38.primary_assembly.genome.fa --gtf ~/gencode.v47.primary_assembly.annotation.gtf -profile conda,cluster -c nf_core.config -resume" Then the config, “profiles { cluster { process { cpus = 25 executor = "pbs" queue = "cpu-q" memory = 110.GB time = 20.d clusterOptions = '' maxRetries = 2 resourceLimits = [ memory: 250.GB, cpus: 56, time: 30.d, accelerator: 2 ] } } } Is this right, also, should I have to mention conda in the config ?
t
I would not set the
time
and
memory
in the
profile
, because that would assign every process 110 GB and 20 days, which is hugely wasteful (some processes just need 1 GB and maybe 10 minutes, that's why the pipeline has several categories with `label`s that it assigns to the various processes. In my experience for RNAseq, you should almost never need more more than 48 GB of RAM (unless you build an index with multiple genomes, but even for that 70 GB should be enough most of the time), and if a single process runs for 20 days, that's crazy. I would remove those lines and leave the management to the pipeline. (If there is a specific process that needs more of something with your particular samples, you can set that using
withName
for just that process.) The whole pipeline typically completes in <24 h, unless you have a large number of samples and a slow system. These setting won't lead directly to a crash, but but they still don't make sense. The
accelerator
directive is part of the
process
scope, not of
resourceLimits
, AFAIK, so I would assume that is being ignored (I'm also not sure what you are hoping to do with it, this normally used to request GPUs, for which which this pipeline is not set up). If you don't have any
clusterOptions
that you need to provide, you can leave this line out, but it should not do any harm. If you want, you can put all the relevant Conda-related directives into your
cluster
profile (so you don't need to use
-profile conda
), but it should work fine with
profile conda,cluster
. I don't see anything obviously wrong with your setup (hope I'm not missing anything), so ideally this should work (although I recommend fixing the things mentioned above). 🤞
a
The error is consistent, I tried many times, but there is no way to fix it, I navigated to the work directory for the failed process and inspect the
.command.sh
script and the
.command.err
file to see the exact command executed and any error messages. Starting command was, nextflow run nf-core/rnaseq -r 3.22.0 --input Samplesheet.csv --outdir / --fasta /GRCh38.primary_assembly.genome.fa --gtf gencode.v47.primary_assembly.annotation.gtf -profile conda,cluster -c new.config and, the config, profiles { cluster { process { conda.enabled=true executor="pbs" queue="cpu-q" accelerator=2 retry.maxAttempt = 2 resourceLimits = [ cpus: 32, memory: 256.GB, time: 24.h ] withLabel:process_low { cpus = { 2 * task.attempt } memory = { 14.GB * task.attempt } time = { 6.h * task.attempt } } withLabel:process_medium { cpus = { 6 * task.attempt } memory = { 42.GB * task.attempt } time = { 8.h * task.attempt } } withLabel:process_high { cpus = { 12 * task.attempt } memory = { 84.GB * task.attempt } time = { 10.h * task.attempt } } } }
t
This is some problem with Conda -- either the pipeline is not using it, or there is a problem with the environment you have installed. If you look at the
.command.run
, there should be some commands that load the Conda environment -- if not, you have to find out why the pipeline is not using it (some issue with the configuration?). If an environment does get loaded, you can see which one, and you can load it manually and run
samtools --version
. If you get a "command not found" (or similar) error, there is something wrong with the environment, and I would reinstall it. (If you get version information from
samtools
, I have no idea why it is working here, but not in the pipeline.) Any chance you can use a container engine like Apptainer/Singularity? There tend to be fewer things that can go wrong, compared to Conda.
a
Hello Thomas, I started using Singularity, instead of Conda. I've included this ( singularity { singularity.enabled = true singularity.autoMounts = true singularity.cacheDir = "/pfs/application/singularity/bin/singularity") in my config file But I got this error "Caused by: java.io.FileNotFoundException: /pfs/application/singularity/bin/singularity/.depot.galaxyproject.org-singularity-python-3.9--1.img.lock (Not a directory)"
👍 1
I think that I need to download image file for that, Can you help me with that.
t
Does the directory
/pfs/application/singularity/bin/singularity
exist? If not, create it. If it does exist, does it have the lock file mentioned in the error (use
ls -la
to look)? Ideally the container will automatically be downloaded as you run the pipeline, but you can also install the whole pipeline manually with the
nf-core
tool. But if the target directory does not exist, this would probably cause that type of error.
a
the
cacheDir
was present in
/work/singularity/
all the images were pulled on its own but I am facing this new error,
Copy code
-[nf-core/rnaseq] Pipeline completed with errors-
ERROR ~ Error executing process > 'NFCORE_RNASEQ:RNASEQ:FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS:FQ_LINT (THP1_Untreated_3_3)'

Caused by:
  Process `NFCORE_RNASEQ:RNASEQ:FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS:FQ_LINT (THP1_Untreated_3_3)` terminated with an error exit status (127)


Command executed:

  fq lint \
      --disable-validator P001 \
      THP1_Untreated-3_S3_L002_R1_001.fastq.gz THP1_Untreated-3_S3_L002_R2_001.fastq.gz > THP1_Untreated_3_3.fq_lint.txt
  
  cat <<-END_VERSIONS > versions.yml
  "NFCORE_RNASEQ:RNASEQ:FASTQ_QC_TRIM_FILTER_SETSTRANDEDNESS:FQ_LINT":
      fq: $(echo $(fq lint --version | sed 's/fq-lint //g'))
  END_VERSIONS

Command exit status:
  127

Command output:
  (empty)

Command error:
  env: 'singularity': No such file or directory

Work dir:
  /pfs/home/ashwanikumars/crisprseq/work/05/59b23febd6c4c34c0072585e7637ef

Container:
  /pfs/home/ashwanikumars/crisprseq/work/singularity/depot.galaxyproject.org-singularity-fq-0.12.0--h9ee0642_0.img
t
How do you have
singularity
installed? Do you need to load a module to use it, or something?
a
yes it is loaded as module in the HPC
I tried this in my process section
Copy code
process {
    beforeScript = """
    module load singularity/3.8.3
    """.stripIndent()
getting this error
Copy code
-[nf-core/rnaseq] Pipeline completed with errors-
WARN: Got an interrupted exception while taking agent result | java.lang.InterruptedException
WARN: Killing running tasks (2)
ERROR ~ Error executing process > 'NFCORE_RNASEQ:PREPARE_GENOME:CUSTOM_GETCHROMSIZES (GRCh38.primary_assembly.genome.fa)'

Caused by:
  Process `NFCORE_RNASEQ:PREPARE_GENOME:CUSTOM_GETCHROMSIZES (GRCh38.primary_assembly.genome.fa)` terminated with an error exit status (255)


Command executed:

  samtools faidx GRCh38.primary_assembly.genome.fa
  cut -f 1,2 GRCh38.primary_assembly.genome.fa.fai > GRCh38.primary_assembly.genome.fa.sizes
  
  cat <<-END_VERSIONS > versions.yml
  "NFCORE_RNASEQ:PREPARE_GENOME:CUSTOM_GETCHROMSIZES":
      getchromsizes: $(echo $(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*$//')
  END_VERSIONS

Command exit status:
  255

Command output:
  (empty)

Command error:
  free(): invalid pointer
  FATAL:   container creation failed: mount tmpfs->/pfs/application/singularity/var/singularity/mnt/session error: while mounting tmpfs: can't mount tmpfs filesystem to /pfs/application/singularity/var/singularity/mnt/session: write unix @->@: write: broken pipe

Work dir:
  /pfs/home/ashwanikumars/crisprseq/work/b6/4102c4d06938ae11fb814a22a72856

Container:
  /pfs/home/ashwanikumars/crisprseq/work/singularity/depot.galaxyproject.org-singularity-samtools-1.21--h50ea8bc_0.img

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named `.command.sh`

 -- Check '.nextflow.log' file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details
ERROR ~ Cannot invoke "java.nio.file.Path.getFileSystem()" because "path" is null

 -- Check script '/pfs/home/ashwanikumars/.nextflow/assets/nf-core/rnaseq/subworkflows/nf-core/utils_nfcore_pipeline/main.nf' at line: 82 or see '.nextflow.log' file for more details
WARN: Failed to render execution report -- see the log file for details
WARN: Failed to render execution timeline -- see the log file for details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: https://nf-co.re/docs/usage/troubleshooting

 -- Check '.nextflow.log' file for details