-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from PlantandFoodResearch/update/template
Updated nf-core template to 3.0.2
- Loading branch information
Showing
54 changed files
with
1,027 additions
and
1,136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
config_version=$(grep -A 10 'manifest {' nextflow.config | sed -n "s/.*version.*= '\(.*\)'.*/\1/p") | ||
set -euo pipefail | ||
|
||
# Check CHANGELOG version | ||
config_version=$(sed -n "/^\s*version\s*=\s*'/s/version//p" nextflow.config | tr -d "=[:space:]'") | ||
cff_version=$(sed -n '/^version: /s/version: //p' CITATION.cff | tr -d '[:space:]') | ||
|
||
if [[ $config_version != $cff_version ]]; then | ||
echo 'config_version != cff_version' | ||
exit 1 | ||
fi | ||
|
||
head -n 10 CHANGELOG.md | grep "## $config_version - " >/dev/null \ | ||
# Check CHANGELOG version | ||
head -10 CHANGELOG.md | grep "## v$config_version - " >/dev/null \ | ||
|| (echo 'Failed to match CHANGELOG version'; exit 1) | ||
|
||
# Check multiqc_config.yml version | ||
config_version_plain=$(echo $config_version | sed 's/.*\+dev$/dev/; t; s/\+.*//') | ||
echo "Looking for '$config_version_plain' in multiqc_config.yml" | ||
# Check .nf-core.yml version | ||
tail -5 .nf-core.yml | grep "version: $config_version" >/dev/null \ | ||
|| (echo 'Failed to match .nf-core.yml version'; exit 1) | ||
|
||
# Check multiqc_config.yml version | ||
config_version_plain=$(echo $config_version | sed 's/.*\dev$/dev/; t; s/\+.*//') | ||
head -n 5 assets/multiqc_config.yml | grep "https://github.com/plant-food-research-open/genepal/blob/$config_version_plain/docs/usage.md" >/dev/null \ | ||
|| (echo 'Failed to match multiqc_config.yml version'; exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: nf-core linting | ||
# This workflow is triggered on pushes and PRs to the repository. | ||
# It runs the `nf-core lint` and markdown lint tests to ensure | ||
# It runs the `nf-core pipelines lint` and markdown lint tests to ensure | ||
# that the code meets the nf-core guidelines. | ||
on: | ||
push: | ||
|
@@ -41,17 +41,32 @@ jobs: | |
python-version: "3.12" | ||
architecture: "x64" | ||
|
||
- name: read .nf-core.yml | ||
uses: pietrobolcato/[email protected] | ||
id: read_yml | ||
with: | ||
config: ${{ github.workspace }}/.nf-core.yml | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install nf-core | ||
pip install nf-core==${{ steps.read_yml.outputs['nf_core_version'] }} | ||
- name: Run nf-core pipelines lint | ||
if: ${{ github.base_ref != 'main' }} | ||
env: | ||
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }} | ||
run: nf-core -l lint_log.txt pipelines lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md | ||
|
||
- name: Run nf-core lint | ||
- name: Run nf-core pipelines lint --release | ||
if: ${{ github.base_ref == 'main' }} | ||
env: | ||
GITHUB_COMMENTS_URL: ${{ github.event.pull_request.comments_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PR_COMMIT: ${{ github.event.pull_request.head.sha }} | ||
run: nf-core -l lint_log.txt lint --dir ${GITHUB_WORKSPACE} --markdown lint_results.md | ||
run: nf-core -l lint_log.txt pipelines lint --release --dir ${GITHUB_WORKSPACE} --markdown lint_results.md | ||
|
||
- name: Save PR number | ||
if: ${{ always() }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
.nextflow* | ||
work/ | ||
data/ | ||
null/ | ||
results/ | ||
.DS_Store | ||
testing/ | ||
testing* | ||
*.pyc | ||
|
||
# PFR files | ||
*.stdout | ||
*.stderr | ||
|
||
# nf-test files | ||
.nf-test/ | ||
.nf-test.log | ||
null/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.