Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74cc132

Browse files
authored
Merge pull request#230 from bcgsc/Release/v2.2.8
Release/v2.2.8
2 parentse205d9e +b2798ce commit74cc132

File tree

161 files changed

+5346
-3941
lines changed

Some content is hidden

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

161 files changed

+5346
-3941
lines changed

‎.github/CONTRIBUTING.md

Lines changed: 62 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ Run the tests and compute code coverage
3636
pytest tests
3737
```
3838

39-
##Build theSphinxDocumentation
39+
##Build the Documentation
4040

4141
```bash
4242
pip install .[docs]
43-
sphinx-build docs/source/ html
43+
markdown_refdocs mavis -o docs/package --link
44+
mkdocs build
4445
```
4546

46-
The contents of the user manual can then be viewed by opening the build/html/index.html in any available
47-
web browser (i.e. google-chrome, firefox, etc.)
47+
The contents of the user manual can then be viewed by opening the build-docs/index.html
48+
in any availableweb browser (i.e. google-chrome, firefox, etc.)
4849

4950

5051
##Deploy to PyPi
@@ -68,43 +69,83 @@ twine upload -r pypi dist/*
6869
```
6970

7071

71-
###Reporting a Bug
72+
##Reporting a Bug
7273

73-
Please make sure to search through the issues before reporting a bug to ensure there isn't already an open issue.
74+
Please make sure to search through the issues before reporting a bug to ensure there isn't
75+
already an open issue.
7476

7577

76-
###Coding Conventions
78+
##Conventions
7779

78-
####Formatting/Style
80+
###Linting
7981

80-
- In general, follow[pep8](https://www.python.org/dev/peps/pep-0008/) style guides (except maximum line width)
81-
- docstrings should follow[sphinx google code style](http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
82-
- any column name which may appear in any of the intermediate or final output files must be defined in``mavis.constants.COLUMNS``
82+
Use[black](https://github.com/psf/black) with strings off and line length 100
8383

84+
```bash
85+
black mavis -S -l 100
86+
```
87+
88+
###Docstrings
8489

85-
#####Types in docstrings
90+
docstrings should follow[sphinx google code style](http://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html)
8691

87-
if you want to be more explicit with nested types, the following conventions are used throughout the code
92+
if you want to be more explicit with nested types, please follow the same format
93+
used by[python type annotations](https://docs.python.org/3/library/typing.html)
8894

89-
- dictionary:``d = {<key>: <value>}`` becomes``dict of <value> by <key>``
90-
- list:``l = [1, 2, 3]`` becomes``list of int``
91-
- mixed:``d = {'a': [1, 2, 3], 'b': [4, 5, 6]}`` becomes``dict of list of int by str``
92-
- tuples:``('a', 1)`` becomes``tuple of str and int``
95+
```text
96+
arg1 (List[str]): a list of strings
97+
```
98+
99+
However using proper type annotations is preferred for new code and then only including the
100+
description of the parameter in the docstring and not its type
93101

102+
```python
94103

95-
####Tests
104+
defsome_function(some_arg: List[str]) ->None:
105+
"""
106+
Args:
107+
some_arg: this arg does stuff
108+
"""
109+
```
110+
111+
###Output Columns
112+
113+
any column name which may appear in any of the intermediate or final output files must be defined in`mavis.constants.COLUMNS` as well as added to the[columns glossary](../outputs/columns)
114+
115+
116+
###Tests
96117

97118
- all new code must have unit tests in the tests subdirectory
98-
- in general for assertEqual statements, the expected value is given first
99119

100120
Tests can be run as follows
101121

102122
```bash
103123
pytest tests
104124
```
105125

106-
To run the tests with tox (multiple python installs tested). Note that you will need to have multiple python installs on your path
126+
###Branching Model
127+
128+
If you are working on a large feature, create a base branch for the feature off develop. Generally
129+
these follow the naming pattern
107130

108131
```bash
109-
tox
132+
git checkout -b integration/issue-<number>-<short-name>
110133
```
134+
135+
If you are working on a smaller feature then simply make a feature branch off develop
136+
137+
```bash
138+
git checkout -b feature/issue-<number>-<short-name>
139+
```
140+
141+
Once ready, a PR should be made to develop and review should be requested from the other developers.
142+
143+
Releases are done by creating a release branch off develop
144+
145+
```bash
146+
git checkout -b release/vX.X.X
147+
```
148+
149+
Updating the version number in setup.py in the release branch, and then making a PR to master.
150+
After the PR has been merged to master a tag/release should be created with the release notes
151+
and a PR to merge master back into develop should be made

‎.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name:Bug report
3+
about:Create a report to help us improve
4+
title:''
5+
labels:bug
6+
assignees:''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. run command '...'
16+
2. See error ...
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Input Data**
22+
If applicable, add the input data used when the bug was observed
23+
24+
**Configuration**
25+
If applicable, include the mavis configuration file that was used to run the pipeline
26+
27+
**Versions (please complete the following information):**
28+
- OS:[e.g. centos-07]
29+
- Python Version[e.g. 3.6.1]
30+
- MAVIS Version[e.g. 22]
31+
- Blat/BWA Version
32+
33+
**Additional context**
34+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name:Feature request
3+
about:Suggest an idea for this project
4+
title:''
5+
labels:enhancement
6+
assignees:''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when[...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

‎.github/workflows/build.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name:build
5+
6+
on:[push, pull_request]
7+
8+
jobs:
9+
build:
10+
runs-on:ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version:[3.6, 3.7, 3.8]
14+
15+
steps:
16+
-uses:actions/checkout@v2
17+
-name:Set up Python ${{ matrix.python-version }}
18+
uses:actions/setup-python@v2
19+
with:
20+
python-version:${{ matrix.python-version }}
21+
-name:Install dependencies
22+
run:|
23+
python -m pip install --upgrade pip setuptools
24+
pip install .[test]
25+
-name:Lint with flake8
26+
run:|
27+
pip install flake8
28+
# stop the build if there are Python syntax errors or undefined names
29+
flake8 mavis --count --select=E9,F63,F7,F82 --show-source --statistics
30+
-name:Lint with black
31+
run:|
32+
pip install black
33+
# stop the build if black needs to be run
34+
black mavis -S -l 100 --check
35+
-name:install bwa
36+
run:|
37+
git clone https://github.com/lh3/bwa.git
38+
cd bwa
39+
git checkout v0.7.17
40+
make
41+
cd ..
42+
-name:install blat
43+
run:|
44+
wget http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/blat/blat
45+
chmod a+x blat
46+
-name:run short tests with pytest
47+
run:|
48+
export PATH=$PATH:$(pwd):$(pwd)/bwa
49+
pytest tests -v --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov mavis --cov-report term --cov-report xml --durations=10
50+
env:
51+
RUN_FULL:0
52+
if:github.event_name != 'pull_request'
53+
-name:run full tests with pytest
54+
run:|
55+
export PATH=$PATH:$(pwd):$(pwd)/bwa
56+
pytest tests -v --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov mavis --cov-report term --cov-report xml --durations=10
57+
env:
58+
RUN_FULL:1
59+
if:github.event_name == 'pull_request'
60+
-name:Upload pytest test results
61+
uses:actions/upload-artifact@master
62+
with:
63+
name:pytest-results-${{ matrix.python-version }}
64+
path:junit/test-results-${{ matrix.python-version }}.xml
65+
# Use always() to always run this step to publish test results when there are test failures
66+
if:always()
67+
-name:Update code coverage report to CodeCov
68+
uses:codecov/codecov-action@v1
69+
with:
70+
token:${{ secrets.CODECOV_TOKEN }}
71+
file:./coverage.xml
72+
flags:unittests
73+
env_vars:OS,PYTHON
74+
name:codecov-umbrella
75+
fail_ci_if_error:true
76+
if:matrix.python-version == 3.8

‎.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflows will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name:publish
5+
6+
on:
7+
release:
8+
types:[created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on:ubuntu-latest
14+
15+
steps:
16+
-uses:actions/checkout@v2
17+
-name:Set up Python
18+
uses:actions/setup-python@v2
19+
with:
20+
python-version:'3.x'
21+
-name:Install dependencies
22+
run:|
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
-name:Build and publish
26+
env:
27+
TWINE_USERNAME:${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD:${{ secrets.PYPI_PASSWORD }}
29+
run:|
30+
python setup.py sdist bdist_wheel install
31+
twine check dist/*
32+
twine upload dist/*

‎.gitignore

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1-
/*/*/tmp
1+
# python generated files
22
/.eggs
3-
/tmp
4-
# /
5-
*.~lock*
6-
*.noseids
7-
/cytoBand.txt
8-
/temp*
93
/coverage
10-
/test*svg
114
/venv
125
/.coverage
136
*.pyc
147
*__pycache__
15-
/*.bed
16-
/*.fa
17-
/docs/build
18-
/docs/source/auto
19-
/output
20-
/hg19_masked_regions.tsv
21-
*.fai
22-
POG*
8+
build-docs
239
*.egg-info*
2410
build
25-
dist
26-
src
27-
/docs/source/config_settings_glossary.rst
2811
*coverage*
29-
*.tgf
30-
analysis_scripts
31-
.vscode
32-
*.nfs*
33-
*eggs/
34-
html
12+
dist
13+
junit
3514
.pytest*
3615
.tox
16+
*eggs/
17+
.mypy_cache
18+
19+
# aligners
20+
blat
21+
bwa
22+
*.fai
23+
24+
# user editing generated files
25+
*.~lock*
26+
.vscode
27+
*.nfs*
28+
junit
29+
30+
# generated documentation
31+
/docs/package/mavis/*.md
32+
/docs/package/mavis/*/*.md
33+
# don't ignore subpackage summary files
34+
!/docs/package/mavis/*/index.md

‎.readthedocs.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@
55
# Required
66
version:2
77

8-
# Build documentation in the docs/ directory with Sphinx
9-
sphinx:
10-
configuration:docs/source/conf.py
11-
128
# Build documentation with MkDocs
13-
#mkdocs:
14-
# configuration: mkdocs.yml
9+
mkdocs:
10+
configuration:mkdocs.yml
11+
fail_on_warning:false
1512

1613
# Optionally build your docs in additional formats such as PDF and ePub
1714
formats:all

‎.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp