Skip to content

Commit df1a264

Browse files
Merge branch 'develop'
2 parents 33ade29 + f2154d8 commit df1a264

42 files changed

Lines changed: 664 additions & 1081 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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,22 @@ website/**/*
2323
.cache/
2424
.idea/
2525
**/.ipynb_checkpoints/
26-
.idea/
2726
.vscode
2827
.coverage*
2928
coverage.xml
3029

3130
test/data/maelstrom/activity*
3231
test/data/maelstrom/final*
3332
test/data/maelstrom/*png
33+
test/data/maelstrom/*pfm
34+
test/data/maelstrom/*txt*
3435
test/data/maelstrom/motif.freq.txt
3536
test/data/maelstrom/gimme.vertebrate.v3.1.motif2factors.txt
3637
test/data/maelstrom/gimme.vertebrate.v3.1.pwm
3738
test/data/maelstrom/input.table.txt
38-
test/**/*fai
39+
test/**/*.fa.fai
40+
test/**/*.fa.sizes
41+
test/**/*.gaps.bed
3942

4043
tmp/*
4144

.pre-commit-config.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
repos:
2+
- repo: https://github.com/pycqa/isort
3+
rev: 5.10.1
4+
hooks:
5+
- id: isort
6+
27
- repo: https://github.com/ambv/black
3-
rev: 21.5b1
8+
rev: 22.3.0
49
hooks:
510
- id: black
11+
612
- repo: https://gitlab.com/pycqa/flake8
7-
rev: 3.9.2
13+
rev: 4.0.1
814
hooks:
915
- id: flake8
16+
additional_dependencies: [
17+
'flake8-bugbear==22.4.25',
18+
]

.rtd-environment.yml

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
1-
name: gimmemotifs
21
channels:
3-
- defaults
4-
- bioconda
52
- conda-forge
3+
- bioconda
4+
- defaults
65
dependencies:
7-
- biofluff
6+
# docs specific packages
7+
- sphinx_bootstrap_theme
8+
9+
# gimme packages (without the motif discovery tools)
810
- configparser
9-
- diskcache
10-
- feather-format
11-
- genomepy >=0.8.3
11+
- conda-forge::diskcache
12+
- conda-forge::feather-format
13+
- bioconda::genomepy >=0.11.1
14+
- ipywidgets # Necessary for progress bar in Jupyter notebook
15+
- conda-forge::iteround
1216
- jinja2
13-
- logomaker
17+
- bioconda::logomaker
18+
- loguru
1419
- matplotlib-base >=3.1.2
15-
- ncurses
16-
- numpy
17-
- pandas >=1.0.3
18-
- pillow
19-
- pip
20+
- numpy >= 1.6.0
21+
- pandas >=1.0.3, <=1.1.5 # 1.3.5/1.4.2 are bugged
2022
- pyarrow >=0.16.0
21-
- pybedtools
22-
- pybigwig
23-
- python >=3
24-
- pyyaml >=3.10
25-
- qnorm
26-
- represent
27-
- scikit-learn >=0.18
28-
- scipy >=1.3.0
29-
- seaborn
23+
- bioconda::pybedtools >=0.9.0
24+
- bioconda::pysam >=0.16
25+
- python >=3.8
26+
- python-xxhash
27+
- conda-forge::qnorm >=0.8.1
28+
- scikit-learn >=0.23.2
29+
- scipy >=1.4.1
30+
- seaborn >=0.10.1
3031
- statsmodels
31-
- tqdm >=4.27.0
32+
- tqdm >=4.46.1
3233
- xdg
33-
- xgboost >=0.71
34-
- sphinx_bootstrap_theme
35-
- numpydoc
36-
- pip:
37-
- xxhash
34+
- xgboost >=1.0.2

.travis.yml

Lines changed: 16 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,41 @@ branches:
44
- master
55
- develop
66

7-
matrix:
8-
allow_failures:
9-
- os: osx
10-
include:
11-
- os: osx
12-
language: generic
13-
- os: linux
14-
language: python
15-
python: "3.6"
7+
os: linux
8+
dist: focal
9+
language: minimal
1610

1711
env:
1812
global:
1913
- CC_TEST_REPORTER_ID=3865090108d29191b1d34760d2ed5825d67b7566f0f87090e688b7513fdef063
2014

2115
before_install:
2216
# setup miniconda
23-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
24-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
25-
else
26-
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
27-
fi
17+
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
2818
- chmod +x miniconda.sh
2919
- ./miniconda.sh -b -p $HOME/miniconda -f
30-
- source "$HOME/miniconda/etc/profile.d/conda.sh"
31-
- hash -r
32-
- conda config --set always_yes yes --set changeps1 no
33-
- conda update -q conda
34-
- conda info -a
35-
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ulimit -S -n 4096; ulimit -a; fi
20+
- export PATH=$HOME/miniconda/bin:$PATH;
21+
- conda config --set always_yes True
3622

3723
install:
38-
- conda config --add channels defaults
39-
- conda config --add channels bioconda
40-
- conda config --add channels conda-forge
41-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
42-
conda install mamba -y;
43-
mamba env create -q -f conda_env.dev.txt -n gimme;
44-
else
45-
conda env create -q -f conda_env.osx.txt -n gimme;
46-
fi
47-
- conda activate gimme
48-
- conda list
49-
- python setup.py build && pip install -e .
24+
- conda install conda-forge::mamba
25+
- mamba env create -f requirements.yaml
26+
- source activate gimme
27+
- python setup.py build # installs the motif discovery tools
28+
- pip install -e . # installs gimme (in editable mode)
5029

5130
before_script:
5231
# install Code Climate test coverage reporter
53-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
54-
wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64;
55-
else
56-
wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64;
57-
fi
32+
- wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
5833
- chmod +x ./cc-test-reporter
5934
- ./cc-test-reporter before-build
6035

6136
script:
37+
# generate the config and print the cache location
6238
- python -c 'from gimmemotifs.config import CACHE_DIR;print(CACHE_DIR)'
63-
- pytest -vv --disable-pytest-warnings --cov=scripts --cov=gimmemotifs --cov-report=xml test/
39+
# run the tests
40+
- pytest -vvv --disable-pytest-warnings --cov=scripts --cov=gimmemotifs --cov-report=xml test/
6441

6542
after_script:
6643
# upload test coverage data to Code Climate
67-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT; fi
44+
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,32 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
77

88
### Added
99

10+
- `requirements.yaml` contains all conda dependencies.
11+
- packages available from one channel have been pinned (for solving speed)
12+
- packages have minimum versions where known (for solving speed)
13+
1014
### Changed
1115

16+
- alphabetized tools everywhere (how could you live like that!?)
17+
- updated `setup.py`
18+
- updated installation instructions
19+
1220
### Fixed
1321

22+
- Yamda is now recognized in the config
23+
- most tools work with the editable installation again
24+
- all tests work for unix
25+
- there were still some flakey values, where randomness is involved.
26+
- background.py updated to work with the specified minimum `genomepy` version
27+
- all `sphinx-build docs build` warnings
28+
1429
### Removed
1530

31+
- a bunch of redundant requirement files.
32+
- OSX tests. Possibly temporary.
33+
- The tests haven't working for ages, so I have no idea where to begin.
34+
- and Travis asks 5x credits for OSX machines...
35+
1636

1737
## [0.17.0] - 2021-12-22
1838

MANIFEST.in

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
include README.md
2-
include INSTALL
3-
include COPYING
41
include CHANGELOG.md
5-
include run_tests.py
2+
include CITATION.cff
3+
include COPYING
4+
include INSTALL
65
include compile_externals.py
7-
recursive-include src *
8-
recursive-include test/data/ *
9-
include test/*.py
10-
include test/data/*/*
11-
include scripts/gimme
12-
include scripts/coverage_table
13-
include scripts/combine_peaks
6+
include README.md
147

8+
prune test/
159
graft data/
16-
recursive-exclude data/examples/ *
17-
include data/examples/TAp73alpha.bed
18-
include data/examples/TAp73alpha.fa
19-
include data/examples/test.small.fa
20-
include data/examples/example.pfm
21-
include data/examples/Gm12878.CTCF.top500.w200.fa
22-
include data/examples/MA0099.3.jaspar
10+
graft src/
11+
graft scripts/
12+
exclude scripts/download_motif_databases.py
13+
exclude scripts/gimme_benchmark
14+
2315
include versioneer.py
2416
include gimmemotifs/_version.py

conda_env.dev.txt

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

conda_env.test.txt

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

conda_env.txt

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

0 commit comments

Comments
 (0)