Skip to content

Commit

Permalink
Merge pull request #572 from deeptools/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
joachimwolff authored Jul 10, 2020
2 parents 51063ca + 3b0b036 commit 1fad772
Show file tree
Hide file tree
Showing 292 changed files with 237,067 additions and 2,043 deletions.
219 changes: 99 additions & 120 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ language: c
sudo: true

env:
- TRAVIS_PYTHON_VERSION=3.6
- TRAVIS_PYTHON_VERSION=3.7
os:
- linux
- osx
stages:
- lint
- test

# Setup anaconda
Expand All @@ -17,7 +14,6 @@ before_install:
- export PYTHONWARNINGS="ignore"
- echo $HIC_TEST_DATA_DIR
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh ; fi
- bash miniconda.sh -b -p $HOME/miniconda
- PATH_WITHOUT_CONDA="$PATH"
- export PATH="$HOME/miniconda/bin:$PATH"
Expand All @@ -36,155 +32,138 @@ install:
- conda install --yes -c defaults -c conda-forge -c bioconda configparser
- python setup.py install
# command to run tests

script:
- py.test hicexplorer/test/test_pytest_collected_items.py --doctest-modules --capture=sys
- py.test hicexplorer/test/general --doctest-modules --capture=sys
- py.test hicexplorer --doctest-modules --ignore=hicexplorer/test/
- hicFindRestSite --version
- hicAggregateContacts --version
- hicBuildMatrix --version
- hicCorrectMatrix --version
- hicCorrelate --version
- hicDetectLoops --version
- hicFindTADs --version
- hicMergeMatrixBins --version
- hicPlotMatrix --version
- hicPlotDistVsCounts --version
- hicPlotTADs --version
- hicSumMatrices --version
- hicInfo --version
- hicConvertFormat --version
- hicAdjustMatrix --version
- hicNormalize --version
- hicAverageRegions --version
- hicPlotAverageRegions --version
- hicMergeLoops --version
- hicValidateLocations --version
- hicCompartmentalization --version
- chicQualityControl --version
- chicViewpointBackgroundModel --version
- chicViewpoint --version
- chicSignificantInteractions --version
- chicAggregateStatistic --version
- chicDifferentialTest --version
- chicPlotViewpoint --version
- hicPlotSVL --version
- hicQuickQC --version
- hicCompareMatrices --version
- hicPCA --version
- hicTransform --version
- hicPlotViewpoint --version
- hicCreateThresholdFile --version
- hicHyperoptDetectLoops --version
- hicHyperoptDetectLoopsHiCCUPS --version
- hicMergeDomains --version
- hicDifferentialTAD --version
- hicFindRestSite --help
- hicAggregateContacts --help
- hicBuildMatrix --help
- hicCorrectMatrix --help
- hicCorrelate --help
- hicDetectLoops --help
- hicFindTADs --help
- hicMergeMatrixBins --help
- hicPlotMatrix --help
- hicPlotDistVsCounts --help
- hicPlotTADs --help
- hicSumMatrices --help
- hicInfo --help
- hicConvertFormat --help
- hicAdjustMatrix --help
- hicNormalize --help
- hicAverageRegions --help
- hicPlotAverageRegions --help
- hicMergeLoops --help
- hicValidateLocations --help
- hicCompartmentalization --help
- chicQualityControl --help
- chicViewpointBackgroundModel --help
- chicViewpoint --help
- chicSignificantInteractions --help
- chicAggregateStatistic --help
- chicDifferentialTest --help
- chicPlotViewpoint --help
- hicPlotSVL --help
- hicQuickQC --help
- hicCompareMatrices --help
- hicPCA --help
- hicTransform --help
- hicPlotViewpoint --help
- hicCreateThresholdFile --help
- hicHyperoptDetectLoops --help
- hicHyperoptDetectLoopsHiCCUPS --help
- hicMergeDomains --help
- hicDifferentialTAD --help

jobs:
include:
- stage: lint
env:
- LINT=1
before_install:
- curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- PATH_WITHOUT_CONDA="$PATH"
- export PATH="$HOME/miniconda/bin:$PATH"
- export PYTHONWARNINGS="ignore"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
install:
- conda install --yes python=3.7 flake8
- conda install --yes pathlib
script:
- if [[ "$LINT" == "1" ]]; then flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504 ; fi

- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs.py
include:
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs_2.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs_2.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_two.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_two.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_three.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_three.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.6
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs_cool.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.6
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs_cool.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs.py
script: py.test hicexplorer/test/trivial_runs/test_hicBuildMatrix_trivial_runs.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs_2.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix_trivial_runs_2.py
script: py.test hicexplorer/test/trivial_runs/test_hicBuildMatrix_trivial_runs_2.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix.py
- stage: test
os: osx
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicBuildMatrix.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_two.py
- stage: test
os: osx
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_two_1.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_two.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_two_2.py
- stage: test
os: osx
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_two.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_two_3.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_three.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_three.py
- stage: test
os: osx
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: py.test hicexplorer/test/long_run/test_hicAggregateContacts_trivial_runs_three.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_four.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_five.py
- stage: test
os: osx
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs.py
script: py.test hicexplorer/test/trivial_runs/test_hicAggregateContacts_trivial_runs_six.py
- stage: test
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs_cool.py
script: travis_wait 40 py.test hicexplorer/test/trivial_runs/test_hicConvertFormat_trivial_runs.py
- stage: test
os: osx
os: linux
env: TRAVIS_PYTHON_VERSION=3.7
script: travis_wait 40 py.test hicexplorer/test/long_run/test_hicConvertFormat_trivial_runs_cool.py
script: travis_wait 40 py.test hicexplorer/test/trivial_runs/test_hicConvertFormat_trivial_runs_cool.py
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Citation:
^^^^^^^^^

Joachim Wolff, Leily Rabbani, Ralf Gilsbach, Gautier Richard, Thomas Manke, Rolf Backofen, Björn A Grüning.
**Galaxy HiCExplorer 3: a web server for reproducible Hi-C, capture Hi-C and single-cell Hi-C data analysis, quality control and visualization, Nucleic Acids Research**, , gkaa220, https://doi.org/10.1093/nar/gkaa220
**Galaxy HiCExplorer 3: a web server for reproducible Hi-C, capture Hi-C and single-cell Hi-C data analysis, quality control and visualization, Nucleic Acids Research**, Nucleic Acids Research, Volume 48, Issue W1, 02 July 2020, Pages W177–W184, https://doi.org/10.1093/nar/gkaa220

Joachim Wolff, Vivek Bhardwaj, Stephan Nothjunge, Gautier Richard, Gina Renschler, Ralf Gilsbach, Thomas Manke, Rolf Backofen, Fidel Ramírez, Björn A Grüning.
**"Galaxy HiCExplorer: a web server for reproducible Hi-C data analysis, quality control and visualization", Nucleic Acids Research**, Volume 46, Issue W1, 2 July 2018, Pages W11–W16, doi: https://doi.org/10.1093/nar/gky504
Expand Down
31 changes: 20 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,25 @@ jobs:
conda info -a
conda create -n hicexplorer --yes -c conda-forge -c bioconda python=$(python.version) --file requirements.txt
source activate hicexplorer
conda install --yes -c conda-forge -c bioconda pytest flake8
conda install --yes -c conda-forge -c bioconda pytest flake8 pytest-xdist pytest-forked
conda install --yes -c conda-forge -c bioconda nose
conda install --yes pathlib
conda install --yes -c defaults -c conda-forge -c bioconda configparser
python setup.py install
displayName: installing dependencies
- script: |
source activate hicexplorer
py.test hicexplorer/test
displayName: pytest
- script: |
source activate hicexplorer
flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504
displayName: linting
- script: |
source activate hicexplorer
py.test hicexplorer/test/test_pytest_collected_items.py --doctest-modules --capture=sys
py.test hicexplorer --doctest-modules --ignore=hicexplorer/test/
displayName: doc_test_and_number_of_cases
- script: |
source activate hicexplorer
py.test hicexplorer/test/general/ --doctest-modules --capture=sys -n 4
displayName: pytest
- job: 'OSX'
timeoutInMinutes: 0
Expand All @@ -60,18 +65,22 @@ jobs:
conda info -a
conda create -n hicexplorer --yes -c conda-forge -c bioconda python=$(python.version) --file requirements.txt
source activate hicexplorer
conda install --yes -c conda-forge -c bioconda pytest flake8
conda install --yes -c conda-forge -c bioconda pytest flake8 pytest-xdist pytest-forked
conda install --yes -c conda-forge -c bioconda nose
conda install --yes pathlib
conda install --yes -c defaults -c conda-forge -c bioconda configparser
python setup.py install
displayName: installing dependencies
- script: |
source activate hicexplorer
py.test hicexplorer/test
displayName: pytest
- script: |
source activate hicexplorer
flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F401,F403,E402,F999,F405,E712,W504
displayName: linting
- script: |
source activate hicexplorer
py.test hicexplorer/test/test_pytest_collected_items.py --doctest-modules --capture=sys
py.test hicexplorer --doctest-modules --ignore=hicexplorer/test/
displayName: doc_test_and_number_of_cases
- script: |
source activate hicexplorer
py.test hicexplorer/test/general/ --doctest-modules --capture=sys -n 4
displayName: pytest
7 changes: 7 additions & 0 deletions bin/hicCreateThresholdFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from hicexplorer.hicCreateThresholdFile import main

if __name__ == "__main__":
main()
7 changes: 7 additions & 0 deletions bin/hicDifferentialTAD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from hicexplorer.hicDifferentialTAD import main

if __name__ == "__main__":
main()
7 changes: 7 additions & 0 deletions bin/hicHyperoptDetectLoops
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from hicexplorer.hicHyperoptDetectLoops import main

if __name__ == "__main__":
main()
7 changes: 7 additions & 0 deletions bin/hicHyperoptDetectLoopsHiCCUPS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from hicexplorer.hicHyperoptDetectLoopsHiCCUPS import main

if __name__ == "__main__":
main()
7 changes: 7 additions & 0 deletions bin/hicMergeDomains
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from hicexplorer.hicMergeDomains import main

if __name__ == "__main__":
main()
Loading

0 comments on commit 1fad772

Please sign in to comment.