Skip to content

Commit ae730cf

Browse files
authored
Merge pull request #48 from nf-core/nf-core-template-merge-2.14.1
Important! Template update for nf-core/tools v2.14.1
2 parents d8b1980 + fd603b0 commit ae730cf

25 files changed

+243
-183
lines changed

.editorconfig

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ 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
3834

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/phas
1818
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/phaseimpute/tree/master/.github/CONTRIBUTING.md)
1919
- [ ] If necessary, also make a PR on the nf-core/phaseimpute _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

Lines changed: 5 additions & 5 deletions
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/phaseimpute'
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

Lines changed: 6 additions & 6 deletions
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/phaseimpute'
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ jobs:
3434
- "test_stitch"
3535
steps:
3636
- name: Check out pipeline code
37-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
37+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
3838

3939
- name: Install Nextflow
40-
uses: nf-core/setup-nextflow@v1
40+
uses: nf-core/setup-nextflow@v2
4141
with:
4242
version: "${{ matrix.NXF_VER }}"
4343

.github/workflows/download_pipeline.yml

Lines changed: 18 additions & 4 deletions
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 9 additions & 10 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
repository_type: pipeline
2-
lint:
3-
subworkflow_changes: false
2+
nf_core_version: "2.14.1"

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
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+
8+
69
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
710
rev: "2.7.3"
811
hooks:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
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/phaseimpute)
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/phaseimpute)
1717

1818
[![Get help on Slack](http://img.shields.io/badge/slack-nf--core%20%23phaseimpute-4A154B?labelColor=000000&logo=slack)](https://nfcore.slack.com/channels/phaseimpute)[![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

conf/base.config

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,4 @@ process {
5959
errorStrategy = 'retry'
6060
maxRetries = 2
6161
}
62-
withName:CUSTOM_DUMPSOFTWAREVERSIONS {
63-
cache = false
64-
}
6562
}

conf/modules.config

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ process {
1818
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
1919
]
2020

21-
withName: CUSTOM_DUMPSOFTWAREVERSIONS {
22-
publishDir = [
23-
path: { "${params.outdir}/pipeline_info" },
24-
mode: params.publish_dir_mode,
25-
pattern: '*_versions.yml'
26-
]
27-
}
28-
2921
withName: 'MULTIQC' {
3022
ext.args = { params.multiqc_title ? "--title \"$params.multiqc_title\"" : '' }
3123
publishDir = [

conf/test.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ params {
2424
input_region = "${projectDir}/tests/csv/region.csv"
2525

2626
// Genome references
27-
fasta = "https://raw.githubusercontent.com/nf-core/test-datasets/phaseimpute/data/reference_genome/21_22/hs38DH.chr21_22.fa"
27+
fasta = params.pipelines_testdata_base_path + "reference_genome/21_22/hs38DH.chr21_22.fa"
2828
panel = "${projectDir}/tests/csv/panel.csv"
2929
phased = true
3030

conf/test_full.config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ params {
1414
config_profile_name = 'Full test profile'
1515
config_profile_description = 'Full test dataset to check pipeline function'
1616

17-
1817
// Genome references
1918
map = "https://bochet.gcc.biostat.washington.edu/beagle/genetic_maps/plink.GRCh38.map.zip"
2019
genome = "GRCh38"

docs/usage.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -240,26 +240,8 @@ If `-profile` is not specified, the pipeline will run locally and expect all sof
240240
- A generic configuration profile to be used with [Charliecloud](https://hpc.github.io/charliecloud/)
241241
- `apptainer`
242242
- A generic configuration profile to be used with [Apptainer](https://apptainer.org/)
243-
- `conda`
244-
245-
- A generic configuration profile to be used with [Conda](https://conda.io/docs/). Please only use Conda as a last resort i.e. when it's not possible to run the pipeline with Docker, Singularity, Podman, Shifter, Charliecloud, or Apptainer.
246-
If `-profile` is not specified, the pipeline will run locally and expect all software to be installed and available on the `PATH`. This is _not_ recommended, since it can lead to different results on different machines dependent on the computer enviroment.
247-
248-
- `test`
249-
- A profile with a complete configuration for automated testing
250-
- Includes links to test data so needs no other parameters
251-
- `docker`
252-
- A generic configuration profile to be used with [Docker](https://docker.com/)
253-
- `singularity`
254-
- A generic configuration profile to be used with [Singularity](https://sylabs.io/docs/)
255-
- `podman`
256-
- A generic configuration profile to be used with [Podman](https://podman.io/)
257-
- `shifter`
258-
- A generic configuration profile to be used with [Shifter](https://nersc.gitlab.io/development/shifter/how-to-use/)
259-
- `charliecloud`
260-
- A generic configuration profile to be used with [Charliecloud](https://hpc.github.io/charliecloud/)
261-
- `apptainer`
262-
- A generic configuration profile to be used with [Apptainer](https://apptainer.org/)
243+
- `wave`
244+
- A generic configuration profile to enable [Wave](https://seqera.io/wave/) containers. Use together with one of the above (requires Nextflow ` 24.03.0-edge` or later).
263245
- `conda`
264246
- A generic configuration profile to be used with [Conda](https://conda.io/docs/). Please only use Conda as a last resort i.e. when it's not possible to run the pipeline with Docker, Singularity, Podman, Shifter, Charliecloud, or Apptainer.
265247

modules.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
"git_sha": "de45447d060b8c8b98575bc637a4a575fd0638e1",
6565
"installed_by": ["modules"]
6666
},
67+
"fastqc": {
68+
"branch": "master",
69+
"git_sha": "285a50500f9e02578d90b3ce6382ea3c30216acd",
70+
"installed_by": ["modules"]
71+
},
6772
"gawk": {
6873
"branch": "master",
6974
"git_sha": "da4d05d04e65227d4307e87940842f1a14de62c7",
@@ -188,7 +193,7 @@
188193
},
189194
"utils_nfcore_pipeline": {
190195
"branch": "master",
191-
"git_sha": "5caf7640a9ef1d18d765d55339be751bb0969dfa",
196+
"git_sha": "92de218a329bfc9a9033116eb5f65fd270e72ba3",
192197
"installed_by": ["subworkflows"]
193198
},
194199
"utils_nfvalidation_plugin": {
@@ -200,11 +205,6 @@
200205
"branch": "master",
201206
"git_sha": "7e56daae390ff896b292ddc70823447683a79936",
202207
"installed_by": ["subworkflows"]
203-
},
204-
"vcf_phase_shapeit5": {
205-
"branch": "master",
206-
"git_sha": "dcf17cc0ed8fd5ea57e61a13e0147cddb5c1ee30",
207-
"installed_by": ["subworkflows"]
208208
}
209209
}
210210
}

0 commit comments

Comments
 (0)