Skip to content

Commit 94948f4

Browse files
committed
Merge branch 'release/0.8.0'
2 parents a9c6c40 + 58ae4a2 commit 94948f4

55 files changed

Lines changed: 4647 additions & 2185 deletions

Some content is hidden

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

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
*.pyc
33
*.so
44
*.swp
5-
*egg-info
65
*egg
76
.cache
8-
.pytest_cache
97
.coverage
108
coverage.xml
119
cc-test-reporter
1210
Log.out
1311
genomepy/cfg/default.yaml
14-
tests/data/small_genome.fa.gz
1512

1613
# Directories
14+
.pytest_cache
1715
build
16+
docs/_build
17+
genomepy.egg-info
18+
tests/data
1819
dist
1920
eggs
2021
tmp
21-
docs/_build
2222
.vscode
2323
.idea

.travis.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ env:
1010
- CC_TEST_REPORTER_ID=951f438ac8a0fa93801ff0bf69922df59fe03800bf7ea8ab77a3c26cda444979
1111
jobs:
1212
- PYTHON_VERSION: "3.6"
13-
# - PYTHON_VERSION: "3.7"
14-
# - PYTHON_VERSION: "3.8"
1513

1614
before_install:
1715
# install miniconda
@@ -26,7 +24,6 @@ before_install:
2624
- conda config --set always_yes yes
2725

2826
install:
29-
# python version is specified in environment.yml
3027
- conda env create -n genomepy python=$PYTHON_VERSION -f environment.yml
3128
- source activate genomepy
3229
- python setup.py develop
@@ -35,19 +32,18 @@ install:
3532
before_script:
3633
# install codeclimate test coverage
3734
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
38-
wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64;
39-
else
40-
wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64;
35+
wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64;
36+
chmod +x ./cc-test-reporter;
37+
./cc-test-reporter before-build;
4138
fi
42-
- chmod +x ./cc-test-reporter
43-
- ./cc-test-reporter before-build
4439

4540
script:
4641
- black --check setup.py genomepy/ tests/
4742
- flake8 setup.py genomepy/ tests/
48-
- pytest -v --disable-pytest-warnings --cov=genomepy --cov-report=xml tests/
49-
- genomepy providers
43+
- pytest -vv --disable-pytest-warnings --cov=genomepy --cov-config=tests/.coveragerc --cov-report=xml tests/*
5044

51-
# Pipe the coverage data to Code Climate
5245
after_script:
53-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT; fi
46+
# send the coverage data to Code Climate
47+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
48+
./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT;
49+
fi

CHANGELOG.md

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,73 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

77
## [Unreleased]
88

9+
## [0.8.0] - 2020-05-11
10+
11+
### Added
12+
- Now using the UCSC rest API
13+
- `genomepy search` now accepts taxonomy IDs
14+
- `genomepy search` will now return taxonomy IDs and Accession numbers
15+
- The README.txt will now store taxonomy IDs and Accession numbers
16+
- Gene annotations:
17+
- Downloading of annotation file (BED/GTF/GFF3) from URL
18+
- Automatic search for annotation file (GTF/GFF3) in genome directory when downloading from URL
19+
- Option for URL provider to link to annotation file (to process is similarly to other providers)
20+
- Automatic annotation sanitizing (and skip sanitizing flag `-s` for `genomepy install`)
21+
- Option to only download annotation with `genomepy install -o`
22+
- Plugins:
23+
- Blacklists are automatically unzipped.
24+
- Multithreading support for plugins, thanks to alienzj!
25+
- STAR now uses the annotation file for a (one-pass) splice-aware index
26+
27+
### Changed
28+
- sizes no longer a plugin, but always gets executed
29+
- `genomepy FUNCTION --help` texts expanded
30+
- all genomepy classes exported when imported into Python
31+
- all providers now let you know when they are downloading assembly information.
32+
- more descriptive feedback to installing & many errors
33+
34+
### Removed
35+
- Sizes plugin
36+
- Old tests
37+
- Removed outdated dependency `xmltodict`
38+
39+
### Fixed
40+
- `genomepy config` options made more robust
41+
- README.txt will no longer:
42+
- update 3x for each command
43+
- drop regex info
44+
- have duplicate lines
45+
46+
### Refactoring
47+
- Genome class moved to `genome.py`
48+
- Many functions moved to `utils.py`
49+
- Many other functions made static methods of a class
50+
- `Genome.track2fasta` and `Genome.get_random_sequence` optimized
51+
- All Provider classes now store their genomes as a dict-in-dict, with the assembly name as key.
52+
- Many Provider class functions now standardized. Many functions moved to from the daughter classes to the ProviderBase class.
53+
- README.txt file generation and updating standardized
54+
- Unit tests! all functions now have an individual test. Almost all test use functions already tested prior to them.
55+
- Old tests incorporated in several extra tests (e01, e02, e03).
56+
- Raise statements now use more fitting errors
57+
- All instances of `os.remove` exchanged for `os.unlink`
58+
- Almost all warnings fixed
59+
- Extensive, COVID19-enabled, and somewhat pointless alphabetizing, optimizing and/or organizing changes to
60+
- imports everywhere
61+
- `.gitignore`
62+
- `.travis.yml`
63+
- `release_checklist.md`
64+
- `cli.py`
65+
- strings (many strings with .format() replaced with f-strings)
66+
967
## [0.7.2] - 2019-03-31
1068

11-
### Fixes
69+
### Fixed
1270
- Fix minor issue with hg19 wrong blacklist url
1371
- Ensembl downloads over http instead of https (release 99 no longer has https)
1472

1573
## [0.7.1] - 2019-11-20
1674

17-
### Fixes
75+
### Fixed
1876
- STAR is not longer enabled by default
1977

2078
## [0.7.0] - 2019-11-18
@@ -89,7 +147,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
89147

90148
### Fixed
91149

92-
- Fixed genome_dir argument to `genomepy install`
150+
- Fixed genomes_dir argument to `genomepy install`
93151
- Fixed msgpack dependency
94152
- Fixed issue with `config generate` where config directory does note exist.
95153

0 commit comments

Comments
 (0)