Skip to content

Commit 705f18e

Browse files
Merge pull request #5 from nf-core/dev
Release of nf-core/demo
2 parents a645f20 + 2ce1fb7 commit 705f18e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+601
-265
lines changed

.editorconfig

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ indent_style = unset
2828
[/assets/email*]
2929
indent_size = unset
3030

31-
# ignore Readme
32-
[README.md]
33-
indent_style = unset
34-
35-
# ignore python
31+
# ignore python and markdown
3632
[*.{py,md}]
3733
indent_style = unset

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/demo
1818
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/demo/tree/master/.github/CONTRIBUTING.md)
1919
- [ ] If necessary, also make a PR on the nf-core/demo _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
2020
- [ ] Make sure your code lints (`nf-core lint`).
21-
- [ ] Ensure the test suite passes (`nf-test test main.nf.test -profile test,docker`).
21+
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
2222
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
2323
- [ ] Usage Documentation in `docs/usage.md` is updated.
2424
- [ ] Output Documentation in `docs/output.md` is updated.

.github/workflows/awsfulltest.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
types: [published]
99
workflow_dispatch:
1010
jobs:
11-
run-tower:
11+
run-platform:
1212
name: Run AWS full tests
1313
if: github.repository == 'nf-core/demo'
1414
runs-on: ubuntu-latest
1515
steps:
16-
- name: Launch workflow via tower
16+
- name: Launch workflow via Seqera Platform
1717
uses: seqeralabs/action-tower-launch@v2
1818
# TODO nf-core: You can customise AWS full pipeline tests as required
1919
# Add full size test data (but still relatively small datasets for few samples)
@@ -33,7 +33,7 @@ jobs:
3333

3434
- uses: actions/upload-artifact@v4
3535
with:
36-
name: Tower debug log file
36+
name: Seqera Platform debug log file
3737
path: |
38-
tower_action_*.log
39-
tower_action_*.json
38+
seqera_platform_action_*.log
39+
seqera_platform_action_*.json

.github/workflows/awstest.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ name: nf-core AWS test
55
on:
66
workflow_dispatch:
77
jobs:
8-
run-tower:
8+
run-platform:
99
name: Run AWS tests
1010
if: github.repository == 'nf-core/demo'
1111
runs-on: ubuntu-latest
1212
steps:
13-
# Launch workflow using Tower CLI tool action
14-
- name: Launch workflow via tower
13+
# Launch workflow using Seqera Platform CLI tool action
14+
- name: Launch workflow via Seqera Platform
1515
uses: seqeralabs/action-tower-launch@v2
1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
@@ -27,7 +27,7 @@ jobs:
2727

2828
- uses: actions/upload-artifact@v4
2929
with:
30-
name: Tower debug log file
30+
name: Seqera Platform debug log file
3131
path: |
32-
tower_action_*.log
33-
tower_action_*.json
32+
seqera_platform_action_*.log
33+
seqera_platform_action_*.json

.github/workflows/ci.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,16 @@ jobs:
2828
- "latest-everything"
2929
steps:
3030
- name: Check out pipeline code
31-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
31+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3232

3333
- name: Install Nextflow
34-
uses: nf-core/setup-nextflow@v1
34+
uses: nf-core/setup-nextflow@v2
3535
with:
3636
version: "${{ matrix.NXF_VER }}"
3737

3838
- name: Disk space cleanup
3939
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
4040

4141
- name: Run pipeline with test data
42-
# TODO nf-core: You can customise CI pipeline run tests as required
43-
# For example: adding multiple test runs with different parameters
44-
# Remember that you can parallelise this by using strategy.matrix
4542
run: |
4643
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results

.github/workflows/download_pipeline.yml

+18-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
pull_request:
1515
types:
1616
- opened
17+
- edited
18+
- synchronize
1719
branches:
1820
- master
1921
pull_request_target:
@@ -28,11 +30,14 @@ jobs:
2830
runs-on: ubuntu-latest
2931
steps:
3032
- name: Install Nextflow
31-
uses: nf-core/setup-nextflow@v1
33+
uses: nf-core/setup-nextflow@v2
3234

33-
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
35+
- name: Disk space cleanup
36+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
37+
38+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
3439
with:
35-
python-version: "3.11"
40+
python-version: "3.12"
3641
architecture: "x64"
3742
- uses: eWaterCycle/setup-singularity@931d4e31109e875b13309ae1d07c70ca8fbc8537 # v7
3843
with:
@@ -65,8 +70,17 @@ jobs:
6570
- name: Inspect download
6671
run: tree ./${{ env.REPOTITLE_LOWERCASE }}
6772

68-
- name: Run the downloaded pipeline
73+
- name: Run the downloaded pipeline (stub)
74+
id: stub_run_pipeline
75+
continue-on-error: true
6976
env:
7077
NXF_SINGULARITY_CACHEDIR: ./
7178
NXF_SINGULARITY_HOME_MOUNT: true
7279
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
80+
- name: Run the downloaded pipeline (stub run not supported)
81+
id: run_pipeline
82+
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
83+
env:
84+
NXF_SINGULARITY_CACHEDIR: ./
85+
NXF_SINGULARITY_HOME_MOUNT: true
86+
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results

.github/workflows/fix-linting.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
# Use the @nf-core-bot token to check out so we can push later
16-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
16+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
1717
with:
1818
token: ${{ secrets.nf_core_bot_auth_token }}
1919

@@ -32,9 +32,9 @@ jobs:
3232
GITHUB_TOKEN: ${{ secrets.nf_core_bot_auth_token }}
3333

3434
# Install and run pre-commit
35-
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
35+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
3636
with:
37-
python-version: 3.11
37+
python-version: "3.12"
3838

3939
- name: Install pre-commit
4040
run: pip install pre-commit

.github/workflows/linting.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ jobs:
1414
pre-commit:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
17+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
1818

19-
- name: Set up Python 3.11
20-
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
19+
- name: Set up Python 3.12
20+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
2121
with:
22-
python-version: 3.11
23-
cache: "pip"
22+
python-version: "3.12"
2423

2524
- name: Install pre-commit
2625
run: pip install pre-commit
@@ -32,14 +31,14 @@ jobs:
3231
runs-on: ubuntu-latest
3332
steps:
3433
- name: Check out pipeline code
35-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
34+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3635

3736
- name: Install Nextflow
38-
uses: nf-core/setup-nextflow@v1
37+
uses: nf-core/setup-nextflow@v2
3938

40-
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
39+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
4140
with:
42-
python-version: "3.11"
41+
python-version: "3.12"
4342
architecture: "x64"
4443

4544
- name: Install dependencies
@@ -60,7 +59,7 @@ jobs:
6059

6160
- name: Upload linting log file artifact
6261
if: ${{ always() }}
63-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
62+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4
6463
with:
6564
name: linting-logs
6665
path: |

.github/workflows/linting_comment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Download lint results
14-
uses: dawidd6/action-download-artifact@f6b0bace624032e30a85a8fd9c1a7f8f611f5737 # v3
14+
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3
1515
with:
1616
workflow: linting.yml
1717
workflow_conclusion: completed

.github/workflows/release-announcements.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: get topics and convert to hashtags
1313
id: get_topics
1414
run: |
15-
curl -s https://nf-co.re/pipelines.json | jq -r '.remote_workflows[] | select(.full_name == "${{ github.repository }}") | .topics[]' | awk '{print "#"$0}' | tr '\n' ' ' >> $GITHUB_OUTPUT
15+
echo "topics=$(curl -s https://nf-co.re/pipelines.json | jq -r '.remote_workflows[] | select(.full_name == "${{ github.repository }}") | .topics[]' | awk '{print "#"$0}' | tr '\n' ' ')" >> $GITHUB_OUTPUT
1616
1717
- uses: rzr/fediverse-action@master
1818
with:
@@ -25,13 +25,13 @@ jobs:
2525
2626
Please see the changelog: ${{ github.event.release.html_url }}
2727
28-
${{ steps.get_topics.outputs.GITHUB_OUTPUT }} #nfcore #openscience #nextflow #bioinformatics
28+
${{ steps.get_topics.outputs.topics }} #nfcore #openscience #nextflow #bioinformatics
2929
3030
send-tweet:
3131
runs-on: ubuntu-latest
3232

3333
steps:
34-
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
34+
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
3535
with:
3636
python-version: "3.10"
3737
- name: Install dependencies

.nf-core.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
repository_type: pipeline
2+
nf_core_version: "2.14.1"

.pre-commit-config.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ repos:
33
rev: "v3.1.0"
44
hooks:
55
- id: prettier
6+
additional_dependencies:
7+
- prettier@3.2.5
8+
69
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
710
rev: "2.7.3"
811
hooks:

CHANGELOG.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## v1.0dev - [date]
6+
## 1.0.0 2024-06-19
77

8-
Initial release of nf-core/demo, created with the [nf-core](https://nf-co.re/) template.
8+
### Credits
9+
10+
Special thanks to the following for their reviews and assistance:
11+
12+
- [Maxime Garcia](https://github.com/maxulysse)
13+
- [Friederike Hanssen](https://github.com/FriederikeHanssen)
914

1015
### `Added`
1116

12-
### `Fixed`
17+
- `nf-core/seqtk/trim` module
18+
- `skip_trim` parameter
1319

14-
### `Dependencies`
20+
## v1.0dev - 2024-05-5
1521

16-
### `Deprecated`
22+
Initial release of nf-core/demo, created with the [nf-core](https://nf-co.re/) template.

CITATIONS.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
> Andrews, S. (2010). FastQC: A Quality Control Tool for High Throughput Sequence Data [Online].
1616
17+
- [seqtk](https://github.com/lh3/seqtk)
18+
1719
- [MultiQC](https://pubmed.ncbi.nlm.nih.gov/27312411/)
1820

1921
> 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.

README.md

+12-27
Original file line numberDiff line numberDiff line change
@@ -13,52 +13,41 @@
1313
[![run with conda](http://img.shields.io/badge/run%20with-conda-3EB049?labelColor=000000&logo=anaconda)](https://docs.conda.io/en/latest/)
1414
[![run with docker](https://img.shields.io/badge/run%20with-docker-0db7ed?labelColor=000000&logo=docker)](https://www.docker.com/)
1515
[![run with singularity](https://img.shields.io/badge/run%20with-singularity-1d355c.svg?labelColor=000000)](https://sylabs.io/docs/)
16-
[![Launch on Seqera Platform](https://img.shields.io/badge/Launch%20%F0%9F%9A%80-Seqera%20Platform-%234256e7)](https://tower.nf/launch?pipeline=https://github.com/nf-core/demo)
16+
[![Launch on Seqera Platform](https://img.shields.io/badge/Launch%20%F0%9F%9A%80-Seqera%20Platform-%234256e7)](https://cloud.seqera.io/launch?pipeline=https://github.com/nf-core/demo)
1717

1818
[![Get help on Slack](http://img.shields.io/badge/slack-nf--core%20%23demo-4A154B?labelColor=000000&logo=slack)](https://nfcore.slack.com/channels/demo)[![Follow on Twitter](http://img.shields.io/badge/twitter-%40nf__core-1DA1F2?labelColor=000000&logo=twitter)](https://twitter.com/nf_core)[![Follow on Mastodon](https://img.shields.io/badge/mastodon-nf__core-6364ff?labelColor=FFFFFF&logo=mastodon)](https://mstdn.science/@nf_core)[![Watch on YouTube](http://img.shields.io/badge/youtube-nf--core-FF0000?labelColor=000000&logo=youtube)](https://www.youtube.com/c/nf-core)
1919

2020
## Introduction
2121

22-
**nf-core/demo** is a bioinformatics pipeline that ...
22+
**nf-core/demo** is a simple nf-core style bioinformatics pipeline for workshops and demonstrations. It was created using the nf-core template and is designed to run quickly using small test data files.
2323

24-
<!-- TODO nf-core:
25-
Complete this sentence with a 2-3 sentence summary of what types of data the pipeline ingests, a brief overview of the
26-
major pipeline sections and the types of output it produces. You're giving an overview to someone new
27-
to nf-core here, in 15-20 seconds. For an example, see https://github.com/nf-core/rnaseq/blob/master/README.md#introduction
28-
-->
24+
![nf-core/demo metro map](docs/images/nf-core-demo-subway.png)
2925

30-
<!-- TODO nf-core: Include a figure that guides the user through the major workflow steps. Many nf-core
31-
workflows use the "tube map" design for that. See https://nf-co.re/docs/contributing/design_guidelines#examples for examples. -->
32-
<!-- TODO nf-core: Fill in short bullet-pointed list of the default steps in the pipeline -->
33-
34-
1. Read QC ([`FastQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
35-
2. Present QC for raw reads ([`MultiQC`](http://multiqc.info/))
26+
1. Read QC ([`FASTQC`](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/))
27+
2. Adapter and quality trimming ([`SEQTK_TRIM`](https://github.com/lh3/seqtk))
28+
3. Present QC for raw reads ([`MULTIQC`](http://multiqc.info/))
3629

3730
## Usage
3831

3932
> [!NOTE]
4033
> If you are new to Nextflow and nf-core, please refer to [this page](https://nf-co.re/docs/usage/installation) on how to set-up Nextflow. Make sure to [test your setup](https://nf-co.re/docs/usage/introduction#how-to-run-a-pipeline) with `-profile test` before running the workflow on actual data.
4134
42-
<!-- TODO nf-core: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
43-
Explain what rows and columns represent. For instance (please edit as appropriate):
44-
4535
First, prepare a samplesheet with your input data that looks as follows:
4636

4737
`samplesheet.csv`:
4838

4939
```csv
5040
sample,fastq_1,fastq_2
51-
CONTROL_REP1,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gz
41+
SAMPLE1_PE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample1_R1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample1_R2.fastq.gz
42+
SAMPLE2_PE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample2_R1.fastq.gz,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample2_R2.fastq.gz
43+
SAMPLE3_SE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample1_R1.fastq.gz,
44+
SAMPLE3_SE,https://raw.githubusercontent.com/nf-core/test-datasets/viralrecon/illumina/amplicon/sample2_R1.fastq.gz,
5245
```
5346

5447
Each row represents a fastq file (single-end) or a pair of fastq files (paired end).
5548

56-
-->
57-
5849
Now, you can run the pipeline using:
5950

60-
<!-- TODO nf-core: update the following command to include all required parameters for a minimal example -->
61-
6251
```bash
6352
nextflow run nf-core/demo \
6453
-profile <docker/singularity/.../institute> \
@@ -80,11 +69,9 @@ For more details about the output files and reports, please refer to the
8069

8170
## Credits
8271

83-
nf-core/demo was originally written by Christopher Hakkaart.
84-
85-
We thank the following people for their extensive assistance in the development of this pipeline:
72+
nf-core/demo was originally written by Chris Hakkaart ([@christopher-hakkaart](https://github.com/christopher-hakkaart)).
8673

87-
<!-- TODO nf-core: If applicable, make list of people who have also contributed -->
74+
<!-- We thank the following people for their extensive assistance in the development of this pipeline: -->
8875

8976
## Contributions and Support
9077

@@ -97,8 +84,6 @@ For further information or help, don't hesitate to get in touch on the [Slack `#
9784
<!-- TODO nf-core: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. -->
9885
<!-- If you use nf-core/demo for your analysis, please cite it using the following doi: [10.5281/zenodo.XXXXXX](https://doi.org/10.5281/zenodo.XXXXXX) -->
9986

100-
<!-- TODO nf-core: Add bibliography of tools and data used in your pipeline -->
101-
10287
An extensive list of references for the tools used by the pipeline can be found in the [`CITATIONS.md`](CITATIONS.md) file.
10388

10489
You can cite the `nf-core` publication as follows:

assets/methods_description_template.yml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ description: "Suggested text and references to use when describing pipeline usag
33
section_name: "nf-core/demo Methods Description"
44
section_href: "https://github.com/nf-core/demo"
55
plot_type: "html"
6-
## TODO nf-core: Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
76
## You inject any metadata in the Nextflow '${workflow}' object
87
data: |
98
<h4>Methods</h4>

assets/multiqc_config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
report_comment: >
2-
This report has been generated by the <a href="https://github.com/nf-core/demo/tree/dev" target="_blank">nf-core/demo</a>
2+
This report has been generated by the <a href="https://github.com/nf-core/demo/releases/tag/1.0.0" target="_blank">nf-core/demo</a>
33
analysis pipeline. For information about how to interpret these results, please see the
4-
<a href="https://nf-co.re/demo/dev/docs/output" target="_blank">documentation</a>.
4+
<a href="https://nf-co.re/demo/1.0.0/docs/output" target="_blank">documentation</a>.
55
report_section_order:
66
"nf-core-demo-methods-description":
77
order: -1000

assets/nf-core-demo_logo_light.png

2 Bytes
Loading

0 commit comments

Comments
 (0)