Skip to content

Commit 048fd68

Browse files
authored
Merge pull request #143 from nf-core/dev
Dev > Master for 1.2 release
2 parents 21be314 + 45c2885 commit 048fd68

File tree

68 files changed

+2702
-1102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2702
-1102
lines changed

.github/CONTRIBUTING.md

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,57 @@
11
# nf-core/chipseq: Contributing Guidelines
22

3-
Hi there! Many thanks for taking an interest in improving nf-core/chipseq.
3+
Hi there!
4+
Many thanks for taking an interest in improving nf-core/chipseq.
45

5-
We try to manage the required tasks for nf-core/chipseq using GitHub issues, you probably came to this page when creating one. Please use the pre-filled template to save time.
6-
7-
However, don't be put off by this template - other more general issues and suggestions are welcome! Contributions to the code are even more welcome ;)
8-
9-
> If you need help using or modifying nf-core/chipseq then the best place to ask is on the pipeline channel on [Slack](https://nf-co.re/join/slack/).
6+
We try to manage the required tasks for nf-core/chipseq using GitHub issues, you probably came to this page when creating one.
7+
Please use the pre-filled template to save time.
108

9+
However, don't be put off by this template - other more general issues and suggestions are welcome!
10+
Contributions to the code are even more welcome ;)
1111

12+
> If you need help using or modifying nf-core/chipseq then the best place to ask is on the nf-core Slack [#chipseq](https://nfcore.slack.com/channels/chipseq) channel ([join our Slack here](https://nf-co.re/join/slack)).
1213
1314
## Contribution workflow
14-
If you'd like to write some code for nf-core/chipseq, the standard workflow
15-
is as follows:
1615

17-
1. Check that there isn't already an issue about your idea in the
18-
[nf-core/chipseq issues](https://github.com/nf-core/chipseq/issues) to avoid
19-
duplicating work.
16+
If you'd like to write some code for nf-core/chipseq, the standard workflow is as follows:
17+
18+
1. Check that there isn't already an issue about your idea in the [nf-core/chipseq issues](https://github.com/nf-core/chipseq/issues) to avoid duplicating work
2019
* If there isn't one already, please create one so that others know you're working on this
21-
2. Fork the [nf-core/chipseq repository](https://github.com/nf-core/chipseq) to your GitHub account
20+
2. [Fork](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) the [nf-core/chipseq repository](https://github.com/nf-core/chipseq) to your GitHub account
2221
3. Make the necessary changes / additions within your forked repository
23-
4. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged.
24-
25-
If you're not used to this workflow with git, you can start with some [basic docs from GitHub](https://help.github.com/articles/fork-a-repo/) or even their [excellent interactive tutorial](https://try.github.io/).
22+
4. Submit a Pull Request against the `dev` branch and wait for the code to be reviewed and merged
2623

24+
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/).
2725

2826
## Tests
29-
When you create a pull request with changes, [Travis CI](https://travis-ci.com/) will run automatic tests.
27+
28+
When you create a pull request with changes, [GitHub Actions](https://github.com/features/actions) will run automatic tests.
3029
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
3130

3231
There are typically two types of tests that run:
3332

3433
### Lint Tests
35-
The nf-core has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
34+
35+
`nf-core` has a [set of guidelines](https://nf-co.re/developers/guidelines) which all pipelines must adhere to.
3636
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.
3737

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

4040
### Pipeline Tests
41-
Each nf-core pipeline should be set up with a minimal set of test-data.
42-
Travis CI then runs the pipeline on this data to ensure that it exists successfully.
41+
42+
Each `nf-core` pipeline should be set up with a minimal set of test-data.
43+
`GitHub Actions` then runs the pipeline on this data to ensure that it exits successfully.
4344
If there are any failures then the automated tests fail.
44-
These tests are run both with the latest available version of Nextflow and also the minimum required version that is stated in the pipeline code.
45+
These tests are run both with the latest available version of `Nextflow` and also the minimum required version that is stated in the pipeline code.
46+
47+
## Patch
48+
49+
: warning: Only in the unlikely and regretful event of a release happening with a bug.
50+
51+
* On your own fork, make a new branch `patch` based on `upstream/master`.
52+
* Fix the bug, and bump version (X.Y.Z+1).
53+
* A PR should be made on `master` from patch to directly this particular bug.
4554

4655
## Getting help
47-
For further information/help, please consult the [nf-core/chipseq documentation](https://github.com/nf-core/chipseq#documentation) and don't hesitate to get in touch on the [nf-core/chipseq pipeline channel](https://nfcore.slack.com/channels/chipseq) on [Slack](https://nf-co.re/join/slack/).
56+
57+
For further information/help, please consult the [nf-core/chipseq documentation](https://nf-co.re/nf-core/chipseq/docs) and don't hesitate to get in touch on the nf-core Slack [#chipseq](https://nfcore.slack.com/channels/chipseq) channel ([join our Slack here](https://nf-co.re/join/slack)).
Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,42 @@
1+
# nf-core/chipseq bug report
2+
13
Hi there!
24

3-
Thanks for telling us about a problem with the pipeline. Please delete this text and anything that's not relevant from the template below:
5+
Thanks for telling us about a problem with the pipeline.
6+
Please delete this text and anything that's not relevant from the template below:
7+
8+
## Describe the bug
49

5-
#### Describe the bug
610
A clear and concise description of what the bug is.
711

8-
#### Steps to reproduce
12+
## Steps to reproduce
13+
914
Steps to reproduce the behaviour:
15+
1016
1. Command line: `nextflow run ...`
1117
2. See error: _Please provide your error message_
1218

13-
#### Expected behaviour
19+
## Expected behaviour
20+
1421
A clear and concise description of what you expected to happen.
1522

16-
#### System:
17-
- Hardware: [e.g. HPC, Desktop, Cloud...]
18-
- Executor: [e.g. slurm, local, awsbatch...]
19-
- OS: [e.g. CentOS Linux, macOS, Linux Mint...]
20-
- Version [e.g. 7, 10.13.6, 18.3...]
23+
## System
24+
25+
- Hardware: <!-- [e.g. HPC, Desktop, Cloud...] -->
26+
- Executor: <!-- [e.g. slurm, local, awsbatch...] -->
27+
- OS: <!-- [e.g. CentOS Linux, macOS, Linux Mint...] -->
28+
- Version <!-- [e.g. 7, 10.13.6, 18.3...] -->
29+
30+
## Nextflow Installation
31+
32+
- Version: <!-- [e.g. 19.10.0] -->
33+
34+
## Container engine
2135

22-
#### Nextflow Installation:
23-
- Version: [e.g. 0.31.0]
36+
- Engine: <!-- [e.g. Conda, Docker or Singularity] -->
37+
- version: <!-- [e.g. 1.0.0] -->
38+
- Image tag: <!-- [e.g. nfcore/chipseq:1.0.0] -->
2439

25-
#### Container engine:
26-
- Engine: [e.g. Conda, Docker or Singularity]
27-
- version: [e.g. 1.0.0]
28-
- Image tag: [e.g. nfcore/chipseq:1.0.0]
40+
## Additional context
2941

30-
#### Additional context
3142
Add any other context about the problem here.
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1+
# nf-core/chipseq feature request
2+
13
Hi there!
24

3-
Thanks for suggesting a new feature for the pipeline! Please delete this text and anything that's not relevant from the template below:
5+
Thanks for suggesting a new feature for the pipeline!
6+
Please delete this text and anything that's not relevant from the template below:
7+
8+
## Is your feature request related to a problem? Please describe
49

5-
#### Is your feature request related to a problem? Please describe.
610
A clear and concise description of what the problem is.
11+
712
Ex. I'm always frustrated when [...]
813

9-
#### Describe the solution you'd like
14+
## Describe the solution you'd like
15+
1016
A clear and concise description of what you want to happen.
1117

12-
#### Describe alternatives you've considered
18+
## Describe alternatives you've considered
19+
1320
A clear and concise description of any alternative solutions or features you've considered.
1421

15-
#### Additional context
22+
## Additional context
23+
1624
Add any other context about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
Many thanks to contributing to nf-core/chipseq!
1+
# nf-core/chipseq pull request
22

3-
Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs).
3+
Many thanks for contributing to nf-core/chipseq!
4+
5+
Please fill in the appropriate checklist below (delete whatever is not relevant).
6+
These are the most common things requested on pull requests (PRs).
47

58
## PR checklist
6-
- [ ] This comment contains a description of changes (with reason)
7-
- [ ] If you've fixed a bug or added code that should be tested, add tests!
8-
- [ ] If necessary, also make a PR on the [nf-core/chipseq branch on the nf-core/test-datasets repo]( https://github.com/nf-core/test-datasets/pull/new/nf-core/chipseq)
9-
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`).
10-
- [ ] Make sure your code lints (`nf-core lint .`).
11-
- [ ] Documentation in `docs` is updated
12-
- [ ] `CHANGELOG.md` is updated
13-
- [ ] `README.md` is updated
14-
15-
**Learn more about contributing:** https://github.com/nf-core/chipseq/tree/master/.github/CONTRIBUTING.md
9+
10+
- [ ] This comment contains a description of changes (with reason)
11+
- [ ] If you've fixed a bug or added code that should be tested, add tests!
12+
- [ ] If necessary, also make a PR on the [nf-core/chipseq branch on the nf-core/test-datasets repo](https://github.com/nf-core/test-datasets/pull/new/nf-core/chipseq)
13+
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`).
14+
- [ ] Make sure your code lints (`nf-core lint .`).
15+
- [ ] Documentation in `docs` is updated
16+
- [ ] `CHANGELOG.md` is updated
17+
- [ ] `README.md` is updated
18+
19+
**Learn more about contributing:** [CONTRIBUTING.md](https://github.com/nf-core/chipseq/tree/master/.github/CONTRIBUTING.md)

.github/markdownlint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ default: true,
33
line-length: false
44
no-duplicate-header:
55
siblings_only: true
6+
MD033:
7+
allowed_elements: [details, summary, p, img]
8+
MD007:
9+
indent: 4

.github/workflows/awsfulltest.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: nf-core AWS full size tests
2+
# This workflow is triggered on releases.
3+
# It runs the -profile 'test_full' on AWS batch
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
run-awstest:
11+
if: github.repository == 'nf-core/chipseq'
12+
name: Run AWS test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Setup Miniconda
16+
uses: goanpeca/[email protected]
17+
with:
18+
auto-update-conda: true
19+
python-version: 3.7
20+
- name: Install awscli
21+
run: conda install -c conda-forge awscli
22+
- name: Start AWS batch job
23+
env:
24+
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
25+
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
26+
TOWER_ACCESS_TOKEN: ${{secrets.AWS_TOWER_TOKEN}}
27+
#AWS_JOB_DEFINITION: ${{secrets.AWS_JOB_DEFINITION}}
28+
AWS_JOB_QUEUE: ${{secrets.AWS_JOB_QUEUE}}
29+
AWS_S3_BUCKET: ${{secrets.AWS_S3_BUCKET}}
30+
run: | # Submits job to AWS batch using a 'nextflow-4GiB' job definition. Setting JVM options to "-XX:+UseG1GC" for more efficient garbage collection when staging remote files.
31+
aws batch submit-job \
32+
--region eu-west-1 \
33+
--job-name nf-core-chipseq \
34+
--job-queue $AWS_JOB_QUEUE \
35+
--job-definition nextflow-4GiB \
36+
--container-overrides '{"command": ["nf-core/chipseq", "-r '"${GITHUB_SHA}"' -profile test_full --outdir s3://'"${AWS_S3_BUCKET}"'/chipseq/results-'"${GITHUB_SHA}"' -w s3://'"${AWS_S3_BUCKET}"'/chipseq/work-'"${GITHUB_SHA}"' -with-tower"], "environment": [{"name": "TOWER_ACCESS_TOKEN", "value": "'"$TOWER_ACCESS_TOKEN"'"}, {"name": "NXF_OPTS", "value": "-XX:+UseG1GC"}]}'

.github/workflows/awstest.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: nf-core AWS test
2+
# This workflow is triggered on push to the master branch.
3+
# It runs the -profile 'test' on AWS batch
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- dev # just for testing purposes, to be removed
10+
11+
jobs:
12+
run-awstest:
13+
if: github.repository == 'nf-core/chipseq'
14+
name: Run AWS test
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Setup Miniconda
18+
uses: goanpeca/[email protected]
19+
with:
20+
auto-update-conda: true
21+
python-version: 3.7
22+
- name: Install awscli
23+
run: conda install -c conda-forge awscli
24+
- name: Start AWS batch job
25+
env:
26+
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
27+
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
28+
TOWER_ACCESS_TOKEN: ${{secrets.AWS_TOWER_TOKEN}}
29+
#AWS_JOB_DEFINITION: ${{secrets.AWS_JOB_DEFINITION}}
30+
AWS_JOB_QUEUE: ${{secrets.AWS_JOB_QUEUE}}
31+
AWS_S3_BUCKET: ${{secrets.AWS_S3_BUCKET}}
32+
run: | # Submits job to AWS batch using a 'nextflow-4GiB' job definition. Setting JVM options to "-XX:+UseG1GC" for more efficient garbage collection when staging remote files.
33+
aws batch submit-job \
34+
--region eu-west-1 \
35+
--job-name nf-core-chipseq \
36+
--job-queue $AWS_JOB_QUEUE \
37+
--job-definition nextflow-4GiB \
38+
--container-overrides '{"command": ["nf-core/chipseq", "-r '"${GITHUB_SHA}"' -profile test --outdir s3://'"${AWS_S3_BUCKET}"'/chipseq/results-'"${GITHUB_SHA}"' -w s3://'"${AWS_S3_BUCKET}"'/chipseq/work-'"${GITHUB_SHA}"' -with-tower"], "environment": [{"name": "TOWER_ACCESS_TOKEN", "value": "'"$TOWER_ACCESS_TOKEN"'"}, {"name": "NXF_OPTS", "value": "-XX:+UseG1GC"}]}'

.github/workflows/branch.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: nf-core branch protection
2+
# This workflow is triggered on PRs to master branch on the repository
3+
# It fails when someone tries to make a PR against the nf-core `master` branch instead of `dev`
4+
on:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
# PRs are only ok if coming from an nf-core `dev` branch or a fork `patch` branch
14+
- name: Check PRs
15+
run: |
16+
{ [[ $(git remote get-url origin) == *nf-core/chipseq ]] && [[ ${GITHUB_HEAD_REF} = "dev" ]]; } || [[ ${GITHUB_HEAD_REF} == "patch" ]]

0 commit comments

Comments
 (0)