-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from qbic-pipelines/dev
Release 1.0.0
- Loading branch information
Showing
32 changed files
with
1,180 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
Many thanks to contributing to nf-core/bamtofastq! | ||
Many thanks to contributing to qbic-pipelines/bamtofastq! | ||
|
||
Please fill in the appropriate checklist below (delete whatever is not relevant). These are the most common things requested on pull requests (PRs). | ||
|
||
## 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 necessary, also make a PR on the [nf-core/bamtofastq branch on the nf-core/test-datasets repo]( https://github.com/nf-core/test-datasets/pull/new/nf-core/bamtofastq) | ||
- [ ] If necessary, add test data to `testdata/` | ||
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker`). | ||
- [ ] Make sure your code lints (`nf-core lint .`). | ||
- [ ] Make sure your code lints (`nf-core lint .`). | ||
- [ ] Documentation in `docs` is updated | ||
- [ ] `CHANGELOG.md` is updated | ||
- [ ] `README.md` is updated | ||
|
||
**Learn more about contributing:** https://github.com/nf-core/bamtofastq/tree/master/.github/CONTRIBUTING.md | ||
**Learn more about contributing:** https://github.com/qbic-pipelines/bamtofastq/tree/master/.github/CONTRIBUTING.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: qbic-pipelines branch protection | ||
# This workflow is triggered on PRs to master branch on the repository | ||
# It fails when someone tries to make a PR against the nf-core `master` branch instead of `dev` | ||
on: | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# PRs to the nf-core repo master branch are only ok if coming from the nf-core repo `dev` or any `patch` branches | ||
- name: Check PRs | ||
if: github.repository == 'qbic-pipelines/bamtofastq' | ||
run: | | ||
{ [[ ${{github.event.pull_request.head.repo.full_name}} == qbic-pipelines/bamtofastq ]] && [[ $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 | ||
- name: Post PR comment | ||
if: failure() | ||
uses: mshick/add-pr-comment@v1 | ||
with: | ||
message: | | ||
Hi @${{ github.event.pull_request.user.login }}, | ||
It looks like this pull-request is has been made against the ${{github.event.pull_request.head.repo.full_name}} `master` branch. | ||
The `master` branch on qbic-pipelines repositories should always contain code from the latest release. | ||
Because of this, PRs to `master` are only allowed if they come from the ${{github.event.pull_request.head.repo.full_name}} `dev` branch. | ||
You do not need to close this PR, you can change the target branch to `dev` by clicking the _"Edit"_ button at the top of this page. | ||
Thanks again for your contribution! | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
allow-repeats: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: qbic-pipelines CI | ||
# This workflow runs the pipeline with the minimal test dataset to check that it completes without any syntax errors | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
test: | ||
name: Run workflow tests | ||
# Only run on push if this is the qbic-pipelines dev branch (merged PRs) | ||
runs-on: ubuntu-latest | ||
env: | ||
NXF_VER: ${{ matrix.nxf_ver }} | ||
NXF_ANSI_LOG: false | ||
strategy: | ||
matrix: | ||
# Nextflow versions: check pipeline minimum and current latest | ||
nxf_ver: ['20.04.1', ''] | ||
config: ['test_chr'] | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check if Dockerfile or Conda environment changed | ||
uses: technote-space/get-diff-action@v1 | ||
with: | ||
PREFIX_FILTER: | | ||
Dockerfile | ||
environment.yml | ||
- name: Build new docker image | ||
if: env.GIT_DIFF | ||
run: docker build --no-cache . -t qbicpipelines/bamtofastq:1.0.0 | ||
|
||
- name: Pull docker image | ||
if: ${{ !env.GIT_DIFF }} | ||
run: | | ||
docker pull qbicpipelines/bamtofastq:dev | ||
docker tag qbicpipelines/bamtofastq:dev qbicpipelines/bamtofastq:1.0.0 | ||
- name: Install Nextflow | ||
run: | | ||
wget -qO- get.nextflow.io | bash | ||
sudo mv nextflow /usr/local/bin/ | ||
- 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 | ||
- name: Run pipeline with test data, only obtain reads mapping to chrX and chrY | ||
run: | | ||
nextflow run ${GITHUB_WORKSPACE} -profile ${{ matrix.config }},docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: qbic-pipelines linting | ||
# This workflow is triggered on pushes and PRs to the repository. | ||
# It runs the `nf-core lint` and markdown lint tests to ensure that the code meets the nf-core guidelines | ||
on: | ||
push: | ||
pull_request: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
Markdown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10' | ||
- name: Install markdownlint | ||
run: npm install -g markdownlint-cli | ||
- name: Run Markdownlint | ||
run: markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.github/markdownlint.yml | ||
YAML: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10' | ||
- name: Install yaml-lint | ||
run: npm install -g yaml-lint | ||
- name: Run yaml-lint | ||
run: yamllint $(find ${GITHUB_WORKSPACE} -type f -name "*.yml") | ||
#Comment this for now, as it won't pass until the template update is done, which will come in the next release | ||
# nf-core: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Install Nextflow | ||
# run: | | ||
# wget -qO- get.nextflow.io | bash | ||
# sudo mv nextflow /usr/local/bin/ | ||
# - uses: actions/setup-python@v1 | ||
# with: | ||
# python-version: '3.6' | ||
# architecture: 'x64' | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install nf-core | ||
# - name: Run nf-core lint | ||
# run: nf-core lint ${GITHUB_WORKSPACE} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: qbic-pipelines Docker push | ||
# This builds the docker image and pushes it to DockerHub | ||
# Runs on qbic-pipelines repo releases and push event to 'dev' branch (PR merges) | ||
on: | ||
push: | ||
branches: | ||
- dev | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
push_dockerhub: | ||
name: Push new Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
# Only run for the qbic-pipelines repo, for releases and merged PRs | ||
if: ${{ github.repository == 'qbic-pipelines/bamtofastq' }} | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASS }} | ||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build new docker image | ||
run: docker build --no-cache . -t qbicpipelines/bamtofastq:latest | ||
|
||
- name: Push Docker image to DockerHub (dev) | ||
if: ${{ github.event_name == 'push' }} | ||
run: | | ||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | ||
docker tag qbicpipelines/bamtofastq:latest qbicpipelines/bamtofastq:dev | ||
docker push qbicpipelines/bamtofastq:dev | ||
- name: Push Docker image to DockerHub (release) | ||
if: ${{ github.event_name == 'release' }} | ||
run: | | ||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | ||
docker push qbicpipelines/bamtofastq:latest | ||
docker tag qbicpipelines/bamtofastq:latest qbicpipelines/bamtofastq:${{ github.event.release.tag_name }} | ||
docker push qbicpipelines/bamtofastq:${{ github.event.release.tag_name }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# nf-core/bamtofastq: Changelog | ||
|
||
## v1.0dev - [date] | ||
Initial release of nf-core/bamtofastq, created with the [nf-core](http://nf-co.re/) template. | ||
## v1.0.0 - Ada Lovelace | ||
Initial release of qbic-pipelines/bamtofastq, created with the [nf-core](http://nf-co.re/) template. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM nfcore/base:1.7 | ||
LABEL authors="Friederike Hanssen" \ | ||
description="Docker image containing all requirements for nf-core/bamtofastq pipeline" | ||
description="Docker image containing all requirements for qbic-pipelines/bamtofastq pipeline" | ||
|
||
COPY environment.yml / | ||
RUN conda env create -f /environment.yml && conda clean -a | ||
ENV PATH /opt/conda/envs/nf-core-bamtofastq-1.0dev/bin:$PATH | ||
ENV PATH /opt/conda/envs/qbic-pipelines-bamtofastq-1.0.0/bin:$PATH |
Oops, something went wrong.