Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add labels to nextflow processes for slurm migration #424

Merged
merged 3 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pipelines/annotation_pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ workflow {
* Download ClinVar data, using the most recent XML dump.
*/
process downloadClinvar {
label 'small'

output:
path "clinvar.xml.gz", emit: clinvarXml

Expand All @@ -112,6 +114,9 @@ process downloadClinvar {
* Download the Open Targets JSON schema.
*/
process downloadJsonSchema {
label 'short'
label 'small'

output:
path "opentargets-${params.schema}.json", emit: jsonSchema

Expand Down Expand Up @@ -222,6 +227,9 @@ process runStructural {
* Unite results of consequence mapping.
*/
process combineConsequences {
label 'short'
label 'small'

input:
path consequencesSnp
path consequencesRepeat
Expand Down Expand Up @@ -327,6 +335,8 @@ process generateAnnotatedXml {
* Count number of RCV records in ClinVar.
*/
process countClinvarRecords {
label 'small'

input:
path clinvarXml

Expand Down Expand Up @@ -373,6 +383,9 @@ process generateEvidence {
* Concatenate evidence strings into a single file.
*/
process collectEvidenceStrings {
label 'short'
label 'small'

publishDir "${batchRoot}/evidence_strings",
overwrite: true,
mode: "copy",
Expand All @@ -394,6 +407,9 @@ process collectEvidenceStrings {
* Aggregate counts into a single file and print the report.
*/
process collectCounts {
label 'short'
label 'small'

publishDir "${batchRoot}/logs",
overwrite: true,
mode: "copy",
Expand All @@ -415,6 +431,9 @@ process collectCounts {
* Check that the generated evidence strings do not contain any duplicated evidence strings.
*/
process checkDuplicates {
label 'short'
label 'small'

input:
path evidenceStrings

Expand Down
24 changes: 24 additions & 0 deletions pipelines/export_curation_spreadsheet.nf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ workflow {
* Extract the relevant columns from the input CSV.
*/
process exportTable {
label 'short'
label 'small'

publishDir "${curationRoot}",
overwrite: true,
mode: "copy",
Expand All @@ -79,6 +82,9 @@ process exportTable {
* Strip header from existing mappings file.
*/
process stripMappingsHeader {
label 'short'
label 'small'

output:
path "previous_mappings.tsv", emit: previousMappings

Expand All @@ -92,6 +98,9 @@ process exportTable {
* Concatenate finished automated and manual mappings into a single file.
*/
process combineManualAndAutomated {
label 'short'
label 'small'

input:
path finishedMappings

Expand All @@ -111,6 +120,9 @@ process combineManualAndAutomated {
* latest curation iteration.
*/
process mergeWithLatestMappings {
label 'short'
label 'small'

input:
path newMappings
path previousMappings
Expand All @@ -134,6 +146,8 @@ process mergeWithLatestMappings {
* Prepare the table for EFO import.
*/
process createEfoTable {
label 'short'
label 'small'
publishDir "${curationRoot}",
overwrite: true,
mode: "copy",
Expand All @@ -157,6 +171,8 @@ process createEfoTable {
* Generate ZOOMA feedback.
*/
process generateZoomaFeedback {
label 'short'
label 'small'
publishDir "${curationRoot}",
overwrite: true,
mode: "copy",
Expand Down Expand Up @@ -184,6 +200,9 @@ process generateZoomaFeedback {
* Check there are no complete duplicates in the final mappings file.
*/
process checkDuplicates {
label 'short'
label 'small'

input:
path newMappings

Expand All @@ -201,6 +220,8 @@ process checkDuplicates {
* Add generated date and target ontology to header of final mappings file.
*/
process addMappingsHeader {
label 'short'
label 'small'
publishDir "${curationRoot}",
overwrite: true,
mode: "copy",
Expand All @@ -226,6 +247,9 @@ process addMappingsHeader {
* Update the symbolic links pointing to the location of the most recent curation result and ZOOMA feedback dataset.
*/
process updateLinks {
label 'short'
label 'small'

input:
path finalMappings
path zoomaFeedback
Expand Down
10 changes: 10 additions & 0 deletions pipelines/generate_curation_spreadsheet.nf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ workflow {
* Download ClinVar data, using the most recent XML dump.
*/
process downloadClinvar {
label 'small'

output:
path "clinvar.xml.gz", emit: clinvarXml

Expand Down Expand Up @@ -91,6 +93,9 @@ process parseTraits {
* Split parsed traits into multiple chunks.
*/
process splitTraits {
label 'short'
label 'small'

input:
path parsedTraits

Expand Down Expand Up @@ -136,6 +141,8 @@ process processTraits {
* Aggregate automated trait mappings into a single file.
*/
process collectAutomatedMappings {
label 'short'
label 'small'
publishDir "${curationRoot}",
overwrite: true,
mode: "copy",
Expand All @@ -158,6 +165,9 @@ process collectAutomatedMappings {
* Aggregate traits for manual curation into a single file.
*/
process collectCurationTraits {
label 'short'
label 'small'

input:
path "curation_traits_*.tsv"

Expand Down
3 changes: 3 additions & 0 deletions pipelines/utils.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Extract target ontology from mappings file header. Defaults to EFO if missing.
*/
process getTargetOntology {
label 'short'
label 'small'

input:
val mappingsFile

Expand Down
Loading