@@ -13,7 +13,7 @@ Use as follows:
1313params {
1414 config_profile_name = 'Annotate all RefSeq Micromonospora'
1515 config_profile_description = 'Minimal test dataset to check pipeline function'
16- ncbi_datasets_command ='genome taxon "micromonospora chokorienses " --assembly-source refseq --exclude-atypical'
16+ ncbi_datasets_command ='genome taxon "micromonospora" --assembly-source refseq --exclude-atypical'
1717
1818 /*
1919 ///////////////////////////////////
@@ -37,22 +37,45 @@ params {
3737 // want to set fasta_splits to a higher number to allow checkpointing. Howevever, setting
3838 // fasta_splits too high will result in diminishing returns due to overhead and possibly
3939 // too-few proteins per file (would probably keep <1000 for any size of dataset)
40- fasta_splits = 24
41- max_cpus = 24
42- max_memory = '100.GB'
43- max_time = 48.h
40+ max_cpus = 96
41+ max_memory = '800.GB'
42+ max_time = 500.h
43+ slurm_queue_size = 48
4444
4545}
4646
4747process {
4848
49- withName:'ANTISMASH'{
50- ext.args = "--skip-zip-file --allow-long-headers --skip-sanitisation --minimal --enable-genefunctions --enable-lanthipeptides --enable-lassopeptides --enable-nrps-pks --enable-sactipeptides --enable-t2pks --enable-thiopeptides --enable-tta"
51- ext.args2 = "--hmmdetection-strictness 'loose'"
49+ withName:HMMER_HMMSEARCH {
50+ cpus = { check_max (2 * task.attempt, 'cpus' ) }
51+ memory = { check_max (2.GB * task.attempt, 'memory' ) }
52+ time = { check_max (24.h * task.attempt, 'time' ) }
5253 }
53-
54- withName:'MMSEQS2_CLUSTER'{
55- // https://github.com/soedinglab/mmseqs2/wiki#how-to-set-the-right-alignment-coverage-to-cluster
56- ext.args2 = '-c 0.7 --cov-mode 0'
54+ withLabel:process_single {
55+ cpus = { check_max( 1 , 'cpus' ) }
56+ memory = { check_max( 5.GB * task.attempt, 'memory' ) }
57+ time = { check_max( 10.h * task.attempt , 'time' ) }
58+ }
59+ withLabel:process_low {
60+ cpus = { check_max( 1 * task.attempt, 'cpus' ) }
61+ memory = { check_max( 2.GB * task.attempt, 'memory' ) }
62+ time = { check_max( 40.h * task.attempt, 'time' ) }
63+ }
64+ withLabel:process_medium {
65+ cpus = { check_max( 5 * task.attempt, 'cpus' ) }
66+ memory = { check_max( 20.GB * task.attempt, 'memory' ) }
67+ time = { check_max( 80.h * task.attempt, 'time' ) }
68+ }
69+ withLabel:process_high {
70+ cpus = { check_max( 24 * task.attempt, 'cpus' ) }
71+ memory = { check_max( 100.GB * task.attempt, 'memory' ) }
72+ time = { check_max( 16.h * task.attempt, 'time' ) }
73+ }
74+ withLabel:process_long {
75+ time = { check_max( 24.h * task.attempt, 'time' ) }
5776 }
77+ withLabel:process_high_memory {
78+ memory = { check_max( 400.GB * task.attempt, 'memory' ) }
79+ }
80+
5881}
0 commit comments