I attempt to optimize resource allocations for nf-...
# pipeline-maintainers
d
I attempt to optimize resource allocations for nf-core/ampliseq. I am unsure though how multiple labels behave. For example, do I overwrite the memory allocation of
process_low
with that of
process_mem_3gb
, i.e. by the label sequence?
Copy code
process XYZ {
    label 'process_low'
    label 'process_mem_3gb'
    [...]
}
n
The docs do not seem to consider this case, what would definetly take priority over the label is a withName selector, I guess it depends on how many
mem_3gb
processes you have
d
hm ok thanks. I asked because I didnt find it in the docs.
n
My assumption would be that the labels are applied in the order they are assigned to the process (3gb should overwrite low) but I am not sure if I ever tested that
e
👍 1
Just overriding, through test profiles. Did this for test and test_full
d
I have confirmed, as far as I see, that multiple labels overwrite each other in sequence, as expected.
👍 1