Skip to content

Commit

Permalink
fixes for python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AvantiShri committed Apr 27, 2020
1 parent fc8370e commit a267cbe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modisco.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion modisco.egg-info/requires.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion modisco/clusterinit/memeinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']},
Expand Down

0 comments on commit a267cbe

Please sign in to comment.