This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from vib-singlecell-nf/develop
Develop for 0.20.0 Former-commit-id: 7377615
- Loading branch information
Showing
93 changed files
with
1,956 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
// define computing resources via process labels | ||
process { | ||
|
||
// set global executor for all processes. Can be overridden by other tool-specific labels | ||
executor = 'local' | ||
|
||
/* | ||
set a default compute profile | ||
applies to all 'compute_resources__.*' labels: | ||
*/ | ||
withLabel: 'compute_resources__.*|compute_resources__default' { | ||
cpus = 2 | ||
memory = '60 GB' | ||
time = '1h' | ||
// additional cluster options (applies to grid based executors): | ||
clusterOptions = "-A cluster_account" | ||
} | ||
|
||
withLabel: 'compute_resources__minimal' { | ||
cpus = 1 | ||
memory = '1 GB' | ||
} | ||
|
||
withLabel: 'compute_resources__mem' { | ||
cpus = 4 | ||
memory = '160 GB' | ||
} | ||
|
||
withLabel: 'compute_resources__cpu' { | ||
cpus = 20 | ||
memory = '80 GB' | ||
} | ||
|
||
// can be used in conjunction with any other label to extend the queue time | ||
withLabel: 'compute_resources__24hqueue' { | ||
time = '24h' | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
|
||
/* | ||
This error retry strategy and check_max function was modified from nf-core: | ||
https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/%7B%7Bcookiecutter.name_noslash%7D%7D/conf/base.config | ||
*/ | ||
|
||
params { | ||
// Defaults only, expecting to be overwritten based on available cluster resources | ||
max_memory = 170.GB | ||
max_cpus = 20 | ||
max_time = 168.h | ||
} | ||
|
||
// Function to ensure that resource requirements don't go beyond | ||
// a maximum limit | ||
def check_max(obj, type) { | ||
if (type == 'memory') { | ||
try { | ||
if (obj.compareTo(params.max_memory as nextflow.util.MemoryUnit) == 1) | ||
return params.max_memory as nextflow.util.MemoryUnit | ||
else | ||
return obj | ||
} catch (all) { | ||
println " ### ERROR ### Max memory '${params.max_memory}' is not valid! Using default value: $obj" | ||
return obj | ||
} | ||
} else if (type == 'time') { | ||
try { | ||
if (obj.compareTo(params.max_time as nextflow.util.Duration) == 1) | ||
return params.max_time as nextflow.util.Duration | ||
else | ||
return obj | ||
} catch (all) { | ||
println " ### ERROR ### Max time '${params.max_time}' is not valid! Using default value: $obj" | ||
return obj | ||
} | ||
} else if (type == 'cpus') { | ||
try { | ||
return Math.min( obj, params.max_cpus as int ) | ||
} catch (all) { | ||
println " ### ERROR ### Max cpus '${params.max_cpus}' is not valid! Using default value: $obj" | ||
return obj | ||
} | ||
} | ||
} | ||
|
||
|
||
// define computing resources via process labels | ||
process { | ||
|
||
// this executor applies to all processes, except when overridden in another label | ||
executor = 'local' | ||
|
||
// allow a process to be re-tried if the exit code falls in this range. Otherwise, set to 'finish' (wait for completion of existing jobs) | ||
errorStrategy = { task.exitStatus in [143,137,104,134,139] ? 'retry' : 'finish' } | ||
|
||
maxRetries = 2 | ||
|
||
/* | ||
set a default compute profile | ||
applies to all 'compute_resources__.*' labels: | ||
*/ | ||
withLabel: 'compute_resources__.*|compute_resources__default' { | ||
cpus = { check_max(2 * task.attempt, 'cpus') } | ||
memory = { check_max(30.GB * task.attempt, 'memory') } | ||
time = { check_max(1.h * task.attempt, 'time') } | ||
// additional cluster options (applies to grid based executors): | ||
clusterOptions = "-A cluster_account" | ||
} | ||
|
||
withLabel: 'compute_resources__minimal' { | ||
cpus = { check_max(1 * task.attempt, 'cpus') } | ||
memory = { check_max(1.GB * task.attempt, 'memory') } | ||
} | ||
|
||
withLabel: 'compute_resources__mem' { | ||
cpus = { check_max(4, 'cpus') } | ||
memory = { check_max(160.GB * task.attempt, 'memory') } | ||
} | ||
|
||
withLabel: 'compute_resources__cpu' { | ||
cpus = { check_max(20, 'cpus') } | ||
memory = { check_max(80.GB * task.attempt, 'memory') } | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
docker { | ||
enabled = true | ||
runOptions = "-i -v ${HOME}:${HOME}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
params { | ||
global { | ||
project_name = '10x_PBMC' | ||
outdir = 'out' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
singularity { | ||
enabled = true | ||
autoMounts = true | ||
runOptions = '-B /ddn1/vol1/staging/leuven/stg_00002/,/staging/leuven/stg_00002/' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ params { | |
} | ||
sc { | ||
file_annotator { | ||
metaDataFilePath = '' | ||
metadataFilePath = '' | ||
} | ||
scanpy { | ||
filter { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ params { | |
} | ||
sc { | ||
file_annotator { | ||
metaDataFilePath = '' | ||
metadataFilePath = '' | ||
} | ||
scanpy { | ||
filter { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
process { | ||
|
||
executor = 'local' | ||
|
||
/* | ||
This label is activated when using the profile "test__compute_resources", and overwrites all settings from other labels. | ||
Used primarily to keep requested resources within the allowed bounds of GitHub Actions tests. | ||
*/ | ||
withLabel: 'compute_resources__.*' { | ||
cpus = 2 | ||
memory = '4 GB' | ||
time = '1h' | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ params { | |
} | ||
sc { | ||
file_annotator { | ||
metaDataFilePath = '' | ||
metadataFilePath = '' | ||
} | ||
scanpy { | ||
filter { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ params { | |
} | ||
sc { | ||
file_annotator { | ||
metaDataFilePath = '' | ||
metadataFilePath = '' | ||
} | ||
scanpy { | ||
filter { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ params { | |
} | ||
sc { | ||
file_annotator { | ||
metaDataFilePath = '' | ||
metadataFilePath = '' | ||
} | ||
scanpy { | ||
filter { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
params { | ||
misc { | ||
test { | ||
enabled = false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
vpcx { | ||
docker.enabled = true | ||
docker.runOptions = "-i -v /app:/app -v /root/:/root" | ||
docker.registry = "itx-aiv.artifactrepo.jnj.com/" | ||
} |
Oops, something went wrong.