Skip to content

Commit

Permalink
Merge pull request #42 from sanger-tol/runner-testing
Browse files Browse the repository at this point in the history
try free runner
  • Loading branch information
gq1 authored May 7, 2024
2 parents 271885e + 0458cd4 commit f4701f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conf/test_github.config
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ params {
config_profile_name = 'Github test profile'
config_profile_description = 'Minimal test dataset to check pipeline function'

max_cpus = 2
max_memory = '6.GB'
max_cpus = 4
max_memory = '15.GB'
max_time = '6.h'
// Limit resources so that this can run on GitHub Actions

Expand Down
2 changes: 1 addition & 1 deletion modules/local/bamtobed_sort.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ process BAMTOBED_SORT {
script:
def prefix = args.ext.prefix ?: "${meta.id}"
def st_cores = task.cpus > 4 ? 4 : "${task.cpus}"
def buffer_mem = task.memory.toGiga() / 2
def buffer_mem = (task.memory.toGiga() / 2).round()
"""
samtools view -@${st_cores} -u -F0x400 ${bam} | bamToBed | sort -k4 --parallel=${task.cpus} -S ${buffer_mem}G -T . > ${prefix}_merged_sorted.bed
Expand Down

0 comments on commit f4701f1

Please sign in to comment.