Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev -> Master 2.4.0 #321

Merged
merged 73 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
0bb0760
Bump to v2.4.0dev
ewels Dec 17, 2022
e22401c
Merge pull request #292 from ewels/bump-v2.4.0dev
ewels Dec 17, 2022
02ae197
Template update for nf-core/tools version 2.7.2
nf-core-bot Dec 19, 2022
f3d8cd7
remove unused output folder
njspix Feb 14, 2023
375ae96
remove additional unused directory
njspix Feb 14, 2023
929b308
Merge pull request #298 from nf-core/issue_297
ewels Feb 16, 2023
9e53d94
Template update for nf-core/tools version 2.8
nf-core-bot Apr 28, 2023
bd49f91
Merge branch 'dev' into nf-core-template-merge-2.8
edmundmiller May 16, 2023
069b0f0
style: versions => ch_versions
edmundmiller May 16, 2023
842083e
chore: Add version update to CHANGELOG
edmundmiller May 16, 2023
500c0ff
chore: Run nf-core modules update
edmundmiller May 16, 2023
0629fd0
fixup! Merge branch 'dev' into nf-core-template-merge-2.8
edmundmiller May 16, 2023
f711463
Merge pull request #306 from nf-core/nf-core-template-merge-2.8
edmundmiller May 16, 2023
96385cd
bump-nf-tests-snapshots-2.8.0
sateeshperi May 16, 2023
ff457ea
update-ci-test-min-nxf-ver
sateeshperi May 16, 2023
e8fa8a9
update-ci-nf-test-path
sateeshperi May 16, 2023
4007189
update-ci-use-GITHUB_OUTPUT-nxf-ver
sateeshperi May 16, 2023
23eb11e
fix-nf-core-yml-lint-actions-ci-false
sateeshperi May 16, 2023
bf8255d
ci-fix-nxf-ver-output
sateeshperi May 16, 2023
bd8e4d2
revert-to-testing-multiple-nxf-vers
sateeshperi May 24, 2023
7cd0ae5
fix-trailing-whitespace
sateeshperi May 24, 2023
45349b2
update-snapshots
sateeshperi May 24, 2023
8739fb8
Update tests/pipeline/bismark/main.nf.test
sateeshperi May 24, 2023
f0e7697
CI-add-master-pull-request-tests
sateeshperi May 25, 2023
8e21898
fix-trailing-whitespace
sateeshperi May 25, 2023
5b7ffa3
CI-add-comment-pr-test-tap-results
sateeshperi May 25, 2023
3e45337
Merge pull request #310 from nf-core/fix/bump-nf-tests-2.8.0
sateeshperi May 25, 2023
6665d53
CI-add-pr-comment-if-logic
sateeshperi May 26, 2023
669ed21
Merge pull request #312 from nf-core/fix/CI-fixes
sateeshperi May 26, 2023
cb9323d
303-add-bamqc-regions-file-param
sateeshperi May 30, 2023
299e5c5
removed unused directory
njspix Jun 1, 2023
ba82fd0
Merge pull request #317 from nf-core/297-stranded_cpg_report-folder-i…
sateeshperi Jun 1, 2023
8ed927b
Merge pull request #316 from nf-core/fix/303-add-bamqc-regions-file-p…
edmundmiller Jun 1, 2023
70b167c
add-params-to-test-data-base-config
sateeshperi May 27, 2023
83d249b
update-index-files-to-value-channels
sateeshperi May 27, 2023
7e334f1
add-default-docker-registry-quay
sateeshperi May 27, 2023
380baf5
CI-fail-fast-false-and-cache-testdata-github-digest
sateeshperi May 27, 2023
ade0548
fix-ch-versions-variable
sateeshperi May 27, 2023
4579770
add-UTILS-removeNextflowVersion-lib-update-snapshots
sateeshperi May 28, 2023
4307580
add-ci-fast-option-for-dev
sateeshperi May 28, 2023
49a1e61
update-changelog
sateeshperi May 28, 2023
d4c407d
init-tests-tags-yml
sateeshperi May 28, 2023
8517f52
fix-no-new-line
sateeshperi May 28, 2023
ed76454
CI-add-nf-test-ver-to-matrix[ci ckip]
sateeshperi May 28, 2023
cd0166f
add-missing-run-nf-test-master-branch
sateeshperi May 28, 2023
c473062
CI-update-pr-commenter-to-upsert
sateeshperi May 29, 2023
509121d
CI-update-pr-commenter-msg-reactions
sateeshperi May 31, 2023
44479c9
CI-update-pr-commenter-concat-test-results
sateeshperi May 31, 2023
78f4a73
CI-save-commenter-battle-for-later
sateeshperi May 31, 2023
a304497
rm-docker-hardcode
sateeshperi May 31, 2023
b9e47d3
CI-add-matrix-profile-nf-test-run
sateeshperi May 31, 2023
a290e0c
fix-docker-podman-registry-tower-scoping
sateeshperi May 31, 2023
810bcdc
fix-typo
sateeshperi May 31, 2023
2697d30
311-fix-ignore_3prime_r2
sateeshperi Jun 1, 2023
8f47a53
update-changelog
sateeshperi Jun 1, 2023
f72f23e
update-changelog
sateeshperi Jun 1, 2023
17f0548
Merge pull request #315 from nf-core/fix/maintenance-fixes
sateeshperi Jun 1, 2023
b8c7b32
CI-disable-pr-commenter-ref-dev
sateeshperi Jun 1, 2023
c04a250
Merge pull request #318 from nf-core/fix/2.4-release-prep
sateeshperi Jun 2, 2023
5e4f540
bump version 2.4.0
sateeshperi Jun 2, 2023
e9d932b
rm-pr-commenter
sateeshperi Jun 2, 2023
bc6c297
Merge pull request #320 from sateeshperi/dev
sateeshperi Jun 2, 2023
1fb3dee
rename ignore_r1 and ignore_3prime_r1 params
sateeshperi Jun 5, 2023
0894a73
code review fixes
sateeshperi Jun 5, 2023
bc00280
CI-skip-condition-for-dev
sateeshperi Jun 7, 2023
75d6d87
Make R1 ignore parameters actually do something
SPPearce Jun 9, 2023
a4e831a
CI-update-skip-dev-condition and update changelog
sateeshperi Jun 9, 2023
7d278b8
Merge pull request #322 from sateeshperi/dev
sateeshperi Jun 9, 2023
06c9512
CI-update-skip-dev-condition, update README and changelog
sateeshperi Jun 10, 2023
8eaa717
Merge branch 'dev' into dev
sateeshperi Jun 10, 2023
83ab649
Merge pull request #324 from sateeshperi/dev
sateeshperi Jun 11, 2023
fd81abe
fix ignore params help text
sateeshperi Jun 12, 2023
ce3ea03
Merge pull request #325 from sateeshperi/dev
sateeshperi Jun 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trim_trailing_whitespace = true
indent_size = 4
indent_style = space

[*.{md,yml,yaml,html,css,scss,js,cff}]
[*.{md,yml,yaml,html,css,scss,js}]
indent_size = 2

# These files are edited and tested upstream in nf-core/modules
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ body:
* Nextflow version _(eg. 22.10.1)_
* Hardware _(eg. HPC, Desktop, Cloud)_
* Executor _(eg. slurm, local, awsbatch)_
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter or Charliecloud)_
* Container engine: _(e.g. Docker, Singularity, Conda, Podman, Shifter, Charliecloud, or Apptainer)_
* OS _(eg. CentOS Linux, macOS, Linux Mint)_
* Version of nf-core/methylseq _(eg. 1.1, 1.5, 1.8.2)_
3 changes: 2 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/meth

- [ ] This comment contains a description of changes (with reason).
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/methylseq/tree/master/.github/CONTRIBUTING.md)- [ ] If necessary, also make a PR on the nf-core/methylseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/methylseq/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/methylseq _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
aligner: ["bismark", "bismark_hisat", "bwameth"]
steps:
- name: Launch workflow via tower
uses: nf-core/tower-action@v3
uses: seqeralabs/action-tower-launch@v1
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
# Launch workflow using Tower CLI tool action
- name: Launch workflow via tower
uses: nf-core/tower-action@v3
uses: seqeralabs/action-tower-launch@v1
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Check PRs
if: github.repository == 'nf-core/methylseq'
run: |
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/methylseq ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/methylseq ]] && [[ $GITHUB_HEAD_REF == "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]

# If the above check failed, post a comment on the PR explaining the failure
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
Expand Down
146 changes: 109 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,71 @@
name: nf-core CI
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors
name: nf-core CI
on:
push:
branches:
- dev
- "dev"
pull_request:
branches:
- "dev"
- "master"
release:
types: [published]
types:
- "published"

env:
NXF_ANSI_LOG: false
NFTEST_VER: "0.7.3"

# cancel-in-progress: true ensures that if a new push is made to the same branch while a previous run is still in progress, the previous run is cancelled
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true

jobs:
test:
name: Run ${{ matrix.aligner }}-${{ matrix.profile }}-${{ matrix.NXF_VER }}
# Only run on push if this is the nf-core dev branch (merged PRs)
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/methylseq') }}"
test-dev:
# Only run if the pull request is against the dev branch or if the push is to the dev branch
if: github.base_ref == 'dev' || (github.event_name == 'push')
name: Run pipeline with test data on dev
runs-on: ubuntu-latest
# Add PR write permissions to allow commenting on the PR
permissions:
pull-requests: write
# Set up the matrix of different pipeline versions and profiles to test
strategy:
# Do not fail fast if one of the tests fails
fail-fast: false
matrix:
NXF_VER:
- "22.10.1"
- "latest-everything"
aligner:
- bismark
- bismark_hisat
- bwameth
profile: ["docker"] # TODO , "singularity", "conda"]
- "bismark"
- "bismark_hisat"
- "bwameth"
profile: # TODO ["singularity", "conda"]
- "docker"
steps:
- name: Check out pipeline code
uses: actions/checkout@v3

- name: Hash Github Workspace
id: hash_workspace
run: |
echo "digest=$(echo methylseq2_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: ./test-datasets/
key: methylseq-test-data
path: test-datasets/
key: ${{ steps.hash_workspace.outputs.digest }}

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: nf-core/test-datasets
ref: methylseq
path: ./test-datasets/
path: test-datasets/

- name: Replace remote paths in samplesheets
run: |
Expand All @@ -67,35 +84,90 @@ jobs:

- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
wget -qO- https://code.askimed.com/install/nf-test | bash -s $NFTEST_VER
sudo mv nf-test /usr/local/bin/

- name: Set up Singularity
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-singularity@v5
- name: Run nf-test
run: |
nf-test test tests/pipeline/${{ matrix.aligner }}/ --profile "test,${{ matrix.profile }}" --tap=test.tap

# If the test fails, output the software_versions.yml using the 'batcat' utility
- name: Output log on failure
if: failure()
run: |
sudo apt install bat > /dev/null
batcat --decorations=always --color=always /home/runner/work/methylseq/methylseq/.nf-test/tests/*/output/pipeline_info/software_versions.yml

test-master:
# Only run if the pull request is against the master branch
if: ${{ (github.base_ref == 'master') }}
name: Run pipeline with test data on master
runs-on: ubuntu-latest
# Add PR write permissions to allow commenting on the PR
permissions:
pull-requests: write
# Set up the matrix of different pipeline versions and profiles to test
strategy:
matrix:
NXF_VER:
- "latest-everything"
aligner:
- "bismark"
- "bismark_hisat"
- "bwameth"
profile: # TODO ["singularity", "conda"]
- "docker"
steps:
- name: Check out pipeline code
uses: actions/checkout@v3

- name: Hash Github Workspace
id: hash_workspace
run: |
echo "digest=$(echo methylseq2_${{ github.workspace }} | md5sum | cut -c 1-25)" >> $GITHUB_OUTPUT

- name: Cache test data
id: cache-testdata
uses: actions/cache@v3
with:
path: test-datasets/
key: ${{ steps.hash_workspace.outputs.digest }}

- name: Check out test data
if: steps.cache-testdata.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
singularity-version: 3.7.1
repository: nf-core/test-datasets
ref: methylseq
path: test-datasets/

- name: Set up miniconda
if: matrix.profile == 'conda'
uses: conda-incubator/setup-miniconda@v2
- name: Replace remote paths in samplesheets
run: |
for f in ./test-datasets/samplesheet/*csv; do
sed -i 's=https://github.com/nf-core/test-datasets/raw/methylseq/=./test-datasets/=g' $f
sed -i 's=https://raw.githubusercontent.com/nf-core/test-datasets/methylseq/=./test-datasets/=g' $f
echo "========== $f ============"
cat $f
echo "========================================"
done;

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
with:
auto-update-conda: true
channels: conda-forge,bioconda,defaults
python-version: ${{ matrix.python-version }}
version: "${{ matrix.NXF_VER }}"

- name: Conda clean
if: matrix.profile == 'conda'
run: conda clean -a
- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash -s $NFTEST_VER
sudo mv nf-test /usr/local/bin/

- name: Run nf-test
run: |
nf-test test \
--profile=test_ci,test,${{ matrix.profile }} \
tests/${{ matrix.aligner }}/*.nf.test \
--tap=test.tap
nf-test test tests/pipeline/${{ matrix.aligner }}/ --profile "test,${{ matrix.profile }}" --tap=test.tap

- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap
# If the test fails, output the software_versions.yml using the 'batcat' utility
- name: Output log on failure
if: failure()
run: |
sudo apt install bat > /dev/null
batcat --decorations=always --color=always /home/runner/work/methylseq/methylseq/.nf-test/tests/*/output/pipeline_info/software_versions.yml
24 changes: 24 additions & 0 deletions .github/workflows/clean-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Close user-tagged issues and PRs"
on:
schedule:
- cron: "0 0 * * 0" # Once a week

jobs:
clean-up:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v7
with:
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."
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."
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."
days-before-stale: 30
days-before-close: 20
days-before-pr-close: -1
any-of-labels: "awaiting-changes,awaiting-feedback"
exempt-issue-labels: "WIP"
exempt-pr-labels: "WIP"
repo-token: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 2 additions & 2 deletions .github/workflows/fix-linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
id: prettier_status
run: |
if prettier --check ${GITHUB_WORKSPACE}; then
echo "name=result::pass" >> $GITHUB_OUTPUT
echo "result=pass" >> $GITHUB_OUTPUT
else
echo "name=result::fail" >> $GITHUB_OUTPUT
echo "result=fail" >> $GITHUB_OUTPUT
fi

- name: Run 'prettier --write'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: "3.7"
python-version: "3.8"
architecture: "x64"

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Get PR number
id: pr_number
run: echo "name=pr_number::$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT
run: echo "pr_number=$(cat linting-logs/PR_number.txt)" >> $GITHUB_OUTPUT

- name: Post PR comment
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
9 changes: 6 additions & 3 deletions .nf-core.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# FIXME - CI currently runs for dev and dsl2 branches, remove the latter before merging to dev
actions_ci: False
files_exist:
- bin/markdown_to_html.py
repository_type: pipeline
lint:
files_unchanged:
- .gitattributes
files_exist:
- bin/markdown_to_html.py
actions_ci: False
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# nf-core/methylseq

## [v2.4.0](https://github.com/nf-core/methylseq/releases/tag/2.4.0) - 2023-06-02

### Pipeline Updates

- Updated template to nf-core/tools v2.8
- Add `--bamqc_regions_file` parameter for targeted methylation sequencing data #302
- ✨ Add NF-TEST tests and snapshots for the pipeline test profile #310

### Bug fixes & refactoring

- 🛠️ update index file channels to explicit value channels #310
- 🐛 fix `params.test_data_base` in test and test_full configs #310
- 🤖 GitHub Actions CI - pull_reqest to `dev` tests with NXF_VER `latest-everything` #310
- 🤖 GitHub Actions CI - pull_reqest to `master` tests with NXF_VER `22.10.1` & `latest-everything` #310
- 🤖 GitHub Actions CI - `fail-fast` set to false #310
- 🐛 get to the bottom of index tests #278
- 🐛 fix `ignore_3prime_r2` param #299
- 🐛 removed unused directory #297

## [v2.3.0](https://github.com/nf-core/methylseq/releases/tag/2.3.0) - 2022-12-16

### Pipeline Updates
Expand Down
Loading