Hi! Is there an easy way of checking how much memo...
# funcscan
n
Hi! Is there an easy way of checking how much memory a task needs? I'm hitting the following error:
Copy code
executor >  slurm (50)
[cd/e3e76c] NFC…EGAHIT-N086.contigs.fa.gz) | 27 of 27, cached: 27 ✔
[34/0c795a] NFC…ION:PYRODIGAL (SC-HE-N085) | 27 of 27, cached: 27 ✔
[3d/228c07] NFC…-BE-N090_pyrodigal.faa.gz) | 27 of 27, cached: 27 ✔
[09/8642b1] NFC…-HE-N085_pyrodigal.fna.gz) | 27 of 27, cached: 27 ✔
[bf/fa398c] NFC…-HE-N081_pyrodigal.gbk.gz) | 27 of 27, cached: 27 ✔
[0d/1d6ca4] NFC…PLIFY_PREDICT (SL-SH-N076) | 2 of 27, cached: 2, retries: 25
[9c/f43559] NFC…ACREL_CONTIGS (SC-HE-N081) | 27 of 27, cached: 27 ✔
[1f/d34ea6] NFC…N081.macrel.prediction.gz) | 27 of 27, cached: 27 ✔
[e8/b6b5f1] NFC…81.macrel.all_orfs.faa.gz) | 27 of 27, cached: 27 ✔
[e7/666dd8] NFC…CAN:AMP:AMPIR (SC-HE-N081) | 27 of 27, cached: 27 ✔
[ab/8e2a15] NFC…:AMP:AMP_DATABASE_DOWNLOAD | 1 of 1, cached: 1 ✔
[-        ] NFC…:AMP:AMPCOMBI2_PARSETABLES -
[-        ] NFC…CAN:AMP:AMPCOMBI2_COMPLETE -
[-        ] NFC…SCAN:AMP:AMPCOMBI2_CLUSTER -
[-        ] NFC…_FUNCSCAN:FUNCSCAN:MULTIQC -
ERROR ~ Error executing process > 'NFCORE_FUNCSCAN:FUNCSCAN:AMP:AMPLIFY_PREDICT (SL-SH-N076)'

Caused by:
  Process `NFCORE_FUNCSCAN:FUNCSCAN:AMP:AMPLIFY_PREDICT (SL-SH-N076)` terminated with an error exit status (137)


Command executed:

  AMPlify \
       \
       \
      -s 'SL-SH-N076_pyrodigal.faa'

  #rename output, because tool includes date and time in name
  mv *.tsv SL-SH-N076.amplify.tsv

  cat <-END_VERSIONS  versions.yml
  "NFCORE_FUNCSCAN:FUNCSCAN:AMP:AMPLIFY_PREDICT":
      AMPlify: $(AMPlify --help | grep 'AMPlify v' | sed -e "s/^.*AMPlify v//")
  END_VERSIONS

Command exit status:
  137

Command output:
  (empty)

Command error:
  INFO:    Environment variable SINGULARITYENV_TMPDIR is set, but APPTAINERENV_TMPDIR is preferred
  INFO:    Environment variable SINGULARITYENV_NXF_TASK_WORKDIR is set, but APPTAINERENV_NXF_TASK_WORKDIR is preferred
  INFO:    Environment variable SINGULARITYENV_NXF_DEBUG is set, but APPTAINERENV_NXF_DEBUG is preferred
  2025-09-30 12:24:25.054814: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
  /usr/local/bin/AMPlify: line 2:    48 Killed                  /usr/local/share/amplify/src/AMPlify.py $@

Work dir:
  /mnt/shared/scratch/neckersl/private/funcscan/work/0d/1d6ca4f0c36dbc51113c38fc9c442b

Container:
  /mnt/shared/scratch/neckersl/private/funcscan/work/singularity/depot.galaxyproject.org-singularity-amplify-2.0.0--py36hdfd78af_1.img

Tip: when you have fixed the problem you can continue the execution adding the option `-resume` to the run command line

 -- 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
-[nf-core/funcscan] Pipeline completed with errors-
WARN: Killing running tasks (24)
I accidentally had this parameter set to 500GB for all 27 samples and ended up getting a telling off from the HPC admin, and told to restart it with less. They said each task is using up no more than 50GB of memory, so I supplied 60GB and its errored. Unsurprisingly it was running fine at 500GB. EDIT: tried with 75GB just now and its errored again. Thanks!
j
It's hard to say unfortunately
It''s hard to predict as it depends on the amount of data, but also some of the tools have variability in RAM usage throughout the run time 😕
Also I seem to remember amplify is a bit iffy which doesn;t help 🙃
h
@Nick Eckersley Try to refer to this module (https://github.com/nf-core/modules/blob/master/modules/nf-core/bwa/index/main.nf) to see how the dynamic memory use is configured if you have a predictable mem usage of
AMPlify
based on your input
faa
file size.
n
Thanks both. I've incrementally increased it and it seems to be working at 150gb. Was just to prevent wasting time in the future. I will take a look at this link, thanks!
j
Please report back though how much it was in teh end!
This would be useful feedback for us