Skip to content

Commit a7cf5ee

Browse files
committed
Fix conflicrs
2 parents 6c764e0 + 90d90dc commit a7cf5ee

File tree

28 files changed

+482
-253
lines changed

28 files changed

+482
-253
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ indent_size = unset
3131
# ignore python and markdown
3232
[*.{py,md}]
3333
indent_style = unset
34+
35+
# ignore ro-crate metadata files
36+
[**/ro-crate-metadata.json]
37+
insert_final_newline = unset

.github/CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nf-core/deepmodeloptim: Contributing Guidelines
1+
# `nf-core/deepmodeloptim`: Contributing Guidelines
22

33
Hi there!
44
Many thanks for taking an interest in improving nf-core/deepmodeloptim.
@@ -55,23 +55,23 @@ These tests are run both with the latest available version of `Nextflow` and als
5555

5656
:warning: Only in the unlikely and regretful event of a release happening with a bug.
5757

58-
- On your own fork, make a new branch `patch` based on `upstream/master`.
58+
- On your own fork, make a new branch `patch` based on `upstream/main` or `upstream/master`.
5959
- Fix the bug, and bump version (X.Y.Z+1).
60-
- A PR should be made on `master` from patch to directly this particular bug.
60+
- Open a pull-request from `patch` to `main`/`master` with the changes.
6161

6262
## Getting help
6363

6464
For further information/help, please consult the [nf-core/deepmodeloptim documentation](https://nf-co.re/deepmodeloptim/usage) and don't hesitate to get in touch on the nf-core Slack [#deepmodeloptim](https://nfcore.slack.com/channels/deepmodeloptim) channel ([join our Slack here](https://nf-co.re/join/slack)).
6565

6666
## Pipeline contribution conventions
6767

68-
To make the nf-core/deepmodeloptim code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
68+
To make the `nf-core/deepmodeloptim` code and processing logic more understandable for new contributors and to ensure quality, we semi-standardise the way the code and other contributions are written.
6969

7070
### Adding a new step
7171

7272
If you wish to contribute a new step, please use the following coding standards:
7373

74-
1. Define the corresponding input channel into your new process from the expected previous process channel
74+
1. Define the corresponding input channel into your new process from the expected previous process channel.
7575
2. Write the process block (see below).
7676
3. Define the output channel if needed (see below).
7777
4. Add any new parameters to `nextflow.config` with a default (see below).
@@ -82,7 +82,7 @@ If you wish to contribute a new step, please use the following coding standards:
8282

8383
### Default values
8484

85-
Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.
85+
Parameters should be initialised / defined with default values within the `params` scope in `nextflow.config`.
8686

8787
Once there, use `nf-core pipelines schema build` to add to `nextflow_schema.json`.
8888

.github/workflows/awsfulltest.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: nf-core AWS full size tests
2-
# This workflow is triggered on PRs opened against the master branch.
2+
# This workflow is triggered on PRs opened against the main/master branch.
33
# It can be additionally triggered manually with GitHub actions workflow dispatch button.
44
# It runs the -profile 'test_full' on AWS batch
55

66
on:
77
pull_request:
88
branches:
9+
- main
910
- master
1011
workflow_dispatch:
1112
pull_request_review:
@@ -18,18 +19,30 @@ jobs:
1819
if: github.repository == 'nf-core/deepmodeloptim' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
1920
runs-on: ubuntu-latest
2021
steps:
21-
- uses: octokit/request-action@v2.x
22+
- name: Get PR reviews
23+
uses: octokit/request-action@v2.x
24+
if: github.event_name != 'workflow_dispatch'
2225
id: check_approvals
26+
continue-on-error: true
2327
with:
24-
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews
28+
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100
2529
env:
2630
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
- id: test_variables
31+
32+
- name: Check for approvals
33+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
34+
run: |
35+
echo "No review approvals found. At least 2 approvals are required to run this action automatically."
36+
exit 1
37+
38+
- name: Check for enough approvals (>=2)
39+
id: test_variables
2840
if: github.event_name != 'workflow_dispatch'
2941
run: |
3042
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'
3143
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
3244
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required
45+
3346
- name: Launch workflow via Seqera Platform
3447
uses: seqeralabs/action-tower-launch@v2
3548
# TODO nf-core: You can customise AWS full pipeline tests as required

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
profile: "singularity"
4646
steps:
4747
- name: Check out pipeline code
48-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
48+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
49+
with:
50+
fetch-depth: 0
4951

5052
- name: Set up Nextflow
5153
uses: nf-core/setup-nextflow@v2

.github/workflows/download_pipeline.yml

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Test successful pipeline download with 'nf-core pipelines download'
22

33
# Run the workflow when:
44
# - dispatched manually
5-
# - when a PR is opened or reopened to master branch
5+
# - when a PR is opened or reopened to main/master branch
66
# - the head branch of the pull request is updated, i.e. if fixes for a release are pushed last minute to dev.
77
on:
88
workflow_dispatch:
@@ -17,25 +17,42 @@ on:
1717
- edited
1818
- synchronize
1919
branches:
20+
- main
2021
- master
2122
pull_request_target:
2223
branches:
24+
- main
2325
- master
2426

2527
env:
2628
NXF_ANSI_LOG: false
2729

2830
jobs:
31+
configure:
32+
runs-on: ubuntu-latest
33+
outputs:
34+
REPO_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPO_LOWERCASE }}
35+
REPOTITLE_LOWERCASE: ${{ steps.get_repo_properties.outputs.REPOTITLE_LOWERCASE }}
36+
REPO_BRANCH: ${{ steps.get_repo_properties.outputs.REPO_BRANCH }}
37+
steps:
38+
- name: Get the repository name and current branch
39+
id: get_repo_properties
40+
run: |
41+
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT"
42+
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> "$GITHUB_OUTPUT"
43+
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> "$GITHUB_OUTPUT"
44+
2945
download:
3046
runs-on: ubuntu-latest
47+
needs: configure
3148
steps:
3249
- name: Install Nextflow
3350
uses: nf-core/setup-nextflow@v2
3451

3552
- name: Disk space cleanup
3653
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
3754

38-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
55+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
3956
with:
4057
python-version: "3.12"
4158
architecture: "x64"
@@ -50,12 +67,6 @@ jobs:
5067
python -m pip install --upgrade pip
5168
pip install git+https://github.com/nf-core/tools.git@dev
5269
53-
- name: Get the repository name and current branch set as environment variable
54-
run: |
55-
echo "REPO_LOWERCASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
56-
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
57-
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
58-
5970
- name: Make a cache directory for the container images
6071
run: |
6172
mkdir -p ./singularity_container_images
@@ -64,55 +75,59 @@ jobs:
6475
env:
6576
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
6677
run: |
67-
nf-core pipelines download ${{ env.REPO_LOWERCASE }} \
68-
--revision ${{ env.REPO_BRANCH }} \
69-
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
78+
nf-core pipelines download ${{ needs.configure.outputs.REPO_LOWERCASE }} \
79+
--revision ${{ needs.configure.outputs.REPO_BRANCH }} \
80+
--outdir ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }} \
7081
--compress "none" \
7182
--container-system 'singularity' \
72-
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io" \
83+
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io/library/" \
7384
--container-cache-utilisation 'amend' \
7485
--download-configuration 'yes'
7586
7687
- name: Inspect download
77-
run: tree ./${{ env.REPOTITLE_LOWERCASE }}
88+
run: tree ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}
89+
90+
- name: Inspect container images
91+
run: tree ./singularity_container_images | tee ./container_initial
7892

7993
- name: Count the downloaded number of container images
8094
id: count_initial
8195
run: |
8296
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
8397
echo "Initial container image count: $image_count"
84-
echo "IMAGE_COUNT_INITIAL=$image_count" >> ${GITHUB_ENV}
98+
echo "IMAGE_COUNT_INITIAL=$image_count" >> "$GITHUB_OUTPUT"
8599
86100
- name: Run the downloaded pipeline (stub)
87101
id: stub_run_pipeline
88102
continue-on-error: true
89103
env:
90104
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
91105
NXF_SINGULARITY_HOME_MOUNT: true
92-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
106+
run: nextflow run ./${{needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
93107
- name: Run the downloaded pipeline (stub run not supported)
94108
id: run_pipeline
95-
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
109+
if: ${{ steps.stub_run_pipeline.outcome == 'failure' }}
96110
env:
97111
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
98112
NXF_SINGULARITY_HOME_MOUNT: true
99-
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results
113+
run: nextflow run ./${{ needs.configure.outputs.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ needs.configure.outputs.REPO_BRANCH }}) -profile test,singularity --outdir ./results
100114

101115
- name: Count the downloaded number of container images
102116
id: count_afterwards
103117
run: |
104118
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
105119
echo "Post-pipeline run container image count: $image_count"
106-
echo "IMAGE_COUNT_AFTER=$image_count" >> ${GITHUB_ENV}
120+
echo "IMAGE_COUNT_AFTER=$image_count" >> "$GITHUB_OUTPUT"
107121
108122
- name: Compare container image counts
109123
run: |
110-
if [ "${{ env.IMAGE_COUNT_INITIAL }}" -ne "${{ env.IMAGE_COUNT_AFTER }}" ]; then
111-
initial_count=${{ env.IMAGE_COUNT_INITIAL }}
112-
final_count=${{ env.IMAGE_COUNT_AFTER }}
124+
if [ "${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}" -ne "${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}" ]; then
125+
initial_count=${{ steps.count_initial.outputs.IMAGE_COUNT_INITIAL }}
126+
final_count=${{ steps.count_afterwards.outputs.IMAGE_COUNT_AFTER }}
113127
difference=$((final_count - initial_count))
114128
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
115-
tree ./singularity_container_images
129+
tree ./singularity_container_images > ./container_afterwards
130+
diff ./container_initial ./container_afterwards
116131
exit 1
117132
else
118133
echo "The pipeline can be downloaded successfully!"

.github/workflows/fix-linting.yml

Lines changed: 2 additions & 2 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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1717
with:
1818
token: ${{ secrets.nf_core_bot_auth_token }}
1919

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

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

.github/workflows/release-announcements.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,6 @@ jobs:
2727
2828
${{ steps.get_topics.outputs.topics }} #nfcore #openscience #nextflow #bioinformatics
2929
30-
send-tweet:
31-
runs-on: ubuntu-latest
32-
33-
steps:
34-
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5
35-
with:
36-
python-version: "3.10"
37-
- name: Install dependencies
38-
run: pip install tweepy==4.14.0
39-
- name: Send tweet
40-
shell: python
41-
run: |
42-
import os
43-
import tweepy
44-
45-
client = tweepy.Client(
46-
access_token=os.getenv("TWITTER_ACCESS_TOKEN"),
47-
access_token_secret=os.getenv("TWITTER_ACCESS_TOKEN_SECRET"),
48-
consumer_key=os.getenv("TWITTER_CONSUMER_KEY"),
49-
consumer_secret=os.getenv("TWITTER_CONSUMER_SECRET"),
50-
)
51-
tweet = os.getenv("TWEET")
52-
client.create_tweet(text=tweet)
53-
env:
54-
TWEET: |
55-
Pipeline release! ${{ github.repository }} v${{ github.event.release.tag_name }} - ${{ github.event.release.name }}!
56-
57-
Please see the changelog: ${{ github.event.release.html_url }}
58-
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
59-
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
60-
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
61-
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
62-
6330
bsky-post:
6431
runs-on: ubuntu-latest
6532
steps:

.github/workflows/template_version_comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Check out pipeline code
12-
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1313
with:
1414
ref: ${{ github.event.pull_request.head.sha }}
1515

.gitpod.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,5 @@ tasks:
66
nextflow self-update
77
88
vscode:
9-
extensions: # based on nf-core.nf-core-extensionpack
10-
#- esbenp.prettier-vscode # Markdown/CommonMark linting and style checking for Visual Studio Code
11-
- EditorConfig.EditorConfig # override user/workspace settings with settings found in .editorconfig files
12-
- Gruntfuggly.todo-tree # Display TODO and FIXME in a tree view in the activity bar
13-
- mechatroner.rainbow-csv # Highlight columns in csv files in different colors
14-
- nextflow.nextflow # Nextflow syntax highlighting
15-
- oderwat.indent-rainbow # Highlight indentation level
16-
- streetsidesoftware.code-spell-checker # Spelling checker for source code
17-
- charliermarsh.ruff # Code linter Ruff
9+
extensions:
10+
- nf-core.nf-core-extensionpack # https://github.com/nf-core/vscode-extensionpack

.nf-core.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
bump_version: null
21
lint:
32
files_exist:
43
- conf/igenomes.config
@@ -19,8 +18,7 @@ lint:
1918
multiqc_config: false
2019
nextflow_config:
2120
- params.input
22-
nf_core_version: 3.0.2
23-
org_path: null
21+
nf_core_version: 3.2.0
2422
repository_type: pipeline
2523
template:
2624
author: Mathys Grapotte
@@ -36,4 +34,3 @@ template:
3634
- multiqc
3735
- fastqc
3836
version: 1.0.0dev
39-
update: null

0 commit comments

Comments
 (0)