Skip to content

Commit

Permalink
Add doi field to NF manifest #1676
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Jul 15, 2020
1 parent 19130f8 commit ec6ee22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ Name Description
author Project author name (use a comma to separate multiple names).
defaultBranch Git repository default branch (default: ``master``).
description Free text describing the workflow project.
doi Project related publication DOI identifier.
homePage Project home page URL.
mainScript Project main script (default: ``main.nf``).
name Project short name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ class Manifest {
target.name
}

String getDoi() {
target.doi
}

Map toMap() {
final result = new HashMap(10)
result.author = getAuthor()
Expand All @@ -100,6 +104,7 @@ class Manifest {
result.mainScript = getMainScript()
result.version = getVersion()
result.nextflowVersion = getNextflowVersion()
result.doi = getDoi()
return result
}
}
1 change: 1 addition & 0 deletions modules/nf-tower/src/resources/tower-schema.properties
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ workflow.manifest.name = 150
workflow.manifest.mainScript = 100
workflow.manifest.author = 150
workflow.manifest.gitmodules = 150
workflow.manifest.doi = 100
workflow.stats.computeTimeFmt = 50
# process names
processNames = 255
Expand Down

0 comments on commit ec6ee22

Please sign in to comment.