Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjtaylor committed Mar 4, 2024
1 parent 7236309 commit a6df3db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/dynamic.config
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ params {
// Process-specific resource requirements
withName: HISTOQC {
cpus = { check_max( 2 * slow(task.attempt), 'cpus' ) }
memory = { check_max((${meta.memory}.toFloat() * task.attempt) + 'GB', 'memory') }
memory = { check_max("${meta.memory * task.attempt}GB", 'memory' ) }
time = { check_max( 24.h * task.attempt, 'time' ) }
}

Expand Down
4 changes: 1 addition & 3 deletions subworkflows/samplesheet_split.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ workflow SPLIT {

// Adjusted function to directly take fileSizeBytes
def calculateMemoryAllocation(double fileSizeBytes) {
// Placeholder for your memory calculation logic
// This example directly uses fileSizeGB
def memoryGB = Math.ceil(Math.exp((0.497 * Math.log(fileSizeBytes) - 8.74)) + (2 * 0.39))
return memoryGB < 2 ? 2 : memoryGB // Ensuring a minimum of 6 GB
return memoryGB < 2 ? 2 : memoryGB // Ensuring a minimum of 2 GB
}

0 comments on commit a6df3db

Please sign in to comment.