Git Product home page Git Product logo

Comments (6)

ofajardo avatar ofajardo commented on June 6, 2024

I am not able to reproduce this. Please provide a file or clear instructions on how to reproduce the issue otherwise I cannot hekp.

from pyreadr.

ofajardo avatar ofajardo commented on June 6, 2024

closed due to inactivity. Provide means to reproduce the issue before reopening.

from pyreadr.

YubinXie avatar YubinXie commented on June 6, 2024

Hi, sorry for the late reply. I cant share the private data yet, but it is actually no need to use the data to reproduce.

In R, if the data is sparse, it will save in an efficient way (from 100G to few MB). However, when we open this file in python, it does not convert it to sparse matrix automatically. This will cause memory issues. Hope this makes sense to you.

from pyreadr.

ofajardo avatar ofajardo commented on June 6, 2024

Ok I now I understand the problem but I want to see how exactly is the data represented. Please provide some R code producing such data. If course it must be dummy data and not sensitive one.
Btw, if you are working with matrices instead of dataframes, are you aware pyreadr is not reading the dimensions of matrices ?

from pyreadr.

YubinXie avatar YubinXie commented on June 6, 2024

Check this one: https://www.dropbox.com/s/63gnlw45jf7cje8/pbmc3k_final.rds?dl=0

scRNA seq is a very popular modern biomedical method, its data is usually 95%+ sparse...

from pyreadr.

ofajardo avatar ofajardo commented on June 6, 2024

The file contains an S4 object. If I read it with pyreadr I get this error:

pyreadr.custom_errors.LibrdataError: The file contains an unrecognized object

That means there is no support for it. Please read the README in the known limitations section (it is described there) and also here:

#51

from pyreadr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.