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

v2.0 Release Candidate #119

Merged
merged 279 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from 228 commits
Commits
Show all changes
279 commits
Select commit Hold shift + click to select a range
fde40cd
testing
Dec 2, 2021
dff0322
testing
Dec 2, 2021
c5d9625
testing
Dec 2, 2021
62621f0
testing
Dec 2, 2021
7be8d53
change curly brackets
Dec 8, 2021
d51a9f4
Removed comment
Dec 8, 2021
660795e
removed comments
Dec 8, 2021
a3d0ec5
removed comment
Dec 8, 2021
18d0d76
Removed macs_fdr parameter
Dec 8, 2021
299fcdb
Corrected bed file naming
Dec 8, 2021
05b0863
Testing
Dec 9, 2021
bb4ec4a
testing
Dec 9, 2021
aa4acb7
Checking channel content
Dec 9, 2021
fd82555
Checking channel content
Dec 9, 2021
14e0179
Checking file size
Dec 9, 2021
46549c3
Viewing channel content
Dec 9, 2021
2c763bd
Viewing channel content
Dec 9, 2021
eb80a17
Viewing channel content
Dec 9, 2021
75f97f0
Re-arranged code
Dec 9, 2021
5cdf694
commented out code
Dec 9, 2021
b01ba19
removed comments
Dec 9, 2021
87a700a
Included latest version of Nextflow in testing
Dec 9, 2021
95c78a8
Template update for nf-core/tools version 2.2
nf-core-bot Dec 14, 2021
890ddda
Merge branch 'dev' into peakcallers
chris-cheshire Jan 20, 2022
ed90be7
Whitespace fix
chris-cheshire Jan 20, 2022
cb56b02
Added run narrow peak param
chris-cheshire Jan 20, 2022
0e2da5b
Added handling for bt2l files in bowtie2
chris-cheshire Jan 20, 2022
85d425f
Merge branch 'dev' into peakcallers
chris-cheshire Jan 20, 2022
fde9d74
Whitespace trim
chris-cheshire Jan 20, 2022
a0fa1f4
Commenting
chris-cheshire Feb 1, 2022
087b47f
Added peak caller tests
chris-cheshire Feb 10, 2022
7b6b090
Refined CI test calling
chris-cheshire Feb 10, 2022
b71ad1c
whitespace
chris-cheshire Feb 11, 2022
6acb9d9
Whitespace fixes
chris-cheshire Feb 11, 2022
8d32361
Whitespace fixes
chris-cheshire Feb 11, 2022
2452b47
Test fixes
chris-cheshire Feb 11, 2022
2f944af
Merge branch 'peakcallers' into dev
chris-cheshire Feb 11, 2022
f520bcd
Updated nf-core modules
chris-cheshire Feb 11, 2022
80e6688
Converted linux functions
chris-cheshire Feb 11, 2022
2d03cd0
Removed functions files
chris-cheshire Feb 11, 2022
8d36dd9
Updated all local modules
chris-cheshire Feb 14, 2022
bc3d3a8
Updated subworkflows
chris-cheshire Feb 14, 2022
d2bcb0c
WIP - nf-core module
chris-cheshire Feb 14, 2022
53d0e47
wip
chris-cheshire Feb 14, 2022
b849f84
Updated schema
chris-cheshire Feb 14, 2022
3647d1b
Updated schema
chris-cheshire Feb 14, 2022
8f6bbd8
Prepare genome working
chris-cheshire Feb 14, 2022
08382c2
Cleaned up names
chris-cheshire Feb 14, 2022
2d04a04
Added sample sheet check
chris-cheshire Feb 14, 2022
0a8c3f2
Added cat fastq
chris-cheshire Feb 14, 2022
c65d375
Added fastqc and trimming and moved flowswitching to seperate config
chris-cheshire Feb 14, 2022
217413b
ALignment now working
chris-cheshire Feb 16, 2022
008d684
q filter now works
chris-cheshire Feb 16, 2022
124af40
Mark dups working
chris-cheshire Feb 17, 2022
a9e12b1
deduplication working
chris-cheshire Feb 21, 2022
c7036de
Meta annotation now working
chris-cheshire Feb 21, 2022
516298c
pre-peak processing
chris-cheshire Feb 22, 2022
057cef1
Peak calling working
chris-cheshire Feb 22, 2022
8d47326
Consensus peaks working
chris-cheshire Feb 23, 2022
ad9d5c6
Calc frags now working
chris-cheshire Feb 24, 2022
ad0dac1
igv and deep tools working
chris-cheshire Feb 24, 2022
c4d79e7
Reporting activated but not working
chris-cheshire Feb 24, 2022
2af69f8
Reporting working
chris-cheshire Feb 24, 2022
90fd140
whitespace fixes
chris-cheshire Feb 24, 2022
9022b24
Fix whitespace
chris-cheshire Feb 24, 2022
197dae1
fix peak calling tests
chris-cheshire Feb 25, 2022
e46a735
Fixed save ref tests
chris-cheshire Feb 25, 2022
a3a920b
Updated testing names
chris-cheshire Feb 25, 2022
4b6c87e
Param check fixed
chris-cheshire Feb 25, 2022
61985f8
fixed skip fastqc test
chris-cheshire Feb 25, 2022
0351b92
Save trimmed fixed
chris-cheshire Feb 25, 2022
d4f0d75
Fixed align intermed tests
chris-cheshire Feb 25, 2022
352c824
Fixed filtering and unligned tests
chris-cheshire Feb 25, 2022
9bd9ee7
Meta file changes
chris-cheshire Feb 25, 2022
1479456
Module changes
chris-cheshire Feb 25, 2022
4c824ca
Module meta updates
chris-cheshire Feb 25, 2022
d336af5
Module updates
chris-cheshire Feb 25, 2022
280257d
Fixed picard arg errors
chris-cheshire Feb 25, 2022
b5343f1
linting now passes
chris-cheshire Feb 25, 2022
a9ee9e4
Fixed test
chris-cheshire Feb 25, 2022
2c92705
Fixed tests
chris-cheshire Feb 25, 2022
47e00e3
Moved bigwig
chris-cheshire Feb 28, 2022
c94de33
fixed test
chris-cheshire Feb 28, 2022
7ee2ea2
Switched to node.js 14
chris-cheshire Feb 28, 2022
b65e65c
Fixed markdown
chris-cheshire Feb 28, 2022
a148402
Changed node version back for template compliance
chris-cheshire Feb 28, 2022
6b7e1c7
Added jupyter test folders
chris-cheshire Mar 3, 2022
408bf20
Added tests for conensus peaks and a parameter check
chris-cheshire Mar 3, 2022
ff5bcd9
Added commenting
chris-cheshire Mar 3, 2022
b8cfd2b
Added peaking calling normalisation options
chris-cheshire Mar 4, 2022
48fb557
removed cache
chris-cheshire Mar 4, 2022
469505c
Merge branch 'chris-feat' into v2.0
chris-cheshire Mar 4, 2022
1249e3f
Added auto-optional scale factor reporting
chris-cheshire Mar 5, 2022
26516ba
Restricted some prepare genome parameter labels
chris-cheshire Mar 7, 2022
52514e5
fixed syntax error
chris-cheshire Mar 7, 2022
fb403f6
Removed changes as you cant use endsWith
chris-cheshire Mar 7, 2022
5968d8b
Merge branch 'v2.0' into chris-feat
chris-cheshire Mar 7, 2022
338acf0
fixed gff output
chris-cheshire Mar 7, 2022
3b244bc
Now outputs fna files
chris-cheshire Mar 7, 2022
b7f2378
Altered alignment strategy based on whether trimming is skipped or not
chris-cheshire Mar 8, 2022
c5dccdb
Changed to same strategy for spikein
chris-cheshire Mar 8, 2022
065dca4
Added ability to separately scale igg factor for deeptool normalisation
chris-cheshire Mar 8, 2022
b27ff70
included resources.config with process_min and process_ultralow labels
Mar 9, 2022
ae24202
included resources.config in nextflow.config
Mar 9, 2022
ba61813
set local modules to process_min
Mar 9, 2022
e56ad5b
set local modules to process_ultralow
Mar 9, 2022
816bdee
set samtools_customview to process_ultralow
Mar 9, 2022
3e668e2
syntax fix
Mar 9, 2022
4bf0df0
Included name- and label-specific resource settings in resources.config
Mar 9, 2022
deed492
removed RPGC as an option
chris-cheshire Mar 14, 2022
1ec9c62
Added bam scaling tests
chris-cheshire Mar 14, 2022
6300d7d
Merge branch 'chris-feat' into v2.0
chris-cheshire Mar 14, 2022
a35d7a4
Merge branch 'v2.0' into dev
chris-cheshire Mar 14, 2022
64b167b
Whitespace fixes
chris-cheshire Mar 14, 2022
b9db2b7
Updated schema
chris-cheshire Mar 14, 2022
5124619
Removed TODO
chris-cheshire Mar 14, 2022
4128c70
Updated modules
chris-cheshire Mar 14, 2022
d7372d4
Expanded peak caller tests
chris-cheshire Mar 14, 2022
96b72a2
Updated CI script
chris-cheshire Mar 14, 2022
4185a41
Changed schema
chris-cheshire Mar 14, 2022
f8c4ceb
Added retrys to all CI
chris-cheshire Mar 14, 2022
e5dd34d
Fixed bam scaling BPM test
chris-cheshire Mar 14, 2022
725e705
Broke out verify_output_reporting tests
chris-cheshire Mar 14, 2022
f169fea
Updated reporting tests
chris-cheshire Mar 14, 2022
1f73de8
Merge pull request #106 from luslab/dev
chris-cheshire Mar 14, 2022
ff14edc
Merge branch 'dev' into chris-feat
chris-cheshire Mar 15, 2022
629c0f5
Template update for nf-core/tools version 2.3
nf-core-bot Mar 15, 2022
c6555e4
Added nf-core tagging
chris-cheshire Mar 16, 2022
c8bd066
Merge remote-tracking branch 'nf-core/nf-core-template-merge-2.3' int…
chris-cheshire Mar 16, 2022
fbd26a8
Updated markdown
chris-cheshire Mar 16, 2022
3aa35a9
Merge branch 'chris-feat' into dev
chris-cheshire Mar 16, 2022
7e32a4c
changed awk label
Mar 16, 2022
9a36300
Merge branch 'dev' into resource-allocation
Mar 16, 2022
2cea020
Fixed yaml linting
chris-cheshire Mar 16, 2022
13e6786
Merge pull request #110 from luslab/dev
chris-cheshire Mar 17, 2022
ea66eb1
Merge branch 'resource-allocation' into dev
Mar 23, 2022
0826e58
Template update for nf-core/tools version 2.3.1
nf-core-bot Mar 23, 2022
bae63c1
Merge branch 'dev' into chris-feat
chris-cheshire Mar 24, 2022
ccbbfdc
Template update for nf-core/tools version 2.3.2
nf-core-bot Mar 24, 2022
fd717d7
python samplesheet _check changes
Mar 24, 2022
6a90085
changed meta control_group to string
Mar 28, 2022
c30b581
Included is_control metadata and additional control column tests
Mar 28, 2022
9c761bf
Pulled out is_control metadata and included channel view
Mar 28, 2022
716c471
test
Mar 28, 2022
b270476
test
Mar 28, 2022
f922eb2
test
Mar 28, 2022
2644e52
branching on new is_control metadata variable
Mar 28, 2022
6d7d3d0
Syntax and comments fix
Mar 28, 2022
6bb80ff
Syntax fix
Mar 28, 2022
2abd78a
Added control id variable
Mar 28, 2022
b4833c0
Merge branch 'chris-feat' into dev
chris-cheshire Apr 14, 2022
035dac7
Merge branch 'dev' into chris-feat
chris-cheshire Apr 14, 2022
27e7bab
Merge remote-tracking branch 'nf-core/nf-core-template-merge-2.3.2' i…
chris-cheshire Apr 14, 2022
4fe2ab1
Removed yaml lint
chris-cheshire Apr 14, 2022
d69651a
Restored check samplesheet
chris-cheshire Apr 14, 2022
c6ff1fd
updated email template
chris-cheshire Apr 14, 2022
5f71223
updated nf-core config
chris-cheshire Apr 14, 2022
31fb853
Updated configs
chris-cheshire Apr 14, 2022
b35d3f6
Merge branch 'chris-feat' into dev
chris-cheshire Apr 15, 2022
c01b5a5
Merge branch 'dev' into tamara-samplesheet
chris-cheshire Apr 19, 2022
56e4187
samplesheet py changes
chris-cheshire Apr 19, 2022
99f041a
switched to dev samplesheet paths
chris-cheshire Apr 19, 2022
3d5a4eb
WIP
chris-cheshire Apr 19, 2022
b950466
Updated samplesheet processing and testing to new scheme
chris-cheshire Apr 20, 2022
adad6c3
Updated tests for new filenames
chris-cheshire Apr 21, 2022
c7825db
Prettier updates
chris-cheshire Apr 21, 2022
28fb72a
Added config to tests
chris-cheshire Apr 21, 2022
a2a5557
Whitespace fixes
chris-cheshire Apr 21, 2022
9857cd2
Mark dups fix for is_control
chris-cheshire Apr 21, 2022
812fe22
Fixed igg control splitting
chris-cheshire Apr 21, 2022
b3988e0
Fixed control selection for peak calling and added more tests
chris-cheshire Apr 22, 2022
f527a1a
Split out some peak caller tests
chris-cheshire Apr 22, 2022
38c399b
Merge branch 'tamara-samplesheet' into dev
chris-cheshire Apr 22, 2022
7f213d2
Merged all custom images into one
chris-cheshire Apr 26, 2022
7ee75cc
Removed old containers
chris-cheshire Apr 26, 2022
84a6fd8
Switched frip calculation to single thread
chris-cheshire Apr 26, 2022
4e95724
Added maxmin for heatmap
chris-cheshire Apr 26, 2022
be0823e
Fixed consensus peak threshold bug
chris-cheshire Apr 26, 2022
f99e78a
added option to skip frip
chris-cheshire Apr 26, 2022
33e76ed
fixed prettier
chris-cheshire Apr 26, 2022
f01d79c
Fixed whitespace
chris-cheshire May 3, 2022
76d509e
Fixed frip tests
chris-cheshire May 3, 2022
d2a7e99
Merge branch 'frip-optimisation' into dev
chris-cheshire May 3, 2022
a4d4b79
Updated schema
chris-cheshire May 3, 2022
07aa00c
Updated macs2
chris-cheshire May 3, 2022
e32038e
Updated modules
chris-cheshire May 3, 2022
fb4f3fb
bowtie2 now supports large indexes
chris-cheshire May 3, 2022
5d16701
Module update fixes for pipeline
chris-cheshire May 4, 2022
f8ecea7
Updated readme
chris-cheshire May 4, 2022
c609a84
Updated demo sample sheet
chris-cheshire May 4, 2022
b843daa
Updated usage
chris-cheshire May 5, 2022
1d0ae21
Fixed line endings
chris-cheshire May 5, 2022
604329e
Prettier changes
chris-cheshire May 5, 2022
78efd33
Prettier changes
chris-cheshire May 5, 2022
544814d
Merge pull request #118 from luslab/dev
chris-cheshire May 5, 2022
ee128c6
Spelling fixes
chris-cheshire May 5, 2022
cf985d1
Updated usage file
chris-cheshire May 5, 2022
ec2b467
Updated output
chris-cheshire May 5, 2022
9525af9
Updated documentation
chris-cheshire May 6, 2022
af9e4ca
Change log updated
chris-cheshire May 6, 2022
b626be2
Switched to biocontainer mulled for reporting
chris-cheshire May 9, 2022
3fe7194
Prettier updates
chris-cheshire May 9, 2022
3674b7f
Merge pull request #121 from luslab/dev
chris-cheshire May 9, 2022
6e3c8f1
Template update for nf-core/tools version 2.4
nf-core-bot May 16, 2022
8f1f565
Template merge
chris-cheshire May 18, 2022
3940bab
Changed all yaml to yml
chris-cheshire May 18, 2022
04f4bb8
Updated schema input
chris-cheshire May 18, 2022
89ed026
Removed config info
chris-cheshire May 18, 2022
8eae299
Updated test run names
chris-cheshire May 18, 2022
35e6b14
added cited tools
chris-cheshire May 18, 2022
fe9bd54
Added check for legacy sample sheet
chris-cheshire May 19, 2022
a6e594a
Updated botwie2 params to fully verbose
chris-cheshire May 19, 2022
db626ed
Updated with target.filtered
chris-cheshire May 19, 2022
fb91f9c
comment change
chris-cheshire May 19, 2022
ba81d1b
Simplfied param checking for nodes using enums
chris-cheshire May 19, 2022
e6293d9
Commenting
chris-cheshire May 19, 2022
37376a8
Prettier updates
chris-cheshire May 19, 2022
4081863
Fixed templates
chris-cheshire May 19, 2022
856455f
updated bowtie2
chris-cheshire May 19, 2022
071940d
Revert bt2 update
chris-cheshire May 19, 2022
50fbea7
updated module
chris-cheshire May 19, 2022
6be004e
Updated bowtie2
chris-cheshire May 24, 2022
1795392
Fix for bt2 update
chris-cheshire May 24, 2022
b1888c3
Merge pull request #124 from luslab/dev
chris-cheshire May 24, 2022
fe41975
Fixed bug where duplicates would not be removed
chris-cheshire May 25, 2022
e587d4d
Corrected dev folder
chris-cheshire May 25, 2022
e118510
Corrected markdown
chris-cheshire May 25, 2022
a4ccca9
Commenting and doc updates
chris-cheshire May 25, 2022
2f7e499
Macs2 will now use the igenomes genome parameter
chris-cheshire May 26, 2022
8246b09
Commenting update
chris-cheshire May 26, 2022
5165e83
Merge pull request #127 from luslab/dev
chris-cheshire May 26, 2022
c48d547
Replace gawk containers with ubuntu
drpatelh May 27, 2022
89a1af5
Merge pull request #128 from drpatelh/ubuntu
chris-cheshire May 27, 2022
ceb8988
Merge remote-tracking branch 'nf-core/dev' into dev
chris-cheshire May 29, 2022
8af48a4
Updated to old zenodo
chris-cheshire May 30, 2022
892b5ac
removed static reports folder
chris-cheshire May 30, 2022
30707ac
Modules config now uses "${params.publish_dir_mode}" instead of copy
chris-cheshire May 30, 2022
eb69e86
Updated version output
chris-cheshire May 30, 2022
ce16be3
Updated multiqc version
chris-cheshire May 30, 2022
cb1b89a
Updated versions
chris-cheshire May 30, 2022
e58873c
Updated samtools version
chris-cheshire May 30, 2022
b5c19c1
Merge pull request #129 from luslab/dev
chris-cheshire Jun 1, 2022
f71699a
Added versioning to cut and sort
chris-cheshire Jun 8, 2022
1e27946
Added more versioning into pipeline
chris-cheshire Jun 8, 2022
dbaad8c
Merge pull request #130 from luslab/dev
chris-cheshire Jun 8, 2022
f3005ef
Comment remove
chris-cheshire Jun 8, 2022
9c8abf9
updated all the test data paths
chris-cheshire Jun 8, 2022
90b5200
bumped version to 2.0
chris-cheshire Jun 8, 2022
ca92a9b
Updated modules
chris-cheshire Jun 8, 2022
f02083e
Merge pull request #131 from luslab/dev
chris-cheshire Jun 8, 2022
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
5 changes: 1 addition & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ trim_trailing_whitespace = true
indent_size = 4
indent_style = space

[*.{yml,yaml}]
[*.{md,yml,yaml,html,css,scss,js}]
indent_size = 2

[*.json]
insert_final_newline = unset

# These files are edited and tested upstream in nf-core/modules
[/modules/nf-core/**]
charset = unset
Expand Down
15 changes: 7 additions & 8 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ Contributions to the code are even more welcome ;)

If you'd like to write some code for nf-core/cutandrun, the standard workflow is as follows:

1. Check that there isn't already an issue about your idea in the [nf-core/cutandrun issues](https://github.com/nf-core/cutandrun/issues) to avoid duplicating work
* If there isn't one already, please create one so that others know you're working on this
1. Check that there isn't already an issue about your idea in the [nf-core/cutandrun issues](https://github.com/nf-core/cutandrun/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/cutandrun repository](https://github.com/nf-core/cutandrun) 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).
Expand Down Expand Up @@ -49,9 +48,9 @@ These tests are run both with the latest available version of `Nextflow` and als

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

* On your own fork, make a new branch `patch` based on `upstream/master`.
* Fix the bug, and bump version (X.Y.Z+1).
* A PR should be made on `master` from patch to directly this particular bug.
- On your own fork, make a new branch `patch` based on `upstream/master`.
- Fix the bug, and bump version (X.Y.Z+1).
- A PR should be made on `master` from patch to directly this particular bug.

## Getting help

Expand All @@ -73,7 +72,7 @@ If you wish to contribute a new step, please use the following coding standards:
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`.
9. Update MultiQC config `assets/multiqc_config.yaml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module.
9. Update MultiQC config `assets/multiqc_config.yml` so relevant suffixes, file name clean up and module plots are in the appropriate order. If applicable, add a [MultiQC](https://https://multiqc.info/) module.
10. Add a description of the output files and if relevant any appropriate images from the MultiQC report to `docs/output.md`.

### Default values
Expand All @@ -92,8 +91,8 @@ The process resources can be passed on to the tool dynamically within the proces

Please use the following naming schemes, to make it easy to understand what is going where.

* initial process channel: `ch_output_from_<process>`
* intermediate and terminal channels: `ch_<previousprocess>_for_<nextprocess>`
- initial process channel: `ch_output_from_<process>`
- intermediate and terminal channels: `ch_<previousprocess>_for_<nextprocess>`

### Nextflow version bumping

Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

name: Bug report
description: Report something that is broken or incorrect
labels: bug
body:

- type: markdown
attributes:
value: |
Expand Down
7 changes: 3 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,15 @@ Remember that PRs should be made against the dev branch, unless you're preparing

Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/cutandrun/tree/master/.github/CONTRIBUTING.md)
-->
<!-- markdownlint-disable ul-indent -->

## PR checklist

- [ ] This comment contains a description of changes (with reason).
- [ ] 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/cutandrun/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/cutandrun _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/cutandrun/tree/master/.github/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/cutandrun _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
- [ ] Usage Documentation in `docs/usage.md` is updated.
- [ ] Output Documentation in `docs/output.md` is updated.
- [ ] `CHANGELOG.md` is updated.
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/awsfulltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Launch workflow via tower
uses: nf-core/tower-action@v2
uses: nf-core/tower-action@v3
# 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 }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
pipeline: ${{ github.repository }}
revision: ${{ github.sha }}
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/cutandrun/work-${{ github.sha }}
parameters: |
{
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/cutandrun/results-${{ github.sha }}"
}
profiles: test_full,aws_tower
pre_run_script: 'export NXF_VER=21.10.3'
nextflow_config: |
process.errorStrategy = 'retry'
process.maxRetries = 3
10 changes: 5 additions & 5 deletions .github/workflows/awstest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
if: github.repository == 'nf-core/cutandrun'
runs-on: ubuntu-latest
steps:
# Launch workflow using Tower CLI tool action
- name: Launch workflow via tower
uses: nf-core/tower-action@v2

uses: nf-core/tower-action@v3
with:
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }}
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }}
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }}
pipeline: ${{ github.repository }}
revision: ${{ github.sha }}
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/cutandrun/work-${{ github.sha }}
parameters: |
{
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/cutandrun/results-test-${{ github.sha }}"
}
profiles: test,aws_tower
pre_run_script: 'export NXF_VER=21.10.3'
nextflow_config: |
process.errorStrategy = 'retry'
process.maxRetries = 3
5 changes: 2 additions & 3 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
- name: Check PRs
if: github.repository == 'nf-core/cutandrun'
run: |
{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/cutandrun ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]

"{ [[ ${{github.event.pull_request.head.repo.full_name }} == nf-core/cutandrun ]] && [[ $GITHUB_HEAD_REF = "dev" ]]; } || [[ $GITHUB_HEAD_REF == "patch" ]]"

# If the above check failed, post a comment on the PR explaining the failure
# NOTE - this doesn't currently work if the PR is coming from a fork, due to limitations in GitHub actions secrets
Expand Down Expand Up @@ -43,4 +42,4 @@ jobs:
Thanks again for your contribution!
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false

#
102 changes: 75 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test:
name: Run standard pipeline test
# 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/cutandrun') }}
if: "${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/cutandrun') }}"
runs-on: ubuntu-latest
env:
NXF_VER: ${{ matrix.nxf_ver }}
Expand All @@ -26,9 +26,9 @@ jobs:
# Nextflow versions
include:
# Test pipeline minimum Nextflow version
- NXF_VER: '21.10.3'
- NXF_VER: "21.10.3"
# Test latest nextflow version
- NXF_VER: ''
- NXF_VER: ""
steps:
- name: Check out pipeline code
uses: actions/checkout@v2
Expand All @@ -39,7 +39,7 @@ jobs:
sudo mv nextflow /usr/local/bin/

# Work around for the unexpected end of file error that github actions seems to get when downloading compressed
# files during pipelie execution
# files during pipeline execution
- name: Download data
run: |
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/hg38-chr20.fa.gz
Expand All @@ -49,9 +49,11 @@ jobs:
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/e_coli_U00096_3.fa.gz
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/e_coli_U00096_3.tar.gz

- name: Run pipeline
run: |
nextflow run ${GITHUB_WORKSPACE} -profile docker,test_local_zip
- name: Run Pipeline
uses: Wandalen/[email protected]
with:
command: nextflow run ${GITHUB_WORKSPACE} -profile docker,test_local_zip
attempt_limit: 2

##############################
### LARGE INTEGRATION TEST ###
Expand All @@ -68,7 +70,7 @@ jobs:
strategy:
matrix:
# Nextflow versions: check pipeline minimum and current latest
nxf_ver: ['21.10.3', '']
nxf_ver: ["21.10.3", ""]
steps:
- name: Check out pipeline code
uses: actions/checkout@v2
Expand All @@ -79,7 +81,7 @@ jobs:
sudo mv nextflow /usr/local/bin/

# Work around for the unexpected end of file error that github actions seems to get when downloading compressed
# files during pipelie execution
# files during pipeline execution
- name: Download data
run: |
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/hg38-chr20.fa.gz
Expand All @@ -89,9 +91,11 @@ jobs:
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/e_coli_U00096_3.fa.gz
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/e_coli_U00096_3.tar.gz

- name: Run pipeline with test data
run: |
nextflow run ${GITHUB_WORKSPACE} -profile docker,test_full_small_local_zip
- name: Run Pipeline
uses: Wandalen/[email protected]
with:
command: nextflow run ${GITHUB_WORKSPACE} -profile docker,test_full_small_local_zip
attempt_limit: 2

#####################################
### EDGE VERSION INTEGRATION TEST ###
Expand All @@ -102,7 +106,7 @@ jobs:
if: ${{ github.event_name != 'push' || (github.event_name == 'push' && github.repository == 'nf-core/cutandrun') }}
runs-on: ubuntu-latest
env:
NXF_VER: ''
NXF_VER: ""
NXF_EDGE: 1
NXF_ANSI_LOG: false
CAPSULE_LOG: none
Expand All @@ -117,7 +121,7 @@ jobs:
nextflow self-update

# Work around for the unexpected end of file error that github actions seems to get when downloading compressed
# files during pipelie execution
# files during pipeline execution
- name: Download data
run: |
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/hg38-chr20.fa.gz
Expand All @@ -127,9 +131,11 @@ jobs:
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/e_coli_U00096_3.fa.gz
wget -q https://raw.githubusercontent.com/nf-core/test-datasets/cutandrun/reference/genomes/e_coli_U00096_3.tar.gz

- name: Run pipeline with test data
run: |
nextflow run ${GITHUB_WORKSPACE} -profile docker,test_local_zip
- name: Run Pipeline
uses: Wandalen/[email protected]
with:
command: nextflow run ${GITHUB_WORKSPACE} -profile docker,test_local_zip
attempt_limit: 2

##############################
### UNIT TESTS ###
Expand All @@ -144,45 +150,87 @@ jobs:
strategy:
fail-fast: false
matrix:
nxf_version: ['21.10.3', '']
tags: ["samplesheet", "verify_output_input", "verify_output_align_short", "verify_output_align_long", "verify_output_peak_calling", "verify_output_reporting", "verify_output_save", "verify_output_skip"]
nxf_version: ["21.10.3", ""]
tags:
- test_params
- test_samplesheet
- verify_output_save_ref
- verify_output_only_input
- verify_output_save_merged
- verify_output_skip_fastqc
- verify_output_save_trimmed
- verify_output_skip_trimming
- verify_output_align_intermed
- verify_output_align_only_align
- verify_output_align_save_spikein_align
- verify_output_align_save_unaligned
- verify_output_only_filtering
- verify_output_align_duplicates_mark
- verify_output_align_duplicates_remove
- verify_output_align_duplicates_remove_target
- verify_output_peak_calling_only_peak_calling
- test_bam_scale_none
- test_bam_scale_spikein
- test_bam_scale_cpm
- test_bam_scale_rpkm
- test_bam_scale_bpm
- test_bam_scale_cpm_iggscale
- test_peak_callers_seacr
- test_peak_callers_macs2
- test_peak_callers_invalid
- test_peak_callers_seacr_macs2
- test_peak_callers_macs2_seacr
- test_peak_callers_seacr_macs2_noigg
- test_peak_callers_ctrl_tests
- test_conseneus_peaks_group
- test_conseneus_peaks_all
- test_conseneus_peaks_invalid
- verify_output_reporting_skip_reporting
- verify_output_reporting_skip_igv
- verify_output_reporting_skip_heatmaps
- verify_output_reporting_skip_multiqc
- verify_output_skip_frip
steps:
- uses: actions/checkout@v2
- name: Checkout Code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- uses: actions/cache@v2
- name: Setup Pip Cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"

- name: Install Python dependencies
run: python -m pip install --upgrade pip pytest-workflow

- uses: actions/cache@v2
- name: Restore Keys
uses: actions/cache@v2
with:
path: /usr/local/bin/nextflow
key: ${{ runner.os }}-nextflow-${{ matrix.nxf_version }}
restore-keys: |
${{ runner.os }}-nextflow-

- name: Install Nextflow
env:
NXF_VER: ${{ matrix.nxf_version }}
CAPSULE_LOG: none
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/

- name: Run pytest-workflow
run: pytest --tag ${{ matrix.tags }} --kwdof
uses: Wandalen/[email protected]
with:
command: pytest --tag ${{ matrix.tags }} --kwdof
attempt_limit: 3

- name: Upload logs on failure
if: failure()
Expand Down
Loading