Merge branch 'new-ci-rules' into 'dev'

Implementing SN new CI rules

See merge request epi2melabs/workflow-containers/wf-isoforms!52
This commit is contained in:
Matt Parker 2022-05-26 09:33:45 +00:00
commit b7efda8e16
3 changed files with 23 additions and 9 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 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). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [unreleased]
### Changed
- Better help text on cli
## [v0.1.2] ## [v0.1.2]
### Added ### Added
- direct_rna option - direct_rna option
@ -26,5 +30,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- First release - First release
- Initial port of Snakemake WF from https://github.com/nanoporetech/pipeline-nanopore-ref-isoforms - Initial port of Snakemake WF from https://github.com/nanoporetech/pipeline-nanopore-ref-isoforms

View File

@ -1,16 +1,20 @@
// This file is based on the nf-core/tools pipeline-template.
// Changes to this file must be propagated via wf-template.
class WorkflowMain { class WorkflowMain {
// Citation string for pipeline // Citation string for pipeline
public static String citation(workflow) { public static String citation(workflow) {
return "If you use wf-template for your analysis please cite:\n\n" + return "If you use ${workflow.manifest.name} for your analysis please cite:\n\n" +
"* The nf-core framework\n" + "* The nf-core framework\n" +
" https://doi.org/10.1038/s41587-020-0439-x\n\n" " https://doi.org/10.1038/s41587-020-0439-x\n\n"
} }
// Print help to screen // Print help to screen
public static String help(workflow, params, log) { public static String help(workflow, params, log) {
def command = "nextflow run epi2me-labs/wf-template --fastq <input folder> -profile docker" String line_sep = ' \\ \n\t'
def command_example = params.wf.example_cmd.join(line_sep)
def command = 'nextflow run ' + workflow.manifest.name + line_sep + command_example
def help_string = '' def help_string = ''
help_string += NfcoreSchema.paramsHelp(workflow, params, command) help_string += NfcoreSchema.paramsHelp(workflow, params, command)
help_string += '\n' + citation(workflow) + '\n' help_string += '\n' + citation(workflow) + '\n'

View File

@ -118,6 +118,14 @@ params {
// Minimum probability for i consecutive minimizers to be different between read and representative: // Minimum probability for i consecutive minimizers to be different between read and representative:
min_prob_no_hits = 0.1 min_prob_no_hits = 0.1
wf {
example_cmd = [
"--fastq test_data/fastq",
"--ref_genome test_data/SIRV_150601a.fasta",
"--ref_annotation test_data/SIRV_isofroms.gtf"
]
}
} }