MaestSi / MetONTIIME

A Meta-barcoding pipeline for analysing ONT data in QIIME2 framework
GNU General Public License v3.0
78 stars 17 forks source link

Adjust CPU and RAM #73

Closed timyerg closed 1 year ago

timyerg commented 1 year ago

Hi! Thank you for developing and maintaining this tool. I have a very basic question since I have 0 experience with docker or singularity and have no idea how to adjust profiles.

For example, here is a piece if code I want to adjust for singularity:

withName:assignTaxonomy{
    container = 'maestsi/metontiime:latest'
    cpus = { params.assignTaxonomy ? 6 : 1 }
    memory = { params.assignTaxonomy ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }
    errorStrategy = { task.exitStatus == 130 ? 'retry' : 'terminate' }
    maxRetries = 3
}

How I should adjust it here?

Is it correct for 8 CPUs? cpus = { params.assignTaxonomy ? 6 : 8 }

Which parameters should I modify here? memory = { params.assignTaxonomy ? 10.GB + (2.GB * (task.attempt-1)) : 1.GB }

I am confused.

timyerg commented 1 year ago

Looks like it was already answered at the time I was typing this question here: https://github.com/MaestSi/MetONTIIME/issues/71#issuecomment-1779226288

Thank you!

MaestSi commented 1 year ago

:)