Skip to content

Commit

Permalink
Merge pull request #45 from genomic-medicine-sweden/gms_references
Browse files Browse the repository at this point in the history
changing some references from nf-core to gms
  • Loading branch information
jemten authored Oct 30, 2023
2 parents 2ecb56f + 0132a56 commit ac85767
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 22 deletions.
7 changes: 7 additions & 0 deletions .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ lint:
- .github/ISSUE_TEMPLATE/bug_report.yml
- .github/PULL_REQUEST_TEMPLATE.md
- .github/workflows/linting.yml
- .github/workflows/branch.yml
- .github/ISSUE_TEMPLATE/feature_request.yml
- assets/email_template.html
- assets/email_template.txt
- lib/NfcoreTemplate.groovy
- docs/README.md
nextflow_config:
- manifest.name
- manifest.homePage
multiqc_config: false
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# nf-core/tomte: Changelog
# genomic-medicine-seden/tomte: Changelog

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v1.0dev - [date]

Initial release of nf-core/tomte, created with the [nf-core](https://nf-co.re/) template.
Initial release of genomic-medicine-sweden/tomte, created with the [nf-core](https://nf-co.re/) template.

### `Added`

Expand Down
2 changes: 1 addition & 1 deletion CITATIONS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nf-core/tomte: Citations
# genomic-medicine-sweden/tomte: Citations

## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/)

Expand Down
2 changes: 1 addition & 1 deletion assets/adaptivecard.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"size": "Large",
"weight": "Bolder",
"color": "<% if (success) { %>Good<% } else { %>Attention<%} %>",
"text": "nf-core/tomte v${version} - ${runName}",
"text": "genomic-medicine-sweden/tomte v${version} - ${runName}",
"wrap": true
},
{
Expand Down
11 changes: 6 additions & 5 deletions assets/email_template.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
----------------------------------------------------
,--./,-.
___ __ __ __ ___ /,-._.--~\\
|\\ | |__ __ / ` / \\ |__) |__ } {
| \\| | \\__, \\__/ | \\ |___ \\`-._,-`-,
`._,._,'
_____ __ __ _____ _ _
/ ____| \\/ |/ ____| | | | |
| | __| \\ / | (___ ______ | |_ ___ _ __ ___ | |_ ___
| | |_ | |\\/| |\\___ \\ |______| | __/ _ \\| '_ ` _ \\| __/ _ \
| |__| | | | |____) | | || (_) | | | | | | || __/
\\_____|_| |_|_____/ \\__\\___/|_| |_| |_|\\__\\___|
tomte v${version}
----------------------------------------------------
Run Name: $runName
Expand Down
4 changes: 2 additions & 2 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
report_comment: >
This report has been generated by the <a href="https://github.com/nf-core/tomte/releases/tag/dev" target="_blank">nf-core/tomte</a>
This report has been generated by the <a href="https://github.com/genomic-medicine-sweden/tomte/releases/tag/dev" target="_blank">genomic-medicine-sweden/tomte</a>
analysis pipeline. For information about how to interpret these results, please see the
<a href="https://nf-co.re/tomte/dev/docs/output" target="_blank">documentation</a>.
<a href="https://github.com/genomic-medicine-sweden/tomte/blob/master/docs/output.md" target="_blank">documentation</a>.
report_section_order:
"nf-core-tomte-methods-description":
order: -1000
Expand Down
4 changes: 2 additions & 2 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/nf-core/tomte/master/assets/schema_input.json",
"title": "nf-core/tomte pipeline - params.input schema",
"$id": "https://raw.githubusercontent.com/genomic-medicine-sweden/tomte/master/assets/schema_input.json",
"title": "genomic-medicine-sweden/tomte pipeline - params.input schema",
"description": "Schema for the file provided with params.input",
"type": "array",
"items": {
Expand Down
2 changes: 1 addition & 1 deletion assets/slackreport.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"fallback": "Plain-text summary of the attachment.",
"color": "<% if (success) { %>good<% } else { %>danger<%} %>",
"author_name": "nf-core/tomte v${version} - ${runName}",
"author_name": "genomic-medicine-sweden/tomte v${version} - ${runName}",
"author_icon": "https://www.nextflow.io/docs/latest/_static/favicon.ico",
"text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors<% } %>",
"fields": [
Expand Down
23 changes: 23 additions & 0 deletions lib/NfcoreTemplate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,27 @@ class NfcoreTemplate {
""".stripIndent()
)
}

//
// GMS tomte logo (WIP)
//
public static String gmsLogo(workflow, monochrome_logs) {
Map colors = logColours(monochrome_logs)
String workflow_version = NfcoreTemplate.version(workflow)
String.format(
"""\n
${dashedLine(monochrome_logs)}
${colors.blue} _____ __ __ _____ _ _${colors.reset}
${colors.blue} / ____| \\/ |/ ____| | | | |${colors.reset}
${colors.blue} | | __| \\ / | (___ ______ | |_ ___ _ __ ___ | |_ ___${colors.reset}
${colors.blue} | | |_ | |\\/| |\\___ \\ |______| | __/ _ \\| '_ ` _ \\| __/ _ \\${colors.reset}
${colors.blue} | |__| | | | |____) | | || (_) | | | | | | || __/${colors.reset}
${colors.blue} \\_____|_| |_|_____/ \\__\\___/|_| |_| |_|\\__\\___|${colors.reset}
${colors.purple} ${workflow.manifest.name} ${workflow_version}${colors.reset}
${dashedLine(monochrome_logs)}
""".stripIndent()
)
}

}
2 changes: 1 addition & 1 deletion lib/WorkflowMain.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// This file holds several functions specific to the main.nf workflow in the nf-core/tomte pipeline
// This file holds several functions specific to the main.nf workflow in the genomic-medicine-sweden/tomte pipeline
//

import nextflow.Nextflow
Expand Down
2 changes: 1 addition & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ include { validateParameters; paramsHelp } from 'plugin/nf-validation'

// Print help message if needed
if (params.help) {
def logo = NfcoreTemplate.logo(workflow, params.monochrome_logs)
def logo = NfcoreTemplate.gmsLogo(workflow, params.monochrome_logs)
def citation = '\n' + WorkflowMain.citation(workflow) + '\n'
def String command = "nextflow run ${workflow.manifest.name} --input samplesheet.csv --genome GRCh37 -profile docker"
log.info logo + paramsHelp(command) + citation + NfcoreTemplate.dashedLine(params.monochrome_logs)
Expand Down
2 changes: 1 addition & 1 deletion modules/local/samplesheet_check.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ process SAMPLESHEET_CHECK {
when:
task.ext.when == null || task.ext.when

script: // This script is bundled with the pipeline, in nf-core/tomte/bin/
script: // This script is bundled with the pipeline, originally from nf-core
"""
check_samplesheet.py \\
$samplesheet \\
Expand Down
7 changes: 3 additions & 4 deletions nextflow.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nf-core/tomte Nextflow config file
genomic-medicine-sweden/tomte Nextflow config file
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default config options for all compute environments
----------------------------------------------------------------------------------------
Expand All @@ -9,7 +9,6 @@
// Global default params, used in configs
params {

// TODO nf-core: Specify your pipeline's command line flags
// Input options
input = null
// References
Expand Down Expand Up @@ -247,9 +246,9 @@ dag {
}

manifest {
name = 'nf-core/tomte'
name = 'genomic-medicine-sweden/tomte'
author = """Clinical Genomics Stockholm"""
homePage = 'https://github.com/nf-core/tomte'
homePage = 'https://github.com/genomic-medicine-sweden/tomte'
description = """Pipeline to analyse RNAseq from raredisease patients"""
mainScript = 'main.nf'
nextflowVersion = '!>=23.04.0'
Expand Down
2 changes: 1 addition & 1 deletion workflows/tomte.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

include { paramsSummaryLog; paramsSummaryMap } from 'plugin/nf-validation'

def logo = NfcoreTemplate.logo(workflow, params.monochrome_logs)
def logo = NfcoreTemplate.gmsLogo(workflow, params.monochrome_logs)
def citation = '\n' + WorkflowMain.citation(workflow) + '\n'
def summary_params = paramsSummaryMap(workflow)

Expand Down

0 comments on commit ac85767

Please sign in to comment.