Skip to content

Commit e7fa298

Browse files
authored
Merge pull request #44 from CDCgov/dev
Dev
2 parents f4467b6 + 1bb8a15 commit e7fa298

File tree

9 files changed

+127
-15
lines changed

9 files changed

+127
-15
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### `Added`
1515

16+
- [PR #44](https://github.com/CDCgov/MIRA-NF/pull/44) - adding configs for other profiles. restore the base config to it's original settings to be used as a template for other config files.
17+
1618
### `Fixed`
1719

18-
- [PR #42](https://github.com/CDCgov/MIRA-NF/pull/42) - Fixing how the base base is extracted from the run path for naming parquet and cav files. Will now work with "." in the run name.
20+
- [PR #43](https://github.com/CDCgov/MIRA-NF/pull/43) - Fixing how the base base is extracted from the run path for naming parquet and cav files. Will now work with "." in the run name.
1921

2022
### `Dependencies`
2123

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: mira-nf
22
Type: Package
33
Title: Nextflow Pipeline for Influenza, SARS-COV-2 and RSV Assembly and Curation
4-
Version: 1.4.0
4+
Version: 1.4.1
55
Date: 2025-01-23
66
Authors@R:
77
c(person(given="Ben", family="Rambo-Martin", role=c("led", "aut"),

conf/amd.config

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
mira-nf/mira Nextflow amd config file
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
A config file for AMD-P. Assumes that all software is installed and available on
6+
the PATH.
7+
----------------------------------------------------------------------------------------
8+
*/
9+
10+
process {
11+
12+
cpus = { check_max( 1 * task.attempt, 'cpus' ) }
13+
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
14+
time = { check_max( 4.h * task.attempt, 'time' ) }
15+
16+
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
17+
maxRetries = 1
18+
maxErrors = '-1'
19+
20+
// Process-specific resource requirements
21+
withLabel:process_single {
22+
cpus = { check_max( 1 , 'cpus' ) }
23+
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
24+
time = { check_max( 4.h * task.attempt, 'time' ) }
25+
}
26+
withLabel:process_low {
27+
cpus = { check_max( 2 * task.attempt, 'cpus' ) }
28+
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
29+
time = { check_max( 4.h * task.attempt, 'time' ) }
30+
}
31+
withLabel:process_medium {
32+
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
33+
memory = { check_max( 36.GB * task.attempt, 'memory' ) }
34+
time = { check_max( 8.h * task.attempt, 'time' ) }
35+
}
36+
withLabel:process_high {
37+
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
38+
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
39+
time = { check_max( 16.h * task.attempt, 'time' ) }
40+
}
41+
withLabel:process_long {
42+
time = { check_max( 20.h * task.attempt, 'time' ) }
43+
}
44+
withLabel:process_high_memory {
45+
memory = { check_max( 200.GB * task.attempt, 'memory' ) }
46+
}
47+
withLabel:error_ignore {
48+
errorStrategy = 'ignore'
49+
}
50+
withLabel:error_retry {
51+
errorStrategy = 'retry'
52+
maxRetries = 3
53+
}
54+
55+
}

conf/aws_mem.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3-
mira-nf/mira Nextflow local config file
3+
mira-nf/mira Nextflow aws config file
44
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5-
This is the config to limit resources in aws environments
5+
This is the config to limit resources in APHL's aws environments
66
----------------------------------------------------------------------------------------
77
*/
88

conf/base.config

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ process {
3030
time = { check_max( 4.h * task.attempt, 'time' ) }
3131
}
3232
withLabel:process_medium {
33-
cpus = { check_max( 4 * task.attempt, 'cpus' ) }
34-
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
33+
cpus = { check_max( 6 * task.attempt, 'cpus' ) }
34+
memory = { check_max( 36.GB * task.attempt, 'memory' ) }
3535
time = { check_max( 8.h * task.attempt, 'time' ) }
3636
}
3737
withLabel:process_high {
38-
cpus = { check_max( 8 * task.attempt, 'cpus' ) }
39-
memory = { check_max( 24.GB * task.attempt, 'memory' ) }
38+
cpus = { check_max( 12 * task.attempt, 'cpus' ) }
39+
memory = { check_max( 72.GB * task.attempt, 'memory' ) }
4040
time = { check_max( 16.h * task.attempt, 'time' ) }
4141
}
4242
withLabel:process_long {
@@ -50,7 +50,6 @@ process {
5050
}
5151
withLabel:error_retry {
5252
errorStrategy = 'retry'
53-
maxRetries = 3
53+
maxRetries = 2
5454
}
55-
56-
}
55+
}

conf/local_base.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33
mira-nf/mira Nextflow local config file
44
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5-
This is set up like tyhe base config, but with limited resources to run smoothly on a locally
5+
This is set up like the base config, but with limited resources to run smoothly on a locally
66
----------------------------------------------------------------------------------------
77
*/
88

conf/sge_slurm.config

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
mira-nf/mira Nextflow sge and slurm config file
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
A config file, appropriate for general use on most high performance
6+
compute environments. Assumes that all software is installed and available on
7+
the PATH.
8+
----------------------------------------------------------------------------------------
9+
*/
10+
11+
process {
12+
13+
cpus = { check_max( 1 * task.attempt, 'cpus' ) }
14+
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
15+
time = { check_max( 4.h * task.attempt, 'time' ) }
16+
17+
errorStrategy = { task.exitStatus in ((130..145) + 104) ? 'retry' : 'finish' }
18+
maxRetries = 1
19+
maxErrors = '-1'
20+
21+
// Process-specific resource requirements
22+
withLabel:process_single {
23+
cpus = { check_max( 1 , 'cpus' ) }
24+
memory = { check_max( 6.GB * task.attempt, 'memory' ) }
25+
time = { check_max( 4.h * task.attempt, 'time' ) }
26+
}
27+
withLabel:process_low {
28+
cpus = { check_max( 2 * task.attempt, 'cpus' ) }
29+
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
30+
time = { check_max( 4.h * task.attempt, 'time' ) }
31+
}
32+
withLabel:process_medium {
33+
cpus = { check_max( 4 * task.attempt, 'cpus' ) }
34+
memory = { check_max( 12.GB * task.attempt, 'memory' ) }
35+
time = { check_max( 8.h * task.attempt, 'time' ) }
36+
}
37+
withLabel:process_high {
38+
cpus = { check_max( 8 * task.attempt, 'cpus' ) }
39+
memory = { check_max( 24.GB * task.attempt, 'memory' ) }
40+
time = { check_max( 16.h * task.attempt, 'time' ) }
41+
}
42+
withLabel:process_long {
43+
time = { check_max( 20.h * task.attempt, 'time' ) }
44+
}
45+
withLabel:process_high_memory {
46+
memory = { check_max( 200.GB * task.attempt, 'memory' ) }
47+
}
48+
withLabel:error_ignore {
49+
errorStrategy = 'ignore'
50+
}
51+
withLabel:error_retry {
52+
errorStrategy = 'retry'
53+
maxRetries = 3
54+
}
55+
56+
}

conf/test_full.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Defines input files and everything required to run a full size pipeline test.
66

77
Use as follows:
8-
nextflow run mira/cli -profile test_full,<docker/singularity> --outdir <OUTDIR>
8+
nextflow run mira-nf/mira -profile test_full,<docker/singularity> --outdir <OUTDIR>
99

1010
----------------------------------------------------------------------------------------
1111
*/

nextflow.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ profiles {
170170
docker.enabled = false
171171

172172
// Load configs
173-
includeConfig 'conf/base.config'
173+
includeConfig 'conf/sge_slurm.config'
174174
includeConfig 'conf/modules.config'
175175

176176
executor {
@@ -189,7 +189,7 @@ profiles {
189189
}
190190
slurm {
191191
// Load configs
192-
includeConfig 'conf/base.config'
192+
includeConfig 'conf/sge_slurm.config'
193193
includeConfig 'conf/modules.config'
194194

195195
process.executor = 'slurm'

0 commit comments

Comments
 (0)