Hello, I've been using rnaseq pipeline for the pas...
# rnaseq
y
Hello, I've been using rnaseq pipeline for the past year and it works fine. However, when I ran the pipeline recently, I keep getting some temporary errors which could be fixed by rerunning the pipeline. Examples are:
Copy code
ERROR nextflow.processor.TaskProcessor - Error executing process > 'NFCORE_RNASEQ:PREPARE_GENOME:MAKE_TRANSCRIPTS_FASTA (rsem/GRCh38_no_alt_
analysis_set_GCA_000001405.15.fasta)'

Caused by:
  Process `NFCORE_RNASEQ:PREPARE_GENOME:MAKE_TRANSCRIPTS_FASTA (rsem/GRCh38_no_alt_analysis_set_GCA_000001405.15.fasta)` terminated with an error exit status (255)


Command executed:

  rsem-prepare-reference \
      --gtf GRCh38_no_alt_analysis_set_GCA_000001405.15.filtered.gtf \
      --num-threads 12 \
       \
      rsem/GRCh38_no_alt_analysis_set_GCA_000001405.15.fasta \
      rsem/genome
  
  cp rsem/genome.transcripts.fa .
  
  cat <-END_VERSIONS  versions.yml
  "NFCORE_RNASEQ:PREPARE_GENOME:MAKE_TRANSCRIPTS_FASTA":
      rsem: $(rsem-calculate-expression --version | sed -e "s/Current version: RSEM v//g")
      star: $(STAR --version | sed -e "s/STAR_//g")
  END_VERSIONS

Command exit status:
  255

Command output:
  rsem-extract-reference-transcripts rsem/genome 0 GRCh38_no_alt_analysis_set_GCA_000001405.15.filtered.gtf None 0 rsem/GRCh38_no_alt_analysis_set_GCA_000001405.15.fasta
  ...
  Parsed 2400000 lines
  Parsing gtf File is done!
  rsem/GRCh38_no_alt_analysis_set_GCA_000001405.15.fasta is processed!
  199169 transcripts are extracted.
  Extracting sequences is done!
  Group File is generated!
  Transcript Information File is generated!
  Chromosome List File is generated!
  Extracted Sequences File is generated!
  
  rsem-preref rsem/genome.transcripts.fa 1 rsem/genome
  rsem-preref : No such file or directory!
  Please check if you have compiled the associated codes by typing related "make" commands and/or made related executables ready to use.
Another one is:
Copy code
Caused by:
  Process `NFCORE_RNASEQ:RNASEQ:QUANTIFY_RSEM:RSEM_CALCULATEEXPRESSION (sample2966)` terminated with an error exit status (255)


Command executed:

  INDEX=`find -L ./ -name "*.grp" | sed 's/\.grp$//'`
  rsem-calculate-expression \
      --num-threads 12 \
      --temporary-folder ./tmp/ \
      --strandedness reverse \
      --paired-end \
      --star --star-output-genome-bam --star-gzipped-read-file --estimate-rspd --seed 1 \
      sample2966_trimmed_1_val_1.fq.gz sample2966_trimmed_2_val_2.fq.gz \
      $INDEX \
      sample2966
  
  cat <-END_VERSIONS  versions.yml
  "NFCORE_RNASEQ:RNASEQ:QUANTIFY_RSEM:RSEM_CALCULATEEXPRESSION":
      rsem: $(rsem-calculate-expression --version | sed -e "s/Current version: RSEM v//g")
      star: $(STAR --version | sed -e "s/STAR_//g")
  END_VERSIONS

Command exit status:
  255
Command output:
....
  465000000 alignment lines are loaded!
  466000000 alignment lines are loaded!
  Bam output file is generated!
  Time Used for EM.cpp : 1 h 49 m 25 s
  
  rm -rf ./tmp/
  rm : No such file or directory!
  Please check if you have compiled the associated codes by typing related "make" commands and/or made related executables ready to use.
The weirdest one:
Copy code
Caused by:
  Process `NFCORE_RNASEQ:RNASEQ:BAM_MARKDUPLICATES_PICARD:SAMTOOLS_INDEX (sample2867)` terminated with an error exit status (127)


Command executed:

  samtools \
      index \
      -@ 1 \
       \
      sample2867.markdup.sorted.bam
  
  cat <-END_VERSIONS  versions.yml
  "NFCORE_RNASEQ:RNASEQ:BAM_MARKDUPLICATES_PICARD:SAMTOOLS_INDEX":
      samtools: $(echo $(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*$//')
  END_VERSIONS

Command exit status:
  127

Command output:
  (empty)

Command error:
  INFO:    Mounting image with FUSE.
  /cluster/tools/software/rocky9/singularity/4.3.2/libexec/singularity/bin/squashfuse_ll: error while loading shared libraries: libfuse3.so.3: cannot open shared object file: No such file or directory
  WARNING: squashfuse mount failed, falling back to extraction: encountered error while trying to mount image "/cluster/projects/hoffmangroup/yahanz/nf-core/shared/singularity_cache/samtools-1.21--h50ea8bc_0.img" with FUSE at /tmp/rootfs-683998922/root: exit status 127
  INFO:    Converting SIF file to temporary sandbox...
  .command.sh: line 13: cat: command not found
  INFO:    Cleaning up image...
I am wondering if there is a permanent fix rather than keep resuming the pipeline manually. I did try to add error_retry label to the processes that have reported temporary errors.
t
Have you checked if the "missing" files it is complaining about exist? If they are there, this is most likely an error resulting from an overloaded file system. If there are more requests than if can fulfill, it will time out, which may result in a misleading error message like this. The solution is to use faster storage (scratch?) and/or run fewer processes at the same time (e.g. set
process.maxForks
). I would also talk to your sysadmins to see if they have any suggestions or know about any changes to your system. (Normally Singularity should not have to convert the image to a "sandbox" -- if that happens, something is wrong with the way Singularity works.)
y
When I checked, the files are there. It is also weird that the other parts of the pipelines are fine, which means the singularity should work correctly? I've never had any issues with steps like fastqc etc. I even have several samples with no problem at rsem step. It seems really random.
t
Yes, if the files exist and the errors are random, that would be consistent with my hypothesis of the overloaded file system. Maybe that sandbox issues is also related to that?
y
Checked with system admin and we don't have scratch folder available. I also tried to limit process.maxForks = 5 and still got the error. Could it be the issue with this particular image as it always gives me an error? I checked the files manually and they are there. I also checked log files for other tools and their images can be mounted with FUSE. singularity version 4.3.2 and nf-core version 3.2.0, nextflow version 24.10.5 build 5935 Quick inspection of the img:
Copy code
singularity inspect mulled-v2-cf0123ef83b3c38c13e3b0696a3f285d3f20f15b-64aad4a4e144878400649e71f42105311be7ed87-0.img 
busybox: BusyBox v1.32.1 (2021-04-13 11:15:36 UTC) multi-call binary.
deb-list: gcc-8-base_8.3.0-6_amd64.deb
libc6_2.28-10_amd64.deb
libgcc1_1%3a8.3.0-6_amd64.deb
bash_5.0-4_amd64.deb
libc-bin_2.28-10_amd64.deb
libtinfo6_6.1+20181013-2+deb10u2_amd64.deb
ncurses-base_6.1+20181013-2+deb10u2_all.deb
base-files_10.3+deb10u9_amd64.deb
glibc: GNU C Library (Debian GLIBC 2.28-10) stable release version 2.28.
io.buildah.version: 1.19.6
org.label-schema.build-date: Tue,_26_Apr_2022_15:08:15_+0000
org.label-schema.build-size: 1901MB
org.label-schema.schema-version: 1.0
org.label-schema.usage.singularity.deffile: /import/Singularity.def
org.label-schema.usage.singularity.deffile.bootstrap: docker
org.label-schema.usage.singularity.deffile.from: quay.io/bioconda/base-glibc-busybox-bash:latest
org.label-schema.usage.singularity.version: 2.4.6-master.g55b3733
pkg-list: gcc-8-base
libc6
libgcc1
bash
libc-bin
libtinfo6
ncurses-base
base-files
The issue was resolved by downgrading the singularity.
👍 1