Skip to content

Commit a76bd69

Browse files
authored
Merge pull request #82 from nf-core/dev
Dev > Master
2 parents 5f67d82 + 0b68862 commit a76bd69

File tree

102 files changed

+5320
-9338
lines changed

Some content is hidden

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

102 files changed

+5320
-9338
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
*.config linguist-language=nextflow
2-
*.nf linguist-language=nextflow

.github/CONTRIBUTING.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# nf-core/chipseq: Contributing Guidelines
2+
3+
Hi there! Many thanks for taking an interest in improving nf-core/chipseq.
4+
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-core-invite.herokuapp.com/).
10+
11+
12+
13+
## Contribution workflow
14+
If you'd like to write some code for nf-core/chipseq, the standard workflow
15+
is as follows:
16+
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.
20+
* 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
22+
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/).
26+
27+
28+
## Tests
29+
When you create a pull request with changes, [Travis CI](https://travis-ci.org/) will run automatic tests.
30+
Typically, pull-requests are only fully reviewed when these tests are passing, though of course we can help out before then.
31+
32+
There are typically two types of tests that run:
33+
34+
### Lint Tests
35+
The nf-core has a [set of guidelines](http://nf-co.re/guidelines) which all pipelines must adhere to.
36+
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.
37+
38+
If any failures or warnings are encountered, please follow the listed URL for more documentation.
39+
40+
### 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.
43+
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+
46+
## 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 pipeline channel on [Slack](https://nf-core-invite.herokuapp.com/).
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Hi there!
2+
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:
4+
5+
#### Describe the bug
6+
A clear and concise description of what the bug is.
7+
8+
#### Steps to reproduce
9+
Steps to reproduce the behaviour:
10+
1. Command line: `nextflow run ...`
11+
2. See error: _Please provide your error message_
12+
13+
#### Expected behaviour
14+
A clear and concise description of what you expected to happen.
15+
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...]
21+
22+
#### Nextflow Installation:
23+
- Version: [e.g. 0.31.0]
24+
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]
29+
30+
#### Additional context
31+
Add any other context about the problem here.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Hi there!
2+
3+
Thanks for suggesting a new feature for the pipeline! Please delete this text and anything that's not relevant from the template below:
4+
5+
#### Is your feature request related to a problem? Please describe.
6+
A clear and concise description of what the problem is.
7+
Ex. I'm always frustrated when [...]
8+
9+
#### Describe the solution you'd like
10+
A clear and concise description of what you want to happen.
11+
12+
#### Describe alternatives you've considered
13+
A clear and concise description of any alternative solutions or features you've considered.
14+
15+
#### Additional context
16+
Add any other context about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Many thanks to contributing to nf-core/chipseq!
2+
3+
Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs).
4+
5+
## 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

.github/markdownlint.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Markdownlint configuration file
2+
default: true,
3+
line-length: false
4+
no-multiple-blanks: 0
5+
blanks-around-headers: false
6+
blanks-around-lists: false
7+
header-increment: false
8+
no-duplicate-header:
9+
siblings_only: true

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ data/
44
results/
55
.DS_Store
66
tests/test_data
7-
trace.txt*
8-
timeline.html*
7+
*.pyc

.travis.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
11
sudo: required
2-
language: java
2+
language: python
33
jdk: openjdk8
44
services: docker
5+
python: '3.6'
6+
cache: pip
7+
matrix:
8+
fast_finish: true
59

6-
before_install: docker pull nfcore/chipseq:latest
10+
before_install:
11+
# PRs to master are only ok if coming from dev branch
12+
- '[ $TRAVIS_PULL_REQUEST = "false" ] || [ $TRAVIS_BRANCH != "master" ] || ([ $TRAVIS_PULL_REQUEST_SLUG = $TRAVIS_REPO_SLUG ] && [ $TRAVIS_PULL_REQUEST_BRANCH = "dev" ])'
13+
# Pull the docker image first so the test doesn't wait for this
14+
- docker pull nfcore/chipseq:dev
15+
# Fake the tag locally so that the pipeline runs properly
16+
# Looks weird when this is :dev to :dev, but makes sense when testing code for a release (:dev to :1.0.1)
17+
- docker tag nfcore/chipseq:dev nfcore/chipseq:dev
718

819
install:
920
# Install Nextflow
10-
- mkdir /tmp/nextflow
11-
- cd /tmp/nextflow
21+
- mkdir /tmp/nextflow && cd /tmp/nextflow
1222
- wget -qO- get.nextflow.io | bash
1323
- sudo ln -s /tmp/nextflow/nextflow /usr/local/bin/nextflow
1424
# Install nf-core/tools
15-
- git clone https://github.com/nf-core/tools.git /tmp/nf-core-tools
16-
- cd /tmp/nf-core-tools
17-
- pip install --user -e .
18-
# Make test directories
19-
- mkdir ${TRAVIS_BUILD_DIR}/tests
20-
- cd ${TRAVIS_BUILD_DIR}/tests
25+
- pip install --upgrade pip
26+
- pip install nf-core
27+
# Reset
28+
- mkdir ${TRAVIS_BUILD_DIR}/tests && cd ${TRAVIS_BUILD_DIR}/tests
29+
# Install markdownlint-cli
30+
- sudo apt-get install npm && npm install -g markdownlint-cli
2131

2232
env:
23-
- NXF_VER=0.30.1
24-
- ''
33+
- NXF_VER='0.32.0' # Specify a minimum NF version that should be tested and work
34+
- NXF_VER='' # Plus: get the latest NF version and check that it works
2535

2636
script:
2737
# Lint the pipeline code
28-
- "nf-core lint ${TRAVIS_BUILD_DIR}"
29-
# Run, build reference genome
38+
- nf-core lint ${TRAVIS_BUILD_DIR}
39+
# Lint the documentation
40+
- markdownlint ${TRAVIS_BUILD_DIR} -c ${TRAVIS_BUILD_DIR}/.github/markdownlint.yml
41+
# Run the pipeline with the test profile
3042
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker
31-
# Basic run with supplied reference
32-
- nextflow run ${TRAVIS_BUILD_DIR} -profile test,docker --genome EF4

CHANGELOG.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1-
## nf-core/chipseq v1.0dev
2-
This release marks the point where the pipeline was moved from nf-core/chipseq
3-
over to the new nf-core community, at nf-core/chipseq.
4-
5-
6-
Repository moved from https://github.com/SciLifeLab/NGI-ChIPseq
1+
# nf-core/chipseq: Changelog
72

3+
## v1.0dev - [date]
4+
* Add option for building BWA index for larger ref
5+
* Update software versions in uppmax-modules
6+
* Add function to validate input files in MACS config file
7+
* Remove ngsplot and move the function of plotProfile in deepTools
8+
* Support reference genome GRCm37
9+
* Add pre-defined genome sizes for all reference genomes to support macs2 peak calling and downstream processing
10+
* Add blacklist files for ce11, BDGP6, hg38, and mm9
11+
* Documents revised accordingly.
12+
* Major overhaul of docs and assets in-line with nf-core/tools v1.4
13+
* Added ability to use nf-core/configs along with associated docs
14+
* Updated manifest scope to deal with pipeline version
15+
* Removed NGI and SciLifeLab logos, and changed name of pipeline logo
16+
* Added awsbatch configuration
17+
* Put file() calls in fromFilePath()
18+
* Removed --project param specific to UPPMAX
19+
* Moved appropriate default params variables to nextflow.config
20+
* Changed Picard memory specification
21+
* Changed version number back to 1.0dev from 1.0
22+
* Updated conda packages
23+
* Major template changes in-line with nf-core/tools v1.5
824

25+
Repository moved from <https://github.com/SciLifeLab/NGI-ChIPseq>

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team on [Slack](https://nf-core-invite.herokuapp.com/). The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)