Skip to content

Commit

Permalink
Merge pull request #85 from GooglingTheCancerGenome/iss83
Browse files Browse the repository at this point in the history
Iss83
  • Loading branch information
lsantuari authored Jan 12, 2021
2 parents 923b9ce + 1f6fea8 commit 3a9be2d
Show file tree
Hide file tree
Showing 27 changed files with 67,179 additions and 1,524 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ python:
- "3.7"
services:
- docker
addons:
sonarcloud:
organization: "gtcg"
token:
secure: "ig2eAvBCi0qn8Uz88cenkd5iEDF1bJO9C40NFHGeu/1icHAOaPqx/OVG+WCXxGPPgbm1rAQxc1fPI4VQcITxcJB0fivT7Ma/DY2cKYEMRiTIAuHWzGoYnmPunV6RUs/IguLF/yawSa+az6r3Whq52Xw0uUvmIkUTlX5VSWtLTekwiyQDLCSrsX1Kax0zptNVlMzFFWxETJLRywk/6o6VyG/uogvT7E0G2E7LIIctVWwdZ7jHXwIXkcFstg/9e2ayP5MlqOivP1VYoNxJc5FW2eS3T+GCzj9xKdrJIoRREbj+8qOY68ckc+BDvFQhgTF4Asfumkxu1SNtwVrhU6wZiROjoEFi53H27ve+PFZoCZipeevb28ec6KA9EWR5ILke59DiNYNfHlo2wv9jJRkEJLzoKT/qWCkW+CGslNZOrQ89AyrYG2lD3lQw0kmNH9/Pl7OC+eeX9wI9Bq7486AFfWH6wVc2Dh1dJanQTqveAxGnpn+BxjIu5HujCEs8ouTW+kgT/QJwqCEayQrD2teG5PSNbC/svgn6mkOIDctqqjM8nvAaCMY2uo4fQHpbQ8Aqe4h2muezEcIu63a2K8Szyo+91v+Rledx44521g8YCMPBJuMIrIZ/ke3xt16XU2b2D+kiwqQi6bdqdemJzImTAm16mr9EePBkotkutNl3mRI="
env:
global:
- PREFIX=gtcg/xenon
Expand All @@ -24,3 +29,4 @@ install:
- docker exec -u xenon -t $SCH ./install.sh
script:
- docker exec -u xenon -t $SCH ./run.sh $SCH $BAM $SEQIDS
- sonar-scanner
Empty file added CHANGELOG.md
Empty file.
7 changes: 4 additions & 3 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ keywords:
- "WGS"
- "BAM"
- "VCF"
- "CNN"

license: Apache-2.0
message: "If you use this software, please cite it using these metadata"
repository-code: "https://github.com/GooglingTheCancerGenome/sv-chaplin"
title: sv-chaplin
version: "0.0.0" # FIXME
repository-code: "https://github.com/GooglingTheCancerGenome/sv-channels"
title: sv-channels
version: "0.1.0"
53 changes: 53 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Contributing guidelines

We welcome any kind of contribution to our software, from simple comment or question to a full fledged [pull request](https://help.github.com/articles/about-pull-requests/). Please read and follow our [Code of Conduct](CODE_OF_CONDUCT.rst).

A contribution can be one of the following cases:

1. you have a question;
1. you think you may have found a bug (including unexpected behavior);
1. you want to make some kind of change to the code base (e.g. to fix a bug, to add a new feature, to update documentation);
1. you want to make a new release of the code base.

The sections below outline the steps in each case.

## You have a question

1. use the search functionality [here](https://github.com/GooglingTheCancerGenome/sv-channels/issues) to see if someone already filed the same issue;
1. if your issue search did not yield any relevant results, make a new issue;
1. apply the "Question" label; apply other labels when relevant.

## You think you may have found a bug

1. use the search functionality [here](https://github.com/GooglingTheCancerGenome/sv-channels/issues) to see if someone already filed the same issue;
1. if your issue search did not yield any relevant results, make a new issue, making sure to provide enough information to the rest of the community to understand the cause and context of the problem. Depending on the issue, you may want to include:
- the [SHA hashcode](https://help.github.com/articles/autolinked-references-and-urls/#commit-shas) of the commit that is causing your problem;
- some identifying information (name and version number) for dependencies you're using;
- information about the operating system;
1. apply relevant labels to the newly created issue.

## You want to make some kind of change to the code base

1. (**important**) announce your plan to the rest of the community *before you start working*. This announcement should be in the form of a (new) issue;
1. (**important**) wait until some kind of consensus is reached about your idea being a good idea;
1. if needed, fork the repository to your own Github profile and create your own feature branch off of the latest master commit. While working on your feature branch, make sure to stay up to date with the master branch by pulling in changes, possibly from the 'upstream' repository (follow the instructions [here](https://help.github.com/articles/configuring-a-remote-for-a-fork/) and [here](https://help.github.com/articles/syncing-a-fork/));
1. make sure the existing tests still work by running ``pytest``;
1. add your own tests (if necessary);
1. update or expand the documentation;
1. update the `CHANGELOG.md` file with change;
1. [push](http://rogerdudler.github.io/git-guide/>) your feature branch to (your fork of) the _sv-channels_ repository on GitHub;
1. create the pull request, e.g. following the instructions [here](https://help.github.com/articles/creating-a-pull-request/).

In case you feel like you've made a valuable contribution, but you don't know how to write or run tests for it, or how to generate the documentation: don't let this discourage you from making the pull request; we can help you! Just go ahead and submit the pull request, but keep in mind that you might be asked to append additional commits to your pull request.

## You want to make a new release of the code base

To create release you need write permission on the repository.

1. Check author list in `citation.cff` and `.zenodo.json` files
1. Bump the version using `bump2version <major|minor|patch>`. For example, `bump2version major` will increase major version numbers everywhere its needed (code, meta, etc.) in the repo.
1. Update the `CHANGELOG.md` to include changes made
1. Goto [GitHub release page](https://github.com/GooglingTheCancerGenome/sv-channels/releases)
1. Press draft a new release button
1. Fill version, title and description field
1. Press the Publish Release button
47 changes: 2 additions & 45 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ https://badgen.net/ to see which other badges are available.)
:target: https://doi.org/10.000/FIXME
:alt: Zenodo Badge

.. |CII Best Practices Badge| image:: https://bestpractices.coreinfrastructure.org/projects/FIXME/badge
:target: https://bestpractices.coreinfrastructure.org/projects/FIXME
.. |CII Best Practices Badge| image:: https://bestpractices.coreinfrastructure.org/projects/sv-channels/badge
:target: https://bestpractices.coreinfrastructure.org/projects/sv-channels
:alt: CII Best Practices Badge

.. |Travis CI| image:: https://travis-ci.org/GooglingTheCancerGenome/sv-channels.svg?branch=iss32
Expand All @@ -58,10 +58,6 @@ https://badgen.net/ to see which other badges are available.)
:target: https://sv-channels.readthedocs.io/en/latest/?badge=latest


The project setup is documented in `a separate document <project_setup.rst>`_.
Feel free to remove this document (and/or the link to this document) if you
don't need it.

***********************
Documentation for users
***********************
Expand All @@ -85,35 +81,6 @@ Execution
SCH=local # gridengine or slurm
./run.sh $SCH data/test.bam 12,22 # run jobs locally or on a compute cluster
Glossary of terms
=================

.. list-table::
:header-rows: 1

* - Term
- Description

****************************
Documentation for developers
****************************

Installation
============

.. code-block:: console
git clone https://github.com/GooglingTheCancerGenome/sv-channels.git
cd sv-channels
conda update -y conda # update Conda
conda env create -n sv-channels -f environment.yaml
conda activate sv-channels
Run tests (including coverage) with:

.. code-block:: console
Flowchart
=========

Expand All @@ -131,7 +98,6 @@ have a look at the `contribution guidelines <CONTRIBUTING.rst>`_.
Documentation for maintainers
*****************************


*******
License
*******
Expand All @@ -149,12 +115,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


*******
Credits
*******

This package was created with `Cookiecutter
<https://github.com/audreyr/cookiecutter>`_ and the `NLeSC/python-template
<https://github.com/NLeSC/python-template>`_.
66,670 changes: 66,668 additions & 2 deletions data/test.fasta

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion scripts/genome_wide/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Loading

0 comments on commit 3a9be2d

Please sign in to comment.