Didn't realise this channel existed! Forwarding my...
# funcscan
n
Didn't realise this channel existed! Forwarding my message from #help. Any help would be great! Thanks
✅ 1
j
Hrmm, wierd... agreed normally 137 is memory related
how are you increasing the memory?
j
AMPlify really takes a long time to finish. For one assembly (1.3 GB with 1,720,355 contigs) it might take more than 6 days. When I ran it on an HPC, CPUs were really not the problem (1 might be enough), memory it did not use more than 64 GB, so 128 might be sufficient. Maybe it was killed because of time? Ok James says error code suggests memory... how big is your input file?
n
Thank you both for your response. So I ran AMPlify manually on these 4 samples previously and I had to keep increasing the memory. About 128gb was sufficient and each one to just over 2 days. I have increased the memory to 250gb on the nfcore pipeline but hitting this error after around 20 minutes. Here is my script:
Copy code
#!/bin/bash
#SBATCH --job-name=nfcore_funcscan
#SBATCH --output=../funcscan/logs/%x_%j.out
#SBATCH --error=../funcscan/logs/%x_%j.err
#SBATCH --cpus-per-task=8
#SBATCH --partition=himem

# Activate Conda
source /mnt/apps/users/neckersl/conda/etc/profile.d/conda.sh
conda activate nfcore

# Use physical scratch path
SCRATCH_REAL="/mnt/shared/scratch/neckersl/private"

# Run the pipeline
nextflow run nf-core/funcscan \
  -profile cropdiversityhpc \
  -c "$SCRATCH_REAL/nfcore_mag/fscustomcropdiversityhpc.config" \
  --input "$SCRATCH_REAL/nfcore_mag/data/funcscan_mgnify_assembly.csv" \
  --outdir "$SCRATCH_REAL/funcscan/output/fava_bean_mgnify" \
  --run_amp_screening \
  -work-dir "$SCRATCH_REAL/funcscan/work" \
  --multiqc_title "mgnify_funcscan" \
  -resume
and here is my custom config:
Copy code
params {
    config_profile_description = 'Crop Diversity HPC cluster profile'
    config_profile_contact = 'Thomas Adams (@TMAdams)'
    config_profile_url = 'https://help.cropdiversity.ac.uk/'
}

executor {
    name = 'slurm'
}

process {
  withName: 'NFCORE_FUNCSCAN:FUNCSCAN:AMP:AMPIR' {
    memory = '250.GB'
  }
}
the himem partition has a time limit of 14 days and 2-4T memory
j
Ah, but the jobs NExtflow is executing is not going to that partition 😬
Only the
run
command
Nextflow, if you specify an executor, will submit each step of the pipeline as a job for you
It will not inherit from the
run
command job, if you execute it in that manner
You will need to do something like this:
Copy code
queue = { task.cpus > 24 ? 'big' : 'small' }
That line
n
Ah! So this is what I had in the custom config for the nfcore mag I ran:
Copy code
process {
    executor = 'slurm'
    queue = { task.memory <= 32.GB ? (task.time < 6.h ? task.memory <=2.GB ? 'hicpu': 'short' : task.time < 24.h ? 'medium' : 'long') : 'himem' }
}
Will putting this into the funcscan custom config fix the issue?
j
Very very likely 🙂
You can check
sacct
where the amplify job went to
I suspect it went to wahtever your default is
n
I have been checking that with "squeue -u $USER", and I get:
Copy code
JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REASON)
           3009492     himem nf-NFCOR neckersl  R       0:14      1 n23-64-2048-potter
           3009493     himem nf-NFCOR neckersl  R       0:14      1 n23-64-2048-potter
           3009498     himem nf-NFCOR neckersl  R       0:14      1 n23-64-2048-potter
           3009501     himem nf-NFCOR neckersl  R       0:14      1 n19-64-3072-thanos
           3009488     himem nfcore_f neckersl  R       0:44      1 n23-64-2048-potter
           3009496      long nf-NFCOR neckersl  R       0:14      1 n23-64-256-flitwick
           3009497      long nf-NFCOR neckersl  R       0:14      1 n23-64-256-flitwick
           3009499      long nf-NFCOR neckersl  R       0:14      1 n23-64-256-flitwick
           3009500      long nf-NFCOR neckersl  R       0:14      1 n23-64-512-goyle
           3009494    medium nf-NFCOR neckersl  R       0:14      1 n24-64-384-dawn
           3009495    medium nf-NFCOR neckersl  R       0:14      1 n24-64-384-dawn
Would that be the same thing?
j
No, that's the currently running jobs
Similar though,
sacct
is a log
Sometimes you have t ospecify the time range to search
and yo ucan customise the width of each column so you can see the jo name - you'll need to check the
sacct
docs
sacct --format="JobID,JobName%20, Partition,NodeList,AllocCPUS,Elapsed,MaxVMSize,State,End,ExitCode"
Is what I normally run I think
(the %20 means print 20 characters
n
I see, yes I get:
Copy code
JobID                     JobName  Partition        NodeList  AllocCPUS    Elapsed  MaxVMSize      State                 End ExitCode
------------ -------------------- ---------- --------------- ---------- ---------- ---------- ---------- ------------------- --------
3009488           nfcore_funcscan      himem n23-64-2048-po+          8   00:04:07               RUNNING             Unknown      0:0
3009488.bat+                batch            n23-64-2048-po+          8   00:04:07               RUNNING             Unknown      0:0
3009488.ext+               extern            n23-64-2048-po+          8   00:04:07               RUNNING             Unknown      0:0
3009492      nf-NFCORE_FUNCSCAN_+      himem n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009492.bat+                batch            n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009492.ext+               extern            n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009493      nf-NFCORE_FUNCSCAN_+      himem n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009493.bat+                batch            n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009493.ext+               extern            n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009494      nf-NFCORE_FUNCSCAN_+     medium n24-64-384-dawn          4   00:03:37               RUNNING             Unknown      0:0
3009494.bat+                batch            n24-64-384-dawn          4   00:03:37               RUNNING             Unknown      0:0
3009494.ext+               extern            n24-64-384-dawn          4   00:03:37               RUNNING             Unknown      0:0
3009495      nf-NFCORE_FUNCSCAN_+     medium n24-64-384-dawn          4   00:03:37               RUNNING             Unknown      0:0
3009495.bat+                batch            n24-64-384-dawn          4   00:03:37               RUNNING             Unknown      0:0
3009495.ext+               extern            n24-64-384-dawn          4   00:03:37               RUNNING             Unknown      0:0
3009496      nf-NFCORE_FUNCSCAN_+       long n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009496.bat+                batch            n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009496.ext+               extern            n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009497      nf-NFCORE_FUNCSCAN_+       long n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009497.bat+                batch            n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009497.ext+               extern            n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009498      nf-NFCORE_FUNCSCAN_+      himem n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009498.bat+                batch            n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009498.ext+               extern            n23-64-2048-po+          1   00:03:37               RUNNING             Unknown      0:0
3009499      nf-NFCORE_FUNCSCAN_+       long n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009499.bat+                batch            n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009499.ext+               extern            n23-64-256-fli+          1   00:03:37               RUNNING             Unknown      0:0
3009500      nf-NFCORE_FUNCSCAN_+       long n23-64-512-goy+          1   00:03:37               RUNNING             Unknown      0:0
3009500.bat+                batch            n23-64-512-goy+          1   00:03:37               RUNNING             Unknown      0:0
3009500.ext+               extern            n23-64-512-goy+          1   00:03:37               RUNNING             Unknown      0:0
3009501      nf-NFCORE_FUNCSCAN_+      himem n19-64-3072-th+          1   00:03:37               RUNNING             Unknown      0:0
3009501.bat+                batch            n19-64-3072-th+          1   00:03:37               RUNNING             Unknown      0:0
3009501.ext+               extern            n19-64-3072-th+          1   00:03:37               RUNNING             Unknown      0:0
Thanks very much for your help, hopefully this will run properly now.
🤞 1