Update cores specification in TrimGalore module (#2127)

Update main.nf
This commit is contained in:
Harshil Patel 2022-09-28 14:47:27 +01:00 committed by GitHub
parent 0ab15c5ee9
commit bfbdc4f79b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ process TRIMGALORE {
cores = (task.cpus as int) - 4 cores = (task.cpus as int) - 4
if (meta.single_end) cores = (task.cpus as int) - 3 if (meta.single_end) cores = (task.cpus as int) - 3
if (cores < 1) cores = 1 if (cores < 1) cores = 1
if (cores > 4) cores = 4 if (cores > 8) cores = 8
} }
// Clipping presets have to be evaluated in the context of SE/PE // Clipping presets have to be evaluated in the context of SE/PE