Skip to content

Commit e1bbfac

Browse files
committed
Changelog version number. Tidy up template summary logs
1 parent 9571c6e commit e1bbfac

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# nf-core/tools: Changelog
22

3-
## v1.5dev
3+
## [v1.5](https://github.com/nf-core/tools/releases/tag/1.5) - 2019-03-13 Iron Shark
44

55
#### Template pipeline
66
* Dropped Singularity file

nf_core/pipeline-template/{{cookiecutter.name_noslash}}/main.nf

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -124,36 +124,28 @@ if(params.readPaths){
124124
// Header log info
125125
log.info nfcoreHeader()
126126
def summary = [:]
127-
summary['Pipeline Name'] = '{{ cookiecutter.name }}'
128-
summary['Pipeline Version'] = workflow.manifest.version
129127
summary['Run Name'] = custom_runName ?: workflow.runName
130128
// TODO nf-core: Report custom parameters here
131129
summary['Reads'] = params.reads
132130
summary['Fasta Ref'] = params.fasta
133131
summary['Data Type'] = params.singleEnd ? 'Single-End' : 'Paired-End'
134-
summary['Max Memory'] = params.max_memory
135-
summary['Max CPUs'] = params.max_cpus
136-
summary['Max Time'] = params.max_time
137-
summary['Output Dir'] = params.outdir
138-
summary['Working Dir'] = workflow.workDir
139-
summary['Container Engine'] = workflow.containerEngine
140-
if(workflow.containerEngine) summary['Container'] = workflow.container
141-
summary['Current Home'] = "$HOME"
142-
summary['Current User'] = "$USER"
143-
summary['Current Path'] = "$PWD"
144-
summary['Working Dir'] = workflow.workDir
145-
summary['Output Dir'] = params.outdir
146-
summary['Script Dir'] = workflow.projectDir
147-
summary['Config'] = workflow.profile
132+
summary['Max Resources'] = "$params.max_memory memory, $params.max_cpus cpus, $params.max_time time per job"
133+
if(workflow.containerEngine) summary['Container'] = "$workflow.containerEngine - $workflow.container"
134+
summary['Output dir'] = params.outdir
135+
summary['Launch dir'] = workflow.launchDir
136+
summary['Working dir'] = workflow.workDir
137+
summary['Script dir'] = workflow.projectDir
138+
summary['User'] = workflow.userName
139+
if(workflow.profile == 'awsbatch'){
140+
summary['AWS Region'] = params.awsregion
141+
summary['AWS Queue'] = params.awsqueue
142+
}
143+
summary['Config Profile'] = workflow.profile
148144
if(params.config_profile_description) summary['Config Description'] = params.config_profile_description
149145
if(params.config_profile_contact) summary['Config Contact'] = params.config_profile_contact
150146
if(params.config_profile_url) summary['Config URL'] = params.config_profile_url
151-
if(workflow.profile == 'awsbatch'){
152-
summary['AWS Region'] = params.awsregion
153-
summary['AWS Queue'] = params.awsqueue
154-
}
155147
if(params.email) {
156-
summary['E-mail Address'] = params.email
148+
summary['E-mail Address'] = params.email
157149
summary['MultiQC maxsize'] = params.maxMultiqcEmailFileSize
158150
}
159151
log.info summary.collect { k,v -> "${k.padRight(18)}: $v" }.join("\n")
@@ -162,7 +154,6 @@ log.info "\033[2m----------------------------------------------------\033[0m"
162154
// Check the hostnames against configured profiles
163155
checkHostname()
164156

165-
166157
def create_workflow_summary(summary) {
167158
def yaml_file = workDir.resolve('workflow_summary_mqc.yaml')
168159
yaml_file.text = """

0 commit comments

Comments
 (0)