Skip to content

Commit 9ac22ba

Browse files
authored
Merge pull request #601 from nf-core/dev
Release 2.6.0
2 parents 78b7514 + 55d72f4 commit 9ac22ba

File tree

122 files changed

+4904
-732
lines changed

Some content is hidden

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

122 files changed

+4904
-732
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ trim_trailing_whitespace = true
88
indent_size = 4
99
indent_style = space
1010

11-
[*.{md,yml,yaml,html,css,scss,js,cff}]
11+
[*.{md,yml,yaml,html,css,scss,js}]
1212
indent_size = 2
1313

1414
# These files are edited and tested upstream in nf-core/modules

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.config linguist-language=nextflow
22
*.nf.test linguist-language=nextflow
3+
tests/**/*nf.test.snap linguist-generated
34
modules/nf-core/** linguist-generated
45
subworkflows/nf-core/** linguist-generated

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ body:
4545
* Nextflow version _(eg. 22.10.1)_
4646
* Hardware _(eg. HPC, Desktop, Cloud)_
4747
* Executor _(eg. slurm, local, awsbatch)_
48-
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
48+
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
4949
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
5050
* Version of nf-core/ampliseq _(eg. 1.1, 1.5, 1.8.2)_

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/ampl
1515

1616
- [ ] This comment contains a description of changes (with reason).
1717
- [ ] If you've fixed a bug or added code that should be tested, add tests!
18-
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/ampliseq/tree/master/.github/CONTRIBUTING.md)- [ ] If necessary, also make a PR on the nf-core/ampliseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
18+
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/ampliseq/tree/master/.github/CONTRIBUTING.md)
19+
- [ ] If necessary, also make a PR on the nf-core/ampliseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
1920
- [ ] Make sure your code lints (`nf-core lint`).
2021
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
2122
- [ ] Usage Documentation in `docs/usage.md` is updated.

.github/workflows/awsfulltest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Launch workflow via tower
17-
uses: nf-core/tower-action@v3
17+
uses: seqeralabs/action-tower-launch@v1
1818
with:
1919
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
2020
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}

.github/workflows/awstest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
# Launch workflow using Tower CLI tool action
1414
- name: Launch workflow via tower
15-
uses: nf-core/tower-action@v3
15+
uses: seqeralabs/action-tower-launch@v1
1616
with:
1717
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
1818
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}

.github/workflows/branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Check PRs
1414
if: github.repository == 'nf-core/ampliseq'
1515
run: |
16-
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/ampliseq ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
16+
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/ampliseq ]] && [[ $GITHUB_HEAD_REF == "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
1717
1818
# If the above check failed, post a comment on the PR explaining the failure
1919
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets

.github/workflows/ci.yml

Lines changed: 73 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,106 @@
1-
name: nf-core CI
21
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
2+
name: nf-core CI
33
on:
44
push:
55
branches:
6-
- dev
6+
- "dev"
77
pull_request:
8+
branches:
9+
- "dev"
10+
- "master"
811
release:
9-
types: [published]
12+
types:
13+
- "published"
1014

1115
env:
1216
NXF_ANSI_LOG: false
17+
NFTEST_VER: "0.7.3"
1318

1419
concurrency:
15-
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1621
cancel-in-progress: true
1722

1823
jobs:
24+
define_nxf_versions:
25+
name: Choose nextflow versions to test against depending on target branch
26+
runs-on: ubuntu-latest
27+
outputs:
28+
matrix: ${{ steps.nxf_versions.outputs.matrix }}
29+
steps:
30+
- id: nxf_versions
31+
run: |
32+
if [[ "${{ github.event_name }}" == "pull_request" && "${{ github.base_ref }}" == "dev" && "${{ matrix.NXF_VER }}" != "latest-everything" ]]; then
33+
echo matrix='["latest-everything"]' | tee -a $GITHUB_OUTPUT
34+
else
35+
echo matrix='["latest-everything", "22.10.1"]' | tee -a $GITHUB_OUTPUT
36+
fi
37+
1938
test:
20-
name: Run pipeline with test data
21-
# Only run on push if this is the nf-core dev branch (merged PRs)
22-
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/ampliseq') }}"
39+
name: nf-test
40+
needs: define_nxf_versions
2341
runs-on: ubuntu-latest
2442
strategy:
43+
fail-fast: false
2544
matrix:
26-
NXF_VER:
27-
- "22.10.1"
28-
- "latest-everything"
45+
NXF_VER: ${{ fromJson(needs.define_nxf_versions.outputs.matrix) }}
46+
tags:
47+
- "test"
48+
- "test_single"
49+
- "test_fasta"
50+
- "test_multi"
51+
- "test_reftaxcustom"
52+
- "test_doubleprimers"
53+
- "test_iontorrent"
54+
- "test_novaseq"
55+
- "test_pacbio_its"
56+
- "test_sintax"
57+
- "test_pplace"
58+
profile:
59+
- "docker"
60+
2961
steps:
3062
- name: Check out pipeline code
3163
uses: actions/checkout@v3
3264

65+
- name: Check out test data
66+
uses: actions/checkout@v3
67+
with:
68+
repository: nf-core/test-datasets
69+
ref: ampliseq
70+
path: test-datasets/
71+
fetch-depth: 1
72+
73+
- name: Replace remote paths in samplesheets
74+
run: |
75+
for f in ${{ github.workspace }}/test-datasets/samplesheets/*.tsv; do
76+
sed -i "s=https://github.com/nf-core/test-datasets/raw/ampliseq/testdata/=${{ github.workspace }}/test-datasets/=g" $f
77+
echo "========== $f ============"
78+
cat $f
79+
echo "========================================"
80+
done;
81+
3382
- name: Install Nextflow
3483
uses: nf-core/setup-nextflow@v1
3584
with:
3685
version: "${{ matrix.NXF_VER }}"
3786

38-
- name: Run pipeline with test data
87+
- name: Install nf-test
3988
run: |
40-
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
89+
wget -qO- https://code.askimed.com/install/nf-test | bash -s $NFTEST_VER
90+
sudo mv nf-test /usr/local/bin/
4191
42-
profiles:
43-
name: Run workflow profile
44-
# Only run on push if this is the nf-core dev branch (merged PRs)
45-
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/ampliseq') }}
46-
runs-on: ubuntu-latest
47-
strategy:
48-
matrix:
49-
# Run remaining test profiles with minimum nextflow version
50-
profile:
51-
[
52-
test_multi,
53-
test_pacbio_its,
54-
test_doubleprimers,
55-
test_iontorrent,
56-
test_single,
57-
test_fasta,
58-
test_reftaxcustom,
59-
test_novaseq,
60-
]
61-
steps:
62-
- name: Check out pipeline code
63-
uses: actions/checkout@v2
64-
65-
- name: Install Nextflow
92+
- name: Run nf-test
6693
run: |
67-
wget -qO- get.nextflow.io | bash
68-
sudo mv nextflow /usr/local/bin/
94+
nf-test test --tag ${{ matrix.tags }} --profile ${{ matrix.tags }},${{ matrix.profile }} --junitxml=test.xml
6995
70-
- name: Run pipeline with ${{ matrix.profile }} test profile
96+
- name: Output log on failure
97+
if: failure()
7198
run: |
72-
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.profile }},docker --outdir ./results
99+
sudo apt install bat > /dev/null
100+
batcat --decorations=always --color=always ${{ github.workspace }}/.nf-test/tests/*/output/pipeline_info/software_versions.yml
73101
74-
#
102+
- name: Publish Test Report
103+
uses: mikepenz/action-junit-report@v3
104+
if: always() # always run even if the previous step fails
105+
with:
106+
report_paths: "*.xml"

.github/workflows/clean-up.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Close user-tagged issues and PRs"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * 0" # Once a week
5+
6+
jobs:
7+
clean-up:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v7
14+
with:
15+
stale-issue-message: "This issue has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment otherwise this issue will be closed in 20 days."
16+
stale-pr-message: "This PR has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor. Remove stale label or add a comment if it is still useful."
17+
close-issue-message: "This issue was closed because it has been tagged as awaiting-changes or awaiting-feedback by an nf-core contributor and then staled for 20 days with no activity."
18+
days-before-stale: 30
19+
days-before-close: 20
20+
days-before-pr-close: -1
21+
any-of-labels: "awaiting-changes,awaiting-feedback"
22+
exempt-issue-labels: "WIP"
23+
exempt-pr-labels: "WIP"
24+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878

7979
- uses: actions/setup-python@v4
8080
with:
81-
python-version: "3.7"
81+
python-version: "3.8"
8282
architecture: "x64"
8383

8484
- name: Install dependencies

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ testing*
1212
.screenrc
1313
ampliseq.Rproj
1414
results_test/*
15+
.nf-test/
16+
nf-test

.nf-core.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
repository_type: pipeline
2-
32
lint:
3+
files_unchanged:
4+
- .gitattributes
45
files_exist:
56
- conf/igenomes.config
7+
actions_ci: False

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-prettier
3+
rev: "v2.7.1"
4+
hooks:
5+
- id: prettier

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,40 @@
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+
## nf-core/ampliseq version 2.6.0 - 2023-06-27
7+
8+
### `Added`
9+
10+
- [#580](https://github.com/nf-core/ampliseq/pull/580) - Add NF-TEST pipeline end-to-end tests for existing CI tests
11+
- [#591](https://github.com/nf-core/ampliseq/pull/591) - New version of the Unite taxonomy databases: 9.0
12+
- [#596](https://github.com/nf-core/ampliseq/pull/596) - New version of the PR2 taxonomy database: 5.0.0, only available with DADA2 (`--dada_ref_taxonomy`)
13+
- [#564](https://github.com/nf-core/ampliseq/pull/564),[#567](https://github.com/nf-core/ampliseq/pull/567),[#582](https://github.com/nf-core/ampliseq/pull/582) - Added phylogenetic placement
14+
- [#577](https://github.com/nf-core/ampliseq/pull/577) - Added SINTAX for taxonomic classification
15+
- [#575](https://github.com/nf-core/ampliseq/pull/575), [#586](https://github.com/nf-core/ampliseq/pull/586) - Added filtering step for stop codons for ASVs that are of coding regions.
16+
- [#597](https://github.com/nf-core/ampliseq/pull/597) - Samples with less reads than specified with `--min_read_counts` (default: 1) stop the pipeline, previously the threshold was 1KB in size.
17+
18+
### `Changed`
19+
20+
- [#580](https://github.com/nf-core/ampliseq/pull/580) - GitHub Actions CI - pull_request to `dev` tests with NXF_VER `latest-everything` & pull_request to `master` tests with NXF_VER `22.10.1` & `latest-everything`
21+
- [#563](https://github.com/nf-core/ampliseq/pull/563) - Renamed DADA2 taxonomic classification files to include the chosen reference taxonomy abbreviation.
22+
- [#567](https://github.com/nf-core/ampliseq/pull/567) - Renamed `--dada_tax_agglom_min` and `--qiime_tax_agglom_min` to `--tax_agglom_min` and `--dada_tax_agglom_max` and `--qiime_tax_agglom_max` to `--tax_agglom_max`
23+
- [#598](https://github.com/nf-core/ampliseq/pull/598) - Updated Workflow figure with SINTAX and phylogenetic placement
24+
- [#599](https://github.com/nf-core/ampliseq/pull/599) - For exact species assignment (DADA2's addSpecies) PR2 taxonomy database (e.g. `--dada_ref_taxonomy pr2`) now excludes any taxa that end with " sp.".
25+
26+
### `Fixed`
27+
28+
- [#553](https://github.com/nf-core/ampliseq/pull/553) - Handle empty barrnap results files
29+
- [#554](https://github.com/nf-core/ampliseq/pull/554) - Accept taxonomy strings that contain `#`,`'`
30+
- [#569](https://github.com/nf-core/ampliseq/pull/569) - Make header of overall_summary.tsv consistent between input data types
31+
- [#573](https://github.com/nf-core/ampliseq/pull/573) - Avoid parser error for single-end data when an empty read file is detected
32+
- [#578](https://github.com/nf-core/ampliseq/pull/578) - Template update for nf-core/tools version 2.8, including changing `System.exit(1)` to `Nextflow.error()`
33+
- [#594](https://github.com/nf-core/ampliseq/pull/594) - Update metadata documentation
34+
- [#595](https://github.com/nf-core/ampliseq/pull/595) - Closing gaps in rarefaction depth for diversity calculations (`mindepth` in QIIME2_DIVERSITY_CORE)
35+
36+
### `Dependencies`
37+
38+
### `Removed`
39+
640
## nf-core/ampliseq version 2.5.0 - 2023-03-02
741

842
### `Added`

CITATIONS.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,28 @@
6767

6868
> Sundh J, Manoharan L, Iwaszkiewicz-Eggebrecht E, Miraldo A, Andersson A, Ronquist F. COI reference sequences from BOLD DB. doi: https://doi.org/10.17044/scilifelab.20514192.v2.
6969
70+
### Phylogenetic placement
71+
72+
- [nf-core/phyloplace](https://nf-co.re/phyloplace)
73+
74+
> Daniel Lundin. (2023). nf-core/phyloplace: First release (1.0.0). Zenodo. https://doi.org/10.5281/zenodo.7643948
75+
76+
- [HMMER](https://pubmed.ncbi.nlm.nih.gov/22039361/)
77+
78+
> Eddy, Sean R. “Accelerated Profile HMM Searches.” PLoS Comput Biol 7, no. 10 (October 20, 2011): e1002195. https://doi.org/10.1371/journal.pcbi.1002195.
79+
80+
- [MAFFT](https://pubmed.ncbi.nlm.nih.gov/12136088/)
81+
82+
> Katoh, Kazutaka, Kazuharu Misawa, Kei‐ichi Kuma, and Takashi Miyata. “MAFFT: A Novel Method for Rapid Multiple Sequence Alignment Based on Fast Fourier Transform.” Nucleic Acids Research 30, no. 14 (July 15, 2002): 3059–66. https://doi.org/10.1093/nar/gkf436.
83+
84+
- [EPA-NG](https://pubmed.ncbi.nlm.nih.gov/30165689/)
85+
86+
> Barbera, Pierre, Alexey M Kozlov, Lucas Czech, Benoit Morel, Diego Darriba, Tomáš Flouri, and Alexandros Stamatakis. “EPA-Ng: Massively Parallel Evolutionary Placement of Genetic Sequences.” Systematic Biology 68, no. 2 (March 1, 2019): 365–69. https://doi.org/10.1093/sysbio/syy054.
87+
88+
- [Gappa](https://pubmed.ncbi.nlm.nih.gov/32016344/)
89+
90+
> Czech, Lucas, Pierre Barbera, and Alexandros Stamatakis. “Genesis and Gappa: Processing, Analyzing and Visualizing Phylogenetic (Placement) Data.” Bioinformatics 36, no. 10 (May 1, 2020): 3263–65. https://doi.org/10.1093/bioinformatics/btaa070.
91+
7092
### Downstream analysis
7193

7294
- [QIIME2](https://pubmed.ncbi.nlm.nih.gov/31341288/)
@@ -111,7 +133,11 @@
111133
112134
- VSEARCH option usearch_global implements the [USEARCH](https://doi.org/10.1093/bioinformatics/btq461) algorithm
113135

114-
> R.C. Edgar. Search and clustering orders of magnitude faster than BLAST. Bioinformatics. 2010 26(19) 2460-2461
136+
> Edgar RC. Search and clustering orders of magnitude faster than BLAST. Bioinformatics. 2010 26(19) 2460-2461
137+
138+
- VSEARCH option sintax implements the [SINTAX](https://doi.org/10.1101/074161) algorithm
139+
140+
> Edgar RC. (2016) SINTAX: a simple non-Bayesian taxonomy classifier for 16S and ITS sequences, BioRxiv, 074161. Preprint.
115141
116142
### Summarizing software
117143

0 commit comments

Comments
 (0)