From a267cbe5cc569870099502ff7ea52ce3a81dd05b Mon Sep 17 00:00:00 2001 From: Av Shrikumar Date: Mon, 27 Apr 2020 13:25:09 -0700 Subject: [PATCH] fixes for python 2 --- .travis.yml | 2 ++ modisco.egg-info/PKG-INFO | 2 +- modisco.egg-info/requires.txt | 2 +- modisco/clusterinit/memeinit.py | 3 ++- setup.py | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 35591c6..f88b8a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,6 +40,8 @@ install: - pip install tqdm - pip install psutil - pip install matplotlib + #Set the 'Agg' backend to prevent a TclError with python 2 + - echo "backend: Agg" > ~/.config/matplotlib/matplotlibrc ##MEME installation - wget http://alternate.meme-suite.org/meme-software/5.1.1/meme-5.1.1.tar.gz - tar zxf meme-5.1.1.tar.gz diff --git a/modisco.egg-info/PKG-INFO b/modisco.egg-info/PKG-INFO index 6f22737..3d83496 100644 --- a/modisco.egg-info/PKG-INFO +++ b/modisco.egg-info/PKG-INFO @@ -6,5 +6,5 @@ Home-page: https://github.com/kundajelab/tfmodisco License: UNKNOWN Description: Algorithm for discovering consolidated patterns from base-pair-level importance scores Platform: UNKNOWN -Provides-Extra: tensorflow Provides-Extra: tensorflow with gpu +Provides-Extra: tensorflow diff --git a/modisco.egg-info/requires.txt b/modisco.egg-info/requires.txt index ceba382..9f2ea3b 100644 --- a/modisco.egg-info/requires.txt +++ b/modisco.egg-info/requires.txt @@ -5,7 +5,7 @@ h5py>=2.5 leidenalg>=0.7.0 tqdm>=4.38.0 psutil>=5.4.8 -matplotlib>=3.1.1 +matplotlib>=2.2.5 [tensorflow] tensorflow>=1.7 diff --git a/modisco/clusterinit/memeinit.py b/modisco/clusterinit/memeinit.py index 65db4b9..1b3dcfe 100644 --- a/modisco/clusterinit/memeinit.py +++ b/modisco/clusterinit/memeinit.py @@ -66,7 +66,8 @@ def __call__(self, seqlets): outdir = self.base_outdir+"/metacluster"+str(self.call_count) self.call_count += 1 - os.makedirs(outdir, exist_ok=True) + if (os.path.exists(outdir)==False): + os.makedirs(outdir) seqlet_fa_to_write = outdir+"/inp_seqlets.fa" seqlet_fa_fh = open(seqlet_fa_to_write, 'w') diff --git a/setup.py b/setup.py index f5d1801..c2782d0 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ 'scikit-learn>=0.19', 'h5py>=2.5', 'leidenalg>=0.7.0', 'tqdm>=4.38.0', 'psutil>=5.4.8', - 'matplotlib>=3.1.1'], + 'matplotlib>=2.2.5'], extras_require={ 'tensorflow': ['tensorflow>=1.7'], 'tensorflow with gpu': ['tensorflow-gpu>=1.7']},