Hi I am facing this error ```ERROR ~ Error executi...
# viralmetagenome
j
Hi I am facing this error
Copy code
ERROR ~ Error executing process > 'NFCORE_VIRALMETAGENOME:VIRALMETAGENOME:FASTA_CONTIG_CLUST:FASTA_FASTQ_CLUST:CDHIT_CDHITEST (sample2_taxid0)'

Caused by:
  Process exceeded running time limit (8h)

Command executed:

  cd-hit-est \
      -d 50 -c 0.85 -mask rRyYkKsSwWmMbBdDhHvVnN \
      -i sample2_taxid0.fa \
      -o sample2_taxid0_cdhit.fa \
      -M 29491 \
      -T 6
  
  cat <<-END_VERSIONS > versions.yml
  "NFCORE_VIRALMETAGENOME:VIRALMETAGENOME:FASTA_CONTIG_CLUST:FASTA_FASTQ_CLUST:CDHIT_CDHITEST":
      cdhit: $(cd-hit-est -h | head -n 1 | sed 's/^.*====== CD-HIT version //;s/ (built on .*) ======//' )
  END_VERSIONS
j
I’m suprised to see this occur, typically, cdhit is pretty fast. You can read more about this benchmarking mmseqs2 devs did a while ago (Fig2). https://www.nature.com/articles/s41467-018-04964-5, or the cdhit paper https://academic.oup.com/bioinformatics/article/22/13/1658/194225 Regarding on increasing the amount of runtime and resoruces, have a read here https://nf-co.re/docs/usage/getting_started/configuration#max-resources. You’ll make a custom config file, that looks something like this:
Copy code
process {
    withName: CDHIT_CDHITEST{
        resourceLimits = [
            cpus: 18,
            memory: 32.GB,
            time: 24.h
        ]
    }
}
To increase it to for example, 18cpus, 32GB and allowing it to run for 24h.
j
Thanks @Joon Klaps