Skip to content
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

Cannot load rds file #17

Closed
data2code opened this issue Jan 17, 2020 · 1 comment
Closed

Cannot load rds file #17

data2code opened this issue Jan 17, 2020 · 1 comment

Comments

@data2code
Copy link

I downloaded the data file from here
https://s3.amazonaws.com/mssm-seq-matrix/human_gsm_meta.rda

read_r() gives an error
Traceback (most recent call last):
File "", line 1, in
File "/depts/ChemInfo/p/python/lib/python3.6/site-packages/pyreadr/pyreadr.py", line 40, in read_r
parser.parse(path)
File "pyreadr/librdata.pyx", line 117, in pyreadr.librdata.Parser.parse
File "pyreadr/librdata.pyx", line 142, in pyreadr.librdata.Parser.parse
pyreadr.custom_errors.LibrdataError: Unable to convert string to the requested encoding (output buffer too small)

@ofajardo
Copy link
Owner

ofajardo commented Jan 23, 2020

I have loaded the rda file in R and it has stored a list object ("meta"). pyreadr unfortunately cannot read R lists (see #8) . Although the error is a bit strange, it is not going to work anyway.

I am afraid you need to install R and use rpy2 to read this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants