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

First Release PR - Pacvar #4

Open
wants to merge 221 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
374bcb7
updated configuration files
Sep 18, 2024
170da29
changes in config to account for bam input rather than fasta input
Sep 18, 2024
82d8853
lima demultiplexing added
Sep 18, 2024
66ae8f7
added new module pbmm2 (missing tests for module as of now) - added p…
Sep 19, 2024
b2993fe
adding samtools functionality
Sep 24, 2024
5a703b8
cleaned up samtools functionality
Sep 25, 2024
21a99f8
some small mem changes to make compatible with docker
tanyasarkjain Oct 8, 2024
346ecc3
adding deepvariant (though still potentially need to resolve singular…
Oct 8, 2024
48592c7
added gatk4haplotype caller
tanyasarkjain Oct 21, 2024
d874058
Update README.md
tanyasarkjain Oct 22, 2024
e6415b4
Add files via upload
tanyasarkjain Oct 22, 2024
59fd18b
Update README.md
tanyasarkjain Oct 22, 2024
7e3e17a
Add files via upload
tanyasarkjain Oct 22, 2024
86bd969
Update README.md
tanyasarkjain Oct 22, 2024
0f99dd1
Add files via upload
tanyasarkjain Oct 22, 2024
c360869
Update README.md
tanyasarkjain Oct 22, 2024
47e72e7
Update README.md
tanyasarkjain Oct 22, 2024
62bc0cc
Update README.md
tanyasarkjain Oct 22, 2024
3912721
Update README.md
tanyasarkjain Oct 22, 2024
e52b756
Update README.md
tanyasarkjain Oct 22, 2024
0e72179
Update README.md
tanyasarkjain Oct 22, 2024
9c9a89a
Add files via upload
tanyasarkjain Oct 22, 2024
303543e
seperate workfall for bam variant calling
tanyasarkjain Oct 28, 2024
56ea0cd
added regions to deepvariant
tanyasarkjain Oct 30, 2024
24aee57
deepvariant working on savio cluster (singularity)
Oct 30, 2024
b77019c
changes
tanyasarkjain Nov 1, 2024
646bf0a
change
tanyasarkjain Nov 1, 2024
cf172cf
succ run + changing to process_high from process_large
Nov 1, 2024
b8075d8
trgt workflow
tanyasarkjain Nov 5, 2024
d2609e7
change to fasta
tanyasarkjain Nov 5, 2024
aa4780e
sort
tanyasarkjain Nov 5, 2024
f257ed8
simplified plot functionality
tanyasarkjain Nov 5, 2024
699da3f
typo
tanyasarkjain Nov 5, 2024
a4e6c37
change
tanyasarkjain Nov 5, 2024
81e7951
small change
tanyasarkjain Nov 5, 2024
696e628
adding id option
tanyasarkjain Nov 5, 2024
0a18d19
fai
tanyasarkjain Nov 5, 2024
802718d
indexing
tanyasarkjain Nov 5, 2024
2ce6851
small config changes
tanyasarkjain Nov 5, 2024
6423d2d
config
Nov 5, 2024
6ca2e2d
new config for wgs
tanyasarkjain Nov 5, 2024
c73ac65
config update
tanyasarkjain Nov 5, 2024
cdcd88f
slight changes
tanyasarkjain Nov 5, 2024
fc47458
changes
tanyasarkjain Nov 5, 2024
28f208b
test
tanyasarkjain Nov 5, 2024
46e4bb1
changes
tanyasarkjain Nov 7, 2024
c052274
files unchanged fix
tanyasarkjain Nov 7, 2024
f12afe6
adding hiphase functionality
tanyasarkjain Nov 7, 2024
ebbad15
1 failure with aws triggering
tanyasarkjain Nov 8, 2024
2025a05
Add files via upload
tanyasarkjain Nov 8, 2024
a674907
Add files via upload
tanyasarkjain Nov 8, 2024
74b2b0a
Update README.md
tanyasarkjain Nov 8, 2024
1f56856
Update README.md
tanyasarkjain Nov 8, 2024
37963b6
Update README.md
tanyasarkjain Nov 8, 2024
da3da80
Update CITATIONS.md
tanyasarkjain Nov 8, 2024
313d45c
Add files via upload
tanyasarkjain Nov 8, 2024
c0b97fe
Update README.md
tanyasarkjain Nov 8, 2024
377cb01
update
tanyasarkjain Nov 8, 2024
01d85a5
merge conflict resolution?
tanyasarkjain Nov 8, 2024
0c11583
small todo resolutions
tanyasarkjain Nov 8, 2024
2e5fa8e
Update usage.md
tanyasarkjain Nov 8, 2024
274740d
Update usage.md
tanyasarkjain Nov 8, 2024
3e89c43
Update output.md
tanyasarkjain Nov 8, 2024
7656221
Update README.md
tanyasarkjain Nov 8, 2024
6f9c815
Update README.md
tanyasarkjain Nov 8, 2024
ddbf56d
Update pacvar.nf
tanyasarkjain Nov 8, 2024
5176035
Update output.md
tanyasarkjain Nov 8, 2024
1152d5a
sh be minor changes
tanyasarkjain Nov 8, 2024
7bebcf7
changing intervals
tanyasarkjain Nov 8, 2024
c56ebe3
hopefully solved the interval issue
tanyasarkjain Nov 8, 2024
4157a55
consolidate
tanyasarkjain Nov 8, 2024
7b52e42
seems to be working
tanyasarkjain Nov 8, 2024
35c13e5
deleting comment
tanyasarkjain Nov 8, 2024
b2d8232
delete uneeded files
tanyasarkjain Nov 9, 2024
046f425
changes
tanyasarkjain Nov 10, 2024
baf565c
small changes
tanyasarkjain Nov 11, 2024
7afee9d
downgraded nf-core
tanyasarkjain Nov 11, 2024
0057f8e
all tests passing - still need to resolve warnings
tanyasarkjain Nov 11, 2024
ff7025f
resolving some errors
tanyasarkjain Nov 12, 2024
7921aa9
more changes
tanyasarkjain Nov 12, 2024
c843076
Add files via upload
tanyasarkjain Nov 12, 2024
223608f
Update README.md
tanyasarkjain Nov 12, 2024
cb775d1
more warning resolutions
tanyasarkjain Nov 12, 2024
aa1b41f
update
tanyasarkjain Nov 12, 2024
cdfe995
working for all trials
tanyasarkjain Nov 12, 2024
9e9adce
removing output files for final pipeline first release
tanyasarkjain Nov 12, 2024
01461e7
clean up
tanyasarkjain Nov 12, 2024
d2ae46c
deleting out dir
tanyasarkjain Nov 12, 2024
ebd8c3d
Merge branch 'master' into pacvar
tanyasarkjain Nov 12, 2024
be5aae9
small gatk change
tanyasarkjain Nov 12, 2024
90114a6
Merge branch 'pacvar' of https://github.com/tanyasarkjain/pacvar into…
tanyasarkjain Nov 12, 2024
fd72c71
change in spacing
tanyasarkjain Nov 12, 2024
5bfb41b
space change
tanyasarkjain Nov 12, 2024
2a93b73
space
tanyasarkjain Nov 12, 2024
38905dc
changing memory
tanyasarkjain Nov 13, 2024
95da6c8
some changes
tanyasarkjain Nov 13, 2024
09280fc
resetting template to 2.14.0
tanyasarkjain Nov 13, 2024
0bc903c
tryna upgrade to version 3.0.2
tanyasarkjain Nov 13, 2024
21cc9f3
Template update for nf-core/tools version 3.0.2
tanyasarkjain Nov 13, 2024
018dda1
Template update for nf-core/tools version 3.0.2
tanyasarkjain Nov 13, 2024
93985a9
passing all tests version 3.0.2 - yet to try again locally
tanyasarkjain Nov 13, 2024
9adc612
syntax error
tanyasarkjain Nov 13, 2024
1a0a747
3.0.2
tanyasarkjain Nov 13, 2024
1202756
updating .nf-core.yml
tanyasarkjain Nov 13, 2024
7e70d6b
fixed a few upgrade to 3.0.2 issues
Nov 13, 2024
5450376
some corrections -- still more errors
tanyasarkjain Nov 13, 2024
6ea827c
working except for the naming which is null at the moment
Nov 13, 2024
3785686
fixed meta id issue
Nov 13, 2024
8930d63
mem test conf
Nov 14, 2024
cae0229
conf changes
Nov 14, 2024
a281eb7
pretty, 3.02 and linted
tanyasarkjain Nov 14, 2024
454838b
no out
tanyasarkjain Nov 14, 2024
ee2309e
changed nextflow.config to get rid of custom config
tanyasarkjain Nov 14, 2024
924207a
increasing memory
tanyasarkjain Nov 14, 2024
430dec2
changing gB
tanyasarkjain Nov 14, 2024
0d2fe9f
increasing cpu further for github actions
tanyasarkjain Nov 14, 2024
cf4de9e
subset of the data for mem saving
tanyasarkjain Nov 14, 2024
41ced78
smaller
tanyasarkjain Nov 14, 2024
0ce6978
modifying config files
tanyasarkjain Nov 14, 2024
278e31c
made dataset much smaller
tanyasarkjain Nov 14, 2024
e3563d6
removing test files
tanyasarkjain Nov 14, 2024
eb924e4
updated bed
tanyasarkjain Nov 14, 2024
00fb5f4
removing gatk test and making it a full test
tanyasarkjain Nov 14, 2024
dc56de6
pretty
tanyasarkjain Nov 14, 2024
76a8f2c
hope this passes
tanyasarkjain Nov 15, 2024
6e386c2
some small config changes and removing print statements
tanyasarkjain Nov 15, 2024
40f47c2
Update README.md
tanyasarkjain Nov 15, 2024
bc0a0c8
Update README.md
tanyasarkjain Nov 15, 2024
212687c
pretty
tanyasarkjain Nov 15, 2024
d093494
small documentation changes
tanyasarkjain Nov 15, 2024
fd2ce54
Update README.md
tanyasarkjain Nov 21, 2024
b07a17a
Update README.md
tanyasarkjain Nov 21, 2024
4699e0b
Update README.md
tanyasarkjain Nov 21, 2024
5971df7
Update README.md
tanyasarkjain Nov 21, 2024
499c5fb
Update assets/schema_input.json
tanyasarkjain Nov 21, 2024
223d917
resolving review comments
tanyasarkjain Nov 21, 2024
b9234f3
Update docs/usage.md
tanyasarkjain Nov 21, 2024
3b5a7d0
Update docs/usage.md
tanyasarkjain Nov 21, 2024
0837097
resolution of more review comments
tanyasarkjain Nov 21, 2024
190bc77
Update conf/test.config
tanyasarkjain Nov 21, 2024
c36b60f
Update conf/test_full.config
tanyasarkjain Nov 21, 2024
91bc8e6
Update conf/test_wgs_deepvariant.config
tanyasarkjain Nov 21, 2024
af6e510
Update nextflow.config
tanyasarkjain Nov 21, 2024
9a9999b
updating the release version from 0.1.0 to 1.0.0
tanyasarkjain Nov 21, 2024
fc27915
Update subworkflows/local/bam_snp_variant_calling/main.nf
tanyasarkjain Nov 21, 2024
23bae51
fixing mapping error
tanyasarkjain Nov 21, 2024
ed7bccf
fixing pacvar.nf include alignments
tanyasarkjain Nov 21, 2024
e4c442d
changing mapping
tanyasarkjain Nov 21, 2024
868357e
changed deepvariant documentation
tanyasarkjain Nov 26, 2024
b1a7d19
changed trgt documentation
tanyasarkjain Nov 26, 2024
aed4933
pretty
tanyasarkjain Nov 26, 2024
722f7fd
changed nextflow schema file
tanyasarkjain Nov 26, 2024
ae8617c
changing tools to snv_caller
tanyasarkjain Nov 26, 2024
49511fb
pretty
tanyasarkjain Nov 26, 2024
79468c4
changed nextflow_config to reflect name change
tanyasarkjain Nov 26, 2024
70da723
changing id to repeat_id
tanyasarkjain Nov 26, 2024
4d01c39
changing usage to reflect change from id to repeat_id naming?
tanyasarkjain Nov 26, 2024
e3f87df
fixing small indent issue and also changing a residual id to a repeat_id
tanyasarkjain Nov 26, 2024
3563a07
small change to bring pbmm2_align outside the else statement
tanyasarkjain Nov 26, 2024
5d6be3b
changed set value channel to not account for zipped files as was un-n…
tanyasarkjain Nov 26, 2024
c08cba2
changing pbi to no longer be required
tanyasarkjain Nov 26, 2024
5289a27
enforcing snv_caller to either be gatk4 or deepvariant
tanyasarkjain Nov 26, 2024
3d9b4c6
changed bam_snp_variant_calling to only check equal instead of contains
tanyasarkjain Nov 26, 2024
9f25386
adding pbi
tanyasarkjain Nov 26, 2024
f391f30
changing base path
tanyasarkjain Nov 26, 2024
29dd20a
made nextflow schema clearer
tanyasarkjain Nov 26, 2024
01d82ef
fixed typo
tanyasarkjain Nov 26, 2024
b0ce95b
adding versioning
tanyasarkjain Nov 26, 2024
240dda8
restoring testdata base path to what it was
tanyasarkjain Nov 26, 2024
558c288
Update output.md
tanyasarkjain Nov 26, 2024
88d0c85
Update output.md
tanyasarkjain Nov 26, 2024
0e883ff
Update output.md
tanyasarkjain Nov 26, 2024
13ad117
pretty
tanyasarkjain Nov 26, 2024
c1aa757
changed intervals and also removed ememoty dbsnp from test
tanyasarkjain Nov 26, 2024
b3f4a6f
pretty
tanyasarkjain Nov 26, 2024
b589037
trying to transfer to new trgt modules
tanyasarkjain Nov 26, 2024
28f8b49
deleted local copy of trgt
tanyasarkjain Nov 27, 2024
516ef4a
trgt
Nov 27, 2024
69d934d
Merge pull request #7 from tanyasarkjain/dev
tanyasarkjain Nov 27, 2024
d44c77c
fixing plot error
tanyasarkjain Nov 27, 2024
c78ae48
Merge branch 'dev' of https://github.com/nf-core/pacvar into dev
tanyasarkjain Nov 27, 2024
c67843e
changing the output prefix
tanyasarkjain Nov 27, 2024
2fcae5e
removed output
tanyasarkjain Nov 27, 2024
f8cf2f5
Update README.md
tanyasarkjain Nov 27, 2024
ae9fd46
Add files via upload
tanyasarkjain Nov 27, 2024
448fda8
Update README.md
tanyasarkjain Nov 27, 2024
8b12a13
Update README.md
tanyasarkjain Nov 27, 2024
56e297d
Update docs/output.md
tanyasarkjain Nov 28, 2024
7db788c
Update conf/test_wgs_gatk.config
tanyasarkjain Nov 28, 2024
05512eb
Update main.nf
tanyasarkjain Nov 28, 2024
3201ea7
Update subworkflows/local/repeat_characterization/main.nf
tanyasarkjain Nov 28, 2024
1dfcb2c
Update subworkflows/local/bam_snp_variant_calling/main.nf
tanyasarkjain Nov 28, 2024
c98da99
Update subworkflows/local/repeat_characterization/main.nf
tanyasarkjain Nov 28, 2024
095a8d8
pretty-ified
tanyasarkjain Nov 29, 2024
a11dd43
should have resolved all the comments
tanyasarkjain Nov 29, 2024
b4d5b86
fixing typo
tanyasarkjain Nov 29, 2024
09a37c5
fixing 2nd typo
tanyasarkjain Nov 29, 2024
8c61d06
removing tumor
tanyasarkjain Nov 29, 2024
6557f6c
trying to fix the trgt plot issue
tanyasarkjain Nov 30, 2024
d7c13bc
checking what repeat values looks like
tanyasarkjain Nov 30, 2024
a7d2abf
viewing to see what repeat form looks like
tanyasarkjain Nov 30, 2024
d7769a8
viewing to see what repeat form looks like
tanyasarkjain Nov 30, 2024
63e393b
restructuring id input
tanyasarkjain Nov 30, 2024
0c12f18
fixed language style issue
tanyasarkjain Nov 30, 2024
17a79c7
adding karyotyping for trgt genotype
tanyasarkjain Nov 30, 2024
1756850
fixed karyotype issue
tanyasarkjain Nov 30, 2024
e4da0d4
another typo
tanyasarkjain Nov 30, 2024
93256fc
testing
tanyasarkjain Nov 30, 2024
c7fec02
examining karyotype
tanyasarkjain Nov 30, 2024
6dacbc9
test
tanyasarkjain Nov 30, 2024
36c4226
trying to test defualts
tanyasarkjain Nov 30, 2024
a12649e
changing karyotype default
tanyasarkjain Nov 30, 2024
bfd35a1
fixing the karyotype issue
tanyasarkjain Nov 30, 2024
5c92589
updated subworkflows
tanyasarkjain Dec 2, 2024
3f49bd9
restoring deepvariant
tanyasarkjain Dec 2, 2024
3e0e483
fixed deepvariant
tanyasarkjain Dec 2, 2024
449aa28
trying with full dataset
tanyasarkjain Dec 3, 2024
a4b8df7
fixed
tanyasarkjain Dec 3, 2024
d1b8d57
update ci.yml for latest release
tanyasarkjain Dec 4, 2024
3ed6465
pretty
tanyasarkjain Dec 4, 2024
aee0823
update ci yml file
tanyasarkjain Dec 4, 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/pacvar, the standard workflow is as
1. Check that there isn't already an issue about your idea in the [nf-core/pacvar issues](https://github.com/nf-core/pacvar/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/pacvar repository](https://github.com/nf-core/pacvar) 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/pacv
- [ ] 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/pacvar/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/pacvar _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
28 changes: 21 additions & 7 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
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/pacvar'
# 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/pacvar' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: octokit/[email protected]
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
# TODO nf-core: You can customise AWS full pipeline tests as required
# Add full size test data (but still relatively small datasets for few samples)
# on the `test_full.config` test runs with only one set of parameters
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
Expand Down
66 changes: 58 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,40 +7,90 @@ 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

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/pacvar') }}"
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "23.04.0"
- "24.04.2"
- "latest-everything"
profile:
- "conda"
- "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
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
with:
distribution: "temurin"
java-version: "17"

- 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
# TODO nf-core: You can customise CI pipeline run tests as required
# For example: adding multiple test runs with different parameters
# Remember that you can parallelise this by using strategy.matrix
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test,docker --outdir ./results

- name: Run pipeline with test data (wgs and deepvariant)
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test_wgs_deepvariant,docker --outdir ./results

- name: Run pipeline with test data (wgs and gatk)
run: |
nextflow run ${GITHUB_WORKSPACE} -profile test_wgs_gatk,docker --outdir ./results
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/[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 != '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
2 changes: 1 addition & 1 deletion .github/workflows/linting_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download lint results
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
with:
workflow: linting.yml
workflow_conclusion: completed
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-announcements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: get topics and convert to hashtags
id: get_topics
run: |
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
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' ' ')" | sed 's/-//g' >> $GITHUB_OUTPUT
- uses: rzr/fediverse-action@master
with:
Expand Down
Loading
Loading