Comments (10)
pandas 0.20.1
caused the problem. Checkout the latest master version, then it should work.
from deepcpg.
Installing pandas 0.19.2 should fix this issue:
pip install pandas==0.19.2
from deepcpg.
@dnaase, can you send me the output of pip list
? Pandas seems to cause the problem.
from deepcpg.
Package Version
backports-abc 0.5
backports.shutil-get-terminal-size 1.0.0
backports.ssl-match-hostname 3.4.0.2
cycler 0.10.0
decorator 4.0.11
deepcpg 1.0.4
enum34 1.1.6
funcsigs 1.0.2
functools32 3.2.3.post2
h5py 2.7.0
ipykernel 4.6.1
ipython 5.3.0
ipython-genutils 0.2.0
jupyter-client 5.0.1
jupyter-core 4.3.0
Keras 1.2.2
matplotlib 2.0.2
mock 2.0.0
multitables 1.1.0
mxnet 0.9.4
numexpr 2.6.2
numpy 1.12.1
pandas 0.20.1
pathlib2 2.2.1
pbr 3.0.1
pexpect 4.2.1
pickleshare 0.7.4
pip 9.0.1
prompt-toolkit 1.0.14
protobuf 3.3.0
ptyprocess 0.5.1
py 1.4.33
Pygments 2.2.0
pyparsing 2.2.0
pytest 3.0.7
python-dateutil 2.6.0
pytz 2017.2
PyYAML 3.12
pyzmq 16.0.2
scandir 1.5
scikit-learn 0.18.1
scipy 0.19.0
seaborn 0.7.1
setuptools 27.2.0
simplegeneric 0.8.1
singledispatch 3.4.0.3
six 1.10.0
sklearn 0.0
subprocess32 3.2.7
tables 3.4.2
tensorflow 1.1.0
tensorflow-gpu 1.1.0
tftables 1.1.1
Theano 0.9.0
tornado 4.5.1
traitlets 4.3.2
wcwidth 0.1.7
Werkzeug 0.12.2
wheel 0.29.0
from deepcpg.
pandas 0.20.1 is the newest released version. Do you mean I should re-compile and use the newest github master version of pandas?
from deepcpg.
I also tried the older version of pandas, it does not work..
from deepcpg.
Please run pip install -U pandas
and git pull
in your DeepCpG directory. Then try it again and send me the error message if it still does not work.
from deepcpg.
Thanks for the package. I'm getting a similar error using pandas 0.20.3
Traceback (most recent call last):
File "/home/hasan/anaconda3/bin/dcpg_data.py", line 630, in
app.run(sys.argv)
File "/home/hasan/anaconda3/bin/dcpg_data.py", line 261, in run
return self.main(name, opts)
File "/home/hasan/anaconda3/bin/dcpg_data.py", line 414, in main
log=log.info)
File "/home/hasan/anaconda3/bin/dcpg_data.py", line 115, in read_cpg_profiles
cpg_profile = dat.read_cpg_profile(cpg_file, sort=True, *args, **kwargs)
File "/home/hasan/anaconda3/lib/python3.6/site-packages/deepcpg/data/utils.py", line 182, in read_cpg_profile
usecols=usecols, dtype=dtype, skiprows=skiprows)
File "/home/hasan/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py", line 655, in parser_f
return _read(filepath_or_buffer, kwds)
File "/home/hasan/anaconda3/lib/python3.6/site-packages/pandas/io/parsers.py", line 392, in _read
filepath_or_buffer, encoding, compression)
File "/home/hasan/anaconda3/lib/python3.6/site-packages/pandas/io/common.py", line 210, in get_filepath_or_buffer
raise ValueError(msg.format(_type=type(filepath_or_buffer)))
ValueError: Invalid file path or buffer object type: <class 'deepcpg.data.utils.GzipFile'>
from deepcpg.
pandas 0.19.2 indeed fix it
from deepcpg.
Sorry for the late reply, I am quite busy with my new job ;-). Thanks @dnaase and @almarzhm for solving this issue!
from deepcpg.
Related Issues (20)
- CpG profiles file not found HOT 4
- Can you provide pre-trained models from the DeepCpG model zoo
- This software can only predict the methylation status not the exact methylation level right
- GPU utility in training only about 25% HOT 1
- Unable to train joint model from pretrained cpg and dna model with tensorflow backend HOT 1
- impute CpG values for gene by cell matrix HOT 1
- Models in the zoo are not accessible
- Example data not accessible HOT 1
- Error in train.sh HOT 1
- CpG sites in the negative strand HOT 3
- Download links for example data broken
- Problem with setup.sh when downloading cpg data HOT 1
- Fails CpG module training
- keras / tensorflow version compatibility HOT 2
- keras/tensorflow version incompatibility
- Can't calculate the pair potential
- Recommendations for using in Tumor Normal scenario
- Negative strand index input
- pip install deepcpg => bad interpreter: /anaconda3/envs/deepcpg/bin/python: no such file or directory
- pip install deepcpg does not install tensorflow.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepcpg.