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

Release 4.2.0 #358

Merged
merged 132 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
11c4195
first steps & sc run
mapo9 Mar 21, 2024
6639f0f
input change
mapo9 Mar 25, 2024
2a42c32
stage before pull
mapo9 Apr 10, 2024
9d2c18a
Merge remote-tracking branch 'origin/master' into dev
mapo9 Apr 10, 2024
47a7642
merged most recent airrflow version
mapo9 Apr 11, 2024
a5af202
barcode airr test
mapo9 Apr 11, 2024
48e1b68
dev update
mapo9 May 6, 2024
e434be7
Merge branch 'master' of https://github.com/mapo9/airrflow into trust4
mapo9 May 6, 2024
6242a6f
skip presto reporting which doesnt happen when trust4 is used
mapo9 May 7, 2024
761eccc
linting
mapo9 May 8, 2024
2da37e2
fastp before trust4
mapo9 May 8, 2024
d262a38
fastp before trust4
mapo9 May 10, 2024
50418e1
bulk and sc rnaseq input
mapo9 May 16, 2024
c6f95bf
bulk rnaseq test workflow
mapo9 May 16, 2024
c72146c
sc rnaseq tests
mapo9 May 16, 2024
7746378
docs
mapo9 May 16, 2024
5ef2f60
linting & prettier
mapo9 May 16, 2024
0bc5c19
trailing whitespace
mapo9 May 16, 2024
82c0688
trailing whitespace
mapo9 May 16, 2024
1a3a629
bugfix
mapo9 May 21, 2024
d822084
trailing whitespace
mapo9 May 21, 2024
90cada8
view statement removed
mapo9 May 21, 2024
35cf7f4
incorporating review comments
mapo9 May 23, 2024
cbdc415
fix test
mapo9 May 23, 2024
948bb53
removed view statement
mapo9 May 23, 2024
f13eeab
Merge branch 'dev' of https://github.com/ggabernet/nf-core-airrflow i…
ggabernet May 28, 2024
616349f
generate reference fasta
ggabernet May 28, 2024
9443bc8
channel in wrong subworkflow
ggabernet May 28, 2024
310e302
generate trust4 reference
ggabernet May 28, 2024
b9e977f
Merge branch 'dev' of https://github.com/nf-core/airrflow into trust4
ggabernet May 29, 2024
140c25c
Merge branch 'dev' of https://github.com/ggabernet/nf-core-airrflow i…
ggabernet May 30, 2024
0d7e636
merge dev
ggabernet May 31, 2024
bd3bbe2
add param skip alignment filter
ggabernet May 31, 2024
46a5fa2
add 'config_profile_url' default
mapo9 Jun 3, 2024
ba3eea1
trust4 nf-core module
mapo9 Jun 5, 2024
98fa04c
also store unproductive seqs
ggabernet Jul 14, 2024
52c2914
make unproductive optional
ggabernet Jul 14, 2024
2515adc
fix cregion primer annotation
ggabernet Jul 17, 2024
c186a69
improve docs
ggabernet Jul 17, 2024
cb6badc
Merge branch 'trust4' of https://github.com/mapo9/airrflow into trust4
ggabernet Jul 17, 2024
5e6e1a9
fix prettier
ggabernet Jul 17, 2024
b8dc66e
add locus selection to rnaseq workflow
ggabernet Jul 17, 2024
cfa4f73
fix issue with merge_UMI
ggabernet Jul 17, 2024
91777ac
Merge pull request #334 from mapo9/trust4
ggabernet Jul 17, 2024
ee1f4f0
Merge branch 'nf-core:dev' into dev
ggabernet Jul 22, 2024
42dbc6f
Merge branch 'dev' of https://github.com/ggabernet/nf-core-airrflow i…
ggabernet Aug 19, 2024
e25b134
Merge branch 'dev' of https://github.com/ggabernet/nf-core-airrflow i…
ggabernet Aug 19, 2024
71d230c
simplify maskprimers score
ggabernet Aug 19, 2024
ec62649
do not save presto intermediate fastq
ggabernet Aug 19, 2024
d223b8a
add maskprimers extract option
ggabernet Aug 20, 2024
3145022
update changelog
ggabernet Aug 20, 2024
79234af
update modules config
ggabernet Aug 20, 2024
cdf65c2
implement pairseq for clustersets
ggabernet Aug 20, 2024
7792153
update modules.config
ggabernet Aug 20, 2024
2777584
add buildconsensus extract pairseq extract
ggabernet Aug 21, 2024
1ff5a6f
Merge branch 'clustersets' into dev
ggabernet Aug 21, 2024
c51fbbe
update changelog
ggabernet Aug 21, 2024
e106235
update changelog
ggabernet Aug 21, 2024
be17807
parametrize clustersets
ggabernet Aug 23, 2024
a052e12
update clustersets umi
ggabernet Aug 28, 2024
39eae16
update modules config
ggabernet Aug 28, 2024
b7fd1aa
remove vprimer and cprimer requirement for maskprimers_extract
ggabernet Aug 30, 2024
26621d8
do not stage log to results dir
ggabernet Sep 3, 2024
0b8fa48
makedb partial for mouse TR
ggabernet Sep 4, 2024
a419a6b
improve TRUST4 docs
ggabernet Sep 5, 2024
2915aca
fix maskprimers test noumi
ggabernet Sep 15, 2024
10ca483
fix maskprimers sansumi
ggabernet Sep 15, 2024
e0c53b8
fix assemblepairs sansumi
ggabernet Sep 15, 2024
a048e95
maskprimers align sansumi
ggabernet Sep 15, 2024
dd49ede
maskprimers sansumi assemble
ggabernet Sep 16, 2024
c5afe4c
fix suffix maskprimers algin
ggabernet Sep 22, 2024
553369f
Merge branch 'clustersets' into dev
ggabernet Sep 22, 2024
b0afe90
fix log maskprimers align
ggabernet Sep 23, 2024
6714c31
bump cellranger version
mapo9 Sep 26, 2024
11ed769
bumped actions/upload-artifact to v4 to circumvent deprecated version…
mapo9 Sep 26, 2024
0432de0
implement maskprimers align umi
ggabernet Sep 27, 2024
0410808
fix linting
ggabernet Sep 27, 2024
a8baf6a
fix ci workflow
ggabernet Sep 27, 2024
0e0b1ac
Merge pull request #347 from mapo9/bump_cellranger
mapo9 Sep 30, 2024
54a63f4
fix parselogs merge df
ggabernet Oct 1, 2024
5974bc3
Template update for nf-core/tools version 3.0.0
nf-core-bot Oct 8, 2024
b56c001
Template update for nf-core/tools version 3.0.1
nf-core-bot Oct 9, 2024
1e7bf5d
Template update for nf-core/tools version 3.0.2
nf-core-bot Oct 11, 2024
0999f6f
update schema
ggabernet Oct 14, 2024
94069cd
Merge branch 'TEMPLATE' of https://github.com/nf-core/airrflow into m…
ggabernet Oct 14, 2024
1461dd3
add resourceLimits to test configs
ggabernet Oct 14, 2024
8fd8a04
fix issues template update
ggabernet Oct 14, 2024
e2b3c53
Merge branch 'dev' into dev
ggabernet Oct 14, 2024
8feb21e
fix linting
ggabernet Oct 14, 2024
fd197d6
fix linting
ggabernet Oct 14, 2024
fdb06ce
Merge branch 'dev' of https://github.com/ggabernet/nf-core-airrflow i…
ggabernet Oct 14, 2024
14eb37b
fix linting
ggabernet Oct 14, 2024
fdc845c
fix CI issues
ggabernet Oct 14, 2024
2370e36
fix ci issues
ggabernet Oct 14, 2024
089fe13
update test requirements
ggabernet Oct 14, 2024
31a1a60
presto collapseq n=0
ggabernet Oct 14, 2024
272dfdd
fix trust4 prepare reference
ggabernet Oct 19, 2024
9f26a8a
collapseseq sansumi
ggabernet Oct 19, 2024
3c88dfc
update barcode_read to cell_barcode_read
ggabernet Oct 21, 2024
7cd6661
allow age to be int
ggabernet Oct 21, 2024
6629693
update trust4 module
ggabernet Oct 22, 2024
0ab24ec
fix trust4 reference
ggabernet Oct 22, 2024
b90fb4c
fix precommit
ggabernet Oct 22, 2024
8358d8d
increase time
ggabernet Oct 22, 2024
f752c3b
fix test profile
ggabernet Oct 22, 2024
877e643
fix trust4 reference
ggabernet Oct 22, 2024
764748a
fix maskprimers align race
ggabernet Oct 22, 2024
38d9407
try debugging
ggabernet Oct 22, 2024
376b1c4
desperate...
ggabernet Oct 22, 2024
80873f7
Merge pull request #344 from ggabernet/dev
ggabernet Oct 25, 2024
74b4d48
fix docs nebnext mouse
ggabernet Nov 3, 2024
733dda6
update enchantr docker container
ggabernet Nov 5, 2024
92fff0c
change name to C_REGION
ggabernet Nov 5, 2024
a28675d
rm unnecessary isotype_column param
ggabernet Nov 25, 2024
30fcc80
update changelog
ggabernet Nov 26, 2024
de349f1
bump versions for release
ggabernet Nov 26, 2024
956d3f7
update changelog
ggabernet Nov 26, 2024
f9624c2
Fix linting
ggabernet Nov 26, 2024
9c0e84b
update changelog
ggabernet Nov 26, 2024
4dbb78a
bump enchantr version
ggabernet Nov 26, 2024
4b9d1db
Merge pull request #357 from ggabernet/dev
ggabernet Nov 26, 2024
b7c2159
rm conda from ci tests
ggabernet Nov 26, 2024
106fc44
apply reviewer suggestions
ggabernet Nov 26, 2024
f47c846
Merge pull request #359 from ggabernet/dev
ggabernet Nov 27, 2024
3b5ef6f
Update .nf-core.yml
ggabernet Nov 27, 2024
548709c
metro map including trust4
mapo9 Nov 28, 2024
bb59c7a
Merge branch 'dev' of github.com:ggabernet/nf-core-airrflow into dev
ggabernet Dec 9, 2024
2ad7bea
update metro map
ggabernet Dec 10, 2024
362b558
update workflow overview
ggabernet Dec 10, 2024
4fcc4af
Merge branch 'dev' of github.com:nf-core/airrflow into dev
ggabernet Dec 10, 2024
6637452
Merge pull request #360 from ggabernet/dev
ggabernet Dec 10, 2024
91449a8
fix ci setup nextfow
ggabernet Dec 10, 2024
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
12 changes: 6 additions & 6 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you'd like to write some code for nf-core/airrflow, the standard workflow is
1. Check that there isn't already an issue about your idea in the [nf-core/airrflow issues](https://github.com/nf-core/airrflow/issues) to avoid duplicating work. If there isn't one already, please create one so that others know you're working on this
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [nf-core/airrflow repository](https://github.com/nf-core/airrflow) to your GitHub account
3. Make the necessary changes / additions within your forked repository following [Pipeline conventions](#pipeline-contribution-conventions)
4. Use `nf-core schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
4. Use `nf-core pipelines schema build` and add any new parameters to the pipeline JSON schema (requires [nf-core tools](https://github.com/nf-core/tools) >= 1.10).
5. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged

If you're not used to this workflow with git, you can start with some [docs from GitHub](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests) or even their [excellent `git` resources](https://try.github.io/).
Expand All @@ -40,7 +40,7 @@ There are typically two types of tests that run:
### Lint tests

`nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
To enforce these and ensure that all pipelines stay in sync, we have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core lint <pipeline-directory>` command.
To enforce these and ensure that all pipelines stay in sync, we have developed a helper tool which runs checks on the pipeline code. This is in the [nf-core/tools repository](https://github.com/nf-core/tools) and once installed can be run locally with the `nf-core pipelines lint <pipeline-directory>` command.

If any failures or warnings are encountered, please follow the listed URL for more documentation.

Expand Down Expand Up @@ -75,7 +75,7 @@ If you wish to contribute a new step, please use the following coding standards:
2. Write the process block (see below).
3. Define the output channel if needed (see below).
4. Add any new parameters to `nextflow.config` with a default (see below).
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core schema build` tool).
5. Add any new parameters to `nextflow_schema.json` with help text (via the `nf-core pipelines schema build` tool).
6. Add sanity checks and validation for all relevant parameters.
7. Perform local tests to validate that the new code works as expected.
8. If applicable, add a new test command in `.github/workflow/ci.yml`.
Expand All @@ -86,11 +86,11 @@ If you wish to contribute a new step, please use the following coding standards:

Parameters should be initialised / defined with default values in `nextflow.config` under the `params` scope.

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

### Default processes resource requirements

Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/master/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.
Sensible defaults for process resource requirements (CPUs / memory / time) for a process should be defined in `conf/base.config`. These should generally be specified generic with `withLabel:` selectors so they can be shared across multiple processes/steps of the pipeline. A nf-core standard set of labels that should be followed where possible can be seen in the [nf-core pipeline template](https://github.com/nf-core/tools/blob/main/nf_core/pipeline-template/conf/base.config), which has the default process as a single core-process, and then different levels of multi-core configurations for increasingly large memory requirements defined with standardised labels.

The process resources can be passed on to the tool dynamically within the process with the `${task.cpus}` and `${task.memory}` variables in the `script:` block.

Expand All @@ -103,7 +103,7 @@ Please use the following naming schemes, to make it easy to understand what is g

### Nextflow version bumping

If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core bump-version --nextflow . [min-nf-version]`
If you are using a new feature from core Nextflow, you may bump the minimum required version of nextflow in the pipeline with: `nf-core pipelines bump-version --nextflow . [min-nf-version]`

### Images and figures

Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/airr
- [ ] 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/airrflow/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/airrflow _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Make sure your code lints (`nf-core pipelines lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Check for unexpected warnings in debug mode (`nextflow run . -profile debug,test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
name: nf-core AWS full size tests
# This workflow is triggered on published releases.
# This workflow is triggered on PRs opened against the master branch.
# It can be additionally triggered manually with GitHub actions workflow dispatch button.
# It runs the -profile 'test_full' on AWS batch

on:
release:
types: [published]
pull_request:
branches:
- master
workflow_dispatch:
pull_request_review:
types: [submitted]

jobs:
run-platform:
name: Run AWS full tests
if: github.repository == 'nf-core/airrflow'
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered
if: github.repository == 'nf-core/airrflow' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: octokit/request-action@v2.x
id: check_approvals
with:
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: test_variables
if: github.event_name != 'workflow_dispatch'
run: |
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length')
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required
- name: Launch workflow via Seqera Platform
uses: seqeralabs/action-tower-launch@v2
with:
Expand Down
67 changes: 57 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,83 @@ on:
pull_request:
release:
types: [published]
workflow_dispatch:

env:
NXF_ANSI_LOG: false
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true

concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true

jobs:
test:
name: Run pipeline with test data
name: "Run pipeline with test data (${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }})"
# 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/airrflow') }}
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
profile:
- "docker"
- "singularity"
test_name:
- "test"
isMaster:
- ${{ github.base_ref == 'master' }}
# Exclude conda and singularity on dev
exclude:
- isMaster: false
profile: "conda"
- isMaster: false
profile: "singularity"
steps:
- name: Check out pipeline code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4

- name: Install Nextflow
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

- name: Disk space cleanup
- name: Set up Apptainer
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-apptainer@main

- name: Set up Singularity
if: matrix.profile == 'singularity'
run: |
mkdir -p $NXF_SINGULARITY_CACHEDIR
mkdir -p $NXF_SINGULARITY_LIBRARYDIR
- name: Set up Miniconda
if: matrix.profile == 'conda'
uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3
with:
miniconda-version: "latest"
auto-update-conda: true
conda-solver: libmamba
channels: conda-forge,bioconda

- name: Set up Conda
if: matrix.profile == 'conda'
run: |
echo $(realpath $CONDA)/condabin >> $GITHUB_PATH
echo $(realpath python) >> $GITHUB_PATH
- name: Clean up Disk space
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1

- name: Run pipeline with test data
- name: "Run pipeline with test data ${{ matrix.NXF_VER }} | ${{ matrix.test_name }} | ${{ matrix.profile }}"
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.test_name }},${{ matrix.profile }} --outdir ./results
test_profile:
name: Run workflow test with different profiles
Expand All @@ -49,7 +92,7 @@ jobs:
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
profile:
[
Expand All @@ -62,14 +105,18 @@ jobs:
"test_10x_sc",
"test_clontech_umi",
"test_nebnext_umi",
"test_rnaseq_bulk",
"test_rnaseq_sc",
"test_maskprimers_extract",
"test_maskprimers_align",
]
fail-fast: false
steps:
- name: Check out pipeline code
uses: actions/checkout@v3
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

Expand All @@ -79,7 +126,7 @@ jobs:
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.profile }}
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci_immcantation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
profile:
[
Expand All @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Nextflow
uses: nf-core/setup-nextflow@v1
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"

Expand All @@ -44,7 +44,7 @@ jobs:
- name: Upload logs on failure
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.profile }}
path: |
Expand Down
53 changes: 43 additions & 10 deletions .github/workflows/download_pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test successful pipeline download with 'nf-core download'
name: Test successful pipeline download with 'nf-core pipelines download'

# Run the workflow when:
# - dispatched manually
Expand All @@ -8,7 +8,7 @@ on:
workflow_dispatch:
inputs:
testbranch:
description: "The specific branch you wish to utilize for the test execution of nf-core download."
description: "The specific branch you wish to utilize for the test execution of nf-core pipelines download."
required: true
default: "dev"
pull_request:
Expand Down Expand Up @@ -39,9 +39,11 @@ jobs:
with:
python-version: "3.12"
architecture: "x64"
- uses: eWaterCycle/setup-singularity@931d4e31109e875b13309ae1d07c70ca8fbc8537 # v7

- name: Setup Apptainer
uses: eWaterCycle/setup-apptainer@4bb22c52d4f63406c49e94c804632975787312b3 # v2.0.0
with:
singularity-version: 3.8.3
apptainer-version: 1.3.4

- name: Install dependencies
run: |
Expand All @@ -54,33 +56,64 @@ jobs:
echo "REPOTITLE_LOWERCASE=$(basename ${GITHUB_REPOSITORY,,})" >> ${GITHUB_ENV}
echo "REPO_BRANCH=${{ github.event.inputs.testbranch || 'dev' }}" >> ${GITHUB_ENV}
- name: Make a cache directory for the container images
run: |
mkdir -p ./singularity_container_images
- name: Download the pipeline
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
run: |
nf-core download ${{ env.REPO_LOWERCASE }} \
nf-core pipelines download ${{ env.REPO_LOWERCASE }} \
--revision ${{ env.REPO_BRANCH }} \
--outdir ./${{ env.REPOTITLE_LOWERCASE }} \
--compress "none" \
--container-system 'singularity' \
--container-library "quay.io" -l "docker.io" -l "ghcr.io" \
--container-library "quay.io" -l "docker.io" -l "community.wave.seqera.io" \
--container-cache-utilisation 'amend' \
--download-configuration
--download-configuration 'yes'
- name: Inspect download
run: tree ./${{ env.REPOTITLE_LOWERCASE }}

- name: Count the downloaded number of container images
id: count_initial
run: |
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
echo "Initial container image count: $image_count"
echo "IMAGE_COUNT_INITIAL=$image_count" >> ${GITHUB_ENV}
- name: Run the downloaded pipeline (stub)
id: stub_run_pipeline
continue-on-error: true
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -stub -profile test,singularity --outdir ./results
- name: Run the downloaded pipeline (stub run not supported)
id: run_pipeline
if: ${{ job.steps.stub_run_pipeline.status == failure() }}
env:
NXF_SINGULARITY_CACHEDIR: ./
NXF_SINGULARITY_CACHEDIR: ./singularity_container_images
NXF_SINGULARITY_HOME_MOUNT: true
run: nextflow run ./${{ env.REPOTITLE_LOWERCASE }}/$( sed 's/\W/_/g' <<< ${{ env.REPO_BRANCH }}) -profile test,singularity --outdir ./results

- name: Count the downloaded number of container images
id: count_afterwards
run: |
image_count=$(ls -1 ./singularity_container_images | wc -l | xargs)
echo "Post-pipeline run container image count: $image_count"
echo "IMAGE_COUNT_AFTER=$image_count" >> ${GITHUB_ENV}
- name: Compare container image counts
run: |
if [ "${{ env.IMAGE_COUNT_INITIAL }}" -ne "${{ env.IMAGE_COUNT_AFTER }}" ]; then
initial_count=${{ env.IMAGE_COUNT_INITIAL }}
final_count=${{ env.IMAGE_COUNT_AFTER }}
difference=$((final_count - initial_count))
echo "$difference additional container images were \n downloaded at runtime . The pipeline has no support for offline runs!"
tree ./singularity_container_images
exit 1
else
echo "The pipeline can be downloaded successfully!"
fi
23 changes: 19 additions & 4 deletions .github/workflows/linting.yml
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:
Expand Down Expand Up @@ -41,17 +41,32 @@ jobs:
python-version: "3.12"
architecture: "x64"

- name: read .nf-core.yml
uses: pietrobolcato/action-read-yaml@1.1.0
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 != 'master' }}
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 == 'master' }}
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() }}
Expand Down
Loading
Loading