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

Minor fixes to metadata #35

Merged
merged 5 commits into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 4 additions & 2 deletions docs/templates/modules.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ code_symbol <- '{{< fa regular file-code >}}'

if ('tools' %in% names(meta)) {
tools_df <- meta$tools %>% yaml_to_df()
for (colname in c('tool_dev_url', 'homepage', 'documentation')) {
for (colname in c('tool_dev_url', 'homepage', 'documentation', 'licence')) {
if (!(colname %in% colnames(tools_df))) {
tools_df[colname] <- NA_character_
}
Expand All @@ -69,7 +69,9 @@ if ('tools' %in% names(meta)) {
TRUE ~ ""),
code = case_when(!is.na(tool_dev_url) ~ glue("[{ code_symbol } Code]({ tool_dev_url })"),
TRUE ~ ""),
links = paste(home, docs, code, glue("`{ licence }`"),
license = case_when(!is.na(licence) ~ glue("`{ licence }`"),
TRUE ~ ""),
links = paste(home, docs, code, license,
sep = " &ensp; "),
markdown = glue("{ name }", "{ links }", "{ description }",
.sep = '\n\n')
Expand Down
1 change: 1 addition & 0 deletions modules/CCBR/custom/countfastq/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ tools:
homepage: https://biopython.org/
tool_dev_url: https://github.com/biopython/biopython
doi: 10.1093/bioinformatics/btp163
licence: ["BSD 3-Clause"]
input:
- meta:
type: map
Expand Down
2 changes: 1 addition & 1 deletion modules/CCBR/samtools/flagstat/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ process SAMTOOLS_FLAGSTAT {
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
def prefix = task.ext.prefix ?: "${bam.baseName}"
"""
touch ${prefix}.flagstat

Expand Down