Skip to content

Commit

Permalink
Merge branch 'TEMPLATE' into rename_pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Oct 6, 2023
2 parents cdc2ae3 + 429784b commit 3e29e21
Show file tree
Hide file tree
Showing 16 changed files with 99 additions and 105 deletions.
33 changes: 22 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,53 @@ body:
- [nf-core website: troubleshooting](https://nf-co.re/usage/troubleshooting)
- [JaneliaSciComp/easifish pipeline documentation](https://nf-co.re/easifish/usage)
- type: textarea
id: description
attributes:
label: Description of the bug
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: command_used
attributes:
label: Command used and terminal output
description: Steps to reproduce the behaviour. Please paste the command you used to launch the pipeline and the output from your terminal.
description: Steps to reproduce the behaviour. Please paste the command you used
to launch the pipeline and the output from your terminal.
render: console
placeholder: |
$ nextflow run ...
placeholder: "$ nextflow run ...
Some output where something broke
"
- type: textarea
id: files
attributes:
label: Relevant files
description: |
Please drag and drop the relevant files here. Create a `.zip` archive if the extension is not allowed.
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file in the directory where you launched the pipeline)_ as well as custom Nextflow configuration files.
description: "Please drag and drop the relevant files here. Create a `.zip` archive
if the extension is not allowed.
Your verbose log file `.nextflow.log` is often useful _(this is a hidden file
in the directory where you launched the pipeline)_ as well as custom Nextflow
configuration files.
"
- type: textarea
id: system
attributes:
label: System information
description: |
* Nextflow version _(eg. 23.04.0)_
description: "* Nextflow version _(eg. 23.04.0)_
* Hardware _(eg. HPC, Desktop, Cloud)_
* Executor _(eg. slurm, local, awsbatch)_
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud,
or Apptainer)_
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
* Version of JaneliaSciComp/easifish _(eg. 1.1, 1.5, 1.8.2)_
"
36 changes: 0 additions & 36 deletions .github/workflows/awsfulltest.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .github/workflows/awstest.yml

This file was deleted.

27 changes: 25 additions & 2 deletions .nf-core.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
lint:
files_exist:
- CODE_OF_CONDUCT.md
- assets/nf-core-janeliascicomp-easifish_logo_light.png
- docs/images/nf-core-janeliascicomp-easifish_logo_light.png
- docs/images/nf-core-janeliascicomp-easifish_logo_dark.png
- .github/ISSUE_TEMPLATE/config.yml
- .github/workflows/awstest.yml
- .github/workflows/awsfulltest.yml
- conf/igenomes.config
files_unchanged:
- CODE_OF_CONDUCT.md
- assets/nf-core-janeliascicomp-easifish_logo_light.png
- docs/images/nf-core-janeliascicomp-easifish_logo_light.png
- docs/images/nf-core-janeliascicomp-easifish_logo_dark.png
- .github/ISSUE_TEMPLATE/bug_report.yml
multiqc_config:
- report_comment
nextflow_config:
- manifest.name
- manifest.homePage
readme:
- nextflow_badge
repository_type: pipeline
template:
prefix: JaneliaSciComp
skip:
- github_badges
- igenomes
- github_badges
- igenomes
2 changes: 2 additions & 0 deletions CITATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

> Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].
> Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].
- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)

> Ewels P, Magnusson M, Lundin S, Käller M. MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics. 2016 Oct 1;32(19):3047-8. doi: 10.1093/bioinformatics/btw354. Epub 2016 Jun 16. PubMed PMID: 27312411; PubMed Central PMCID: PMC5039924.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ If you use `JaneliaSciComp/easifish` for your analysis, please cite the EASI-FIS
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.

You can cite the `nf-core` publication as follows:
This pipeline uses code and infrastructure developed and maintained by the [nf-core](https://nf-co.re) community, reused here under the [MIT license](https://github.com/nf-core/tools/blob/master/LICENSE).

> **The nf-core framework for community-curated bioinformatics pipelines.**
>
Expand Down
Binary file removed assets/nf-core-lightsheetrecon_logo_light.png
Binary file not shown.
2 changes: 0 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ The JaneliaSciComp/easifish documentation is split into the following pages:
- An overview of how the pipeline works, how to run it and a description of all of the different command-line flags.
- [Output](output.md)
- An overview of the different results produced by the pipeline and how to interpret them.

You can find a lot more documentation about installing, configuring and running nf-core pipelines on the website: [https://nf-co.re](https://nf-co.re)
Binary file removed docs/images/nf-core-lightsheetrecon_logo_dark.png
Binary file not shown.
Binary file removed docs/images/nf-core-lightsheetrecon_logo_light.png
Binary file not shown.
5 changes: 0 additions & 5 deletions lib/NfcoreTemplate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,6 @@ class NfcoreTemplate {
String.format(
"""\n
${dashedLine(monochrome_logs)}
${colors.green},--.${colors.black}/${colors.green},-.${colors.reset}
${colors.blue} ___ __ __ __ ___ ${colors.green}/,-._.--~\'${colors.reset}
${colors.blue} |\\ | |__ __ / ` / \\ |__) |__ ${colors.yellow}} {${colors.reset}
${colors.blue} | \\| | \\__, \\__/ | \\ |___ ${colors.green}\\`-._,-`-,${colors.reset}
${colors.green}`._,._,\'${colors.reset}
${colors.purple} ${workflow.manifest.name} ${workflow_version}${colors.reset}
${dashedLine(monochrome_logs)}
""".stripIndent()
Expand Down
48 changes: 48 additions & 0 deletions lib/WorkflowEASIFISH.groovy
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
//
<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
// This file holds several functions specific to the workflow/easifish.nf in the JaneliaSciComp/easifish pipeline
========
// This file holds several functions specific to the workflow/janeliascicomp-easifish.nf in the JaneliaSciComp/easifish pipeline
>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy
//

import nextflow.Nextflow
import groovy.text.SimpleTemplateEngine

<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
class WorkflowEASIFISH {
========
class WorkflowJaneliascicomp-easifish {
>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy

//
// Check and validate parameters
//
public static void initialise(params, log) {

<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
========

if (!params.fasta) {
Nextflow.error "Genome fasta file not specified with e.g. '--fasta genome.fa' or via a detectable config file."
}
>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy
}

//
Expand Down Expand Up @@ -46,9 +61,19 @@ class WorkflowEASIFISH {
//

public static String toolCitationText(params) {
<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
def citation_text = [
"Tools used in the workflow included:",
"stitching-spark (https://github.com/saalfeldlab/stitching-spark),",
========

// TODO nf-core: Optionally add in-text citation tools to this list.
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "Tool (Foo et al. 2023)" : "",
// Uncomment function in methodsDescriptionText to render in MultiQC report
def citation_text = [
"Tools used in the workflow included:",
"FastQC (Andrews 2010),",
>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy
"MultiQC (Ewels et al. 2016)",
"."
].join(' ').trim()
Expand All @@ -57,7 +82,16 @@ class WorkflowEASIFISH {
}

public static String toolBibliographyText(params) {
<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
def reference_text = [
========

// TODO Optionally add bibliographic entries to this list.
// Can use ternary operators to dynamically construct based conditions, e.g. params["run_xyz"] ? "<li>Author (2023) Pub name, Journal, DOI</li>" : "",
// Uncomment function in methodsDescriptionText to render in MultiQC report
def reference_text = [
"<li>Andrews S, (2010) FastQC, URL: https://www.bioinformatics.babraham.ac.uk/projects/fastqc/).</li>",
>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy
"<li>Ewels, P., Magnusson, M., Lundin, S., & Käller, M. (2016). MultiQC: summarize analysis results for multiple tools and samples in a single report. Bioinformatics , 32(19), 3047–3048. doi: /10.1093/bioinformatics/btw354</li>"
].join(' ').trim()

Expand All @@ -75,15 +109,26 @@ class WorkflowEASIFISH {
meta["nodoi_text"] = meta.manifest_map.doi ? "": "<li>If available, make sure to update the text to include the Zenodo DOI of version of the pipeline used. </li>"

// Tool references
<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
meta["tool_citations"] = toolCitationText(params).replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
meta["tool_bibliography"] = toolBibliographyText(params)
========
meta["tool_citations"] = ""
meta["tool_bibliography"] = ""

// TODO Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!
//meta["tool_citations"] = toolCitationText(params).replaceAll(", \\.", ".").replaceAll("\\. \\.", ".").replaceAll(", \\.", ".")
//meta["tool_bibliography"] = toolBibliographyText(params)

>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy

def methods_text = mqc_methods_yaml.text

def engine = new SimpleTemplateEngine()
def description_html = engine.createTemplate(methods_text).make(meta)

return description_html
<<<<<<<< HEAD:lib/WorkflowEASIFISH.groovy
}

//
Expand All @@ -100,3 +145,6 @@ class WorkflowEASIFISH {
}
}
}
========
}}
>>>>>>>> TEMPLATE:lib/WorkflowJaneliascicomp-easifish.groovy
11 changes: 0 additions & 11 deletions lib/WorkflowMain.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,4 @@ class WorkflowMain {
Nextflow.error("Please provide an outdir to the pipeline e.g. '--outdir ./output'")
}
}
//
// Get attribute from genome config file e.g. fasta
//
public static Object getGenomeAttribute(params, attribute) {
if (params.genomes && params.genome && params.genomes.containsKey(params.genome)) {
if (params.genomes[ params.genome ].containsKey(attribute)) {
return params.genomes[ params.genome ][ attribute ]
}
}
return null
}
}
2 changes: 0 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
JaneliaSciComp/easifish
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Github : https://github.com/JaneliaSciComp/easifish
Website: https://nf-co.re/easifish
Slack : https://nfcore.slack.com/channels/easifish
----------------------------------------------------------------------------------------
*/

Expand Down
1 change: 0 additions & 1 deletion modules/nf-core/custom/dumpsoftwareversions/templates/dumpsoftwareversions.py
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"mimetype": "text/csv",
"pattern": "^\\S+\\.csv$",
"description": "Path to comma-separated file containing information about the samples in the experiment.",
"help_text": "You will need to create a design file with information about the samples in your experiment before running the pipeline. Use this parameter to specify its location. It has to be a comma-separated file with 3 columns, and a header row. See [usage docs](https://nf-co.re/easifish/usage#samplesheet-input).",
"help_text": "You will need to create a design file with information about the samples in your experiment before running the pipeline. Use this parameter to specify its location. It has to be a comma-separated file with 3 columns, and a header row.",
"fa_icon": "fas fa-file-csv"
},
"indir": {
Expand Down

0 comments on commit 3e29e21

Please sign in to comment.