-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid file path or buffer object type: <class 'deepcpg.data.utils.GzipFile'> #4
Comments
@dnaase, can you send me the output of |
Package Version backports-abc 0.5 |
|
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? |
I also tried the older version of pandas, it does not work.. |
Please run |
Thanks for the package. I'm getting a similar error using pandas 0.20.3 Traceback (most recent call last): |
Installing pandas 0.19.2 should fix this issue: |
pandas 0.19.2 indeed fix it |
Hi,
Thanks for making this software. After I download the example data files (by script in deepcpg/examples/setup.sh), when I am running the example script:
python deepcpg_path/dcpg_data.py --cpg_profiles ../data/cpg/BS27_1_SER.tsv.gz ../data/cpg/BS27_3_SER.tsv.gz ../data/cpg/BS27_5_SER.tsv.gz ../data/cpg/BS27_6_SER.tsv.gz ../data/cpg/BS27_8_SER.tsv.gz --dna_files ../data/dna/mm10 --out_dir ./data --dna_wlen 1001 --cpg_wlen 50 --nb_sample 1000
I got the problem of this error. It seems something is wrong about reading the file, but i have checked that all of the files path are correct in my system...
Traceback (most recent call last):
File "/home/yaping/software/deepcpg/deepcpg/scripts/dcpg_data.py", line 629, in
app.run(sys.argv)
File "/home/yaping/software/deepcpg/deepcpg/scripts/dcpg_data.py", line 260, in run
return self.main(name, opts)
File "/home/yaping/software/deepcpg/deepcpg/scripts/dcpg_data.py", line 413, in main
log=log.info)
File "/home/yaping/software/deepcpg/deepcpg/scripts/dcpg_data.py", line 114, in read_cpg_profiles
cpg_profile = dat.read_cpg_profile(cpg_file, sort=True, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/deepcpg/data/utils.py", line 254, in read_cpg_profile
File "/home/yaping/software/anaconda/anaconda2/envs/ccimpute/lib/python2.7/site-packages/pandas/io/parsers.py", line 655, in parser_f
return _read(filepath_or_buffer, kwds)
File "/home/yaping/software/anaconda/anaconda2/envs/ccimpute/lib/python2.7/site-packages/pandas/io/parsers.py", line 392, in _read
filepath_or_buffer, encoding, compression)
File "/home/yaping/software/anaconda/anaconda2/envs/ccimpute/lib/python2.7/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'>
The text was updated successfully, but these errors were encountered: