GithubHelp home page GithubHelp logo

timothy-barry / ondisc Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 5.0 9.59 MB

Space- and time-optimal algorithms for large single-cell expression matrices, with a focus on single-cell CRISPR screens.

Home Page: https://timothy-barry.github.io/ondisc/

License: Other

R 55.96% C++ 43.36% Shell 0.68%

ondisc's People

Contributors

samson-dai avatar timothy-barry avatar yixuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ondisc's Issues

Cannot create matrix

Hi,

I tried to use "create_ondisc_matrix_from_mtx" function, but got the following error when writing CSR data:
Error in list2DF(.) : could not find function "list2DF"
In addition: Warning message:
In fun(libname, pkgname) :
Option 'datatable.old.unique.by.key' has been removed as warned for 4 years. It is now ignored. Please use by=key(DT) instead and stop using this option.

Version in my environment:
R version: 3.6.1, data.table version: 1.14.0

Add support for `ngCMatrix` input to `create_ondisc_matrix_from_R_matrix`

I attempted to create_ondisc_matrix_from_R_matrix with an ngCMatrix input (sparse logical matrix), and got the error message Error in ondisc::create_ondisc_matrix_from_R_matrix(r_matrix = gRNA_assignment_matrix, : Input matrix must be a class of matrix, dgTMatrix, dgCMatrix, or dgRMatrix.

Summer 2022

  • Replace readr with data.table globally.
  • Wean off rhdf5; use C++ directly.
  • Remove features_only initialization option.
  • run_core_algo_step_1 computes n_nonzero_features for each chunk and saves as a list; this is somewhat memory inefficient and likely unnecessary. Just compute n_nonzero_features across ALL chunks.
  • Replace %>% with |>

Input format for create_ondisc_matrix_from_R_matrix()

I tried passing a sparse matrix in dgCMatrix format to create_ondisc_matrix_from_R_matrix(), but it said that the input is required to be in dgRMatrix format (or perhaps it could also be in dense format). Could you please add support for dgCMatrix input?

“read_odm” function has been removed from current version ?

Hi Tim,
I downloaded the processed import-gasperini-2019-v2 data from the dropbox link you shared in sceptre2-manuscript. I want to generated a sceptre object using the code in import-gasperini-2019-v2.

However, when I ran
gene_odm <- read_odm(paste0(processed_gene_dir, "matrix.odm"), paste0(processed_gene_dir, "metadata.rds"))

I got an error:
Error in read_odm(paste0(processed_gene_dir, "matrix.odm"), paste0(processed_gene_dir, : could not find function "read_odm"

Is the read_odm funtion has been deleted? How I can get the sceptre object from these input ?

>tree ./gasperini-2019-v2/
gasperini-2019-v2/
└── at-scale
    └── processed
        ├── gene
        │   ├── matrix.odm
        │   └── metadata.rds
        ├── grna_assignment
        │   ├── grna_assignment.zip
        │   ├── matrix.odm
        │   └── metadata.rds
        ├── grna_expression
        │   ├── grna_expression.zip
        │   ├── matrix.odm
        │   └── metadata.rds
        └── pairs_ungrouped.rds

5 directories, 9 files

Best
Yan

Investigate memory usage of `create_ondisc_matrix_from_mtx`

The create_ondisc_matrix_from_mtx function appears to use a lot of memory when the chunked option is set to true; this likely is due to a bug in read_delim_chunked. Consider different approaches to implementing this functionality (e.g., Linux split) if the bug is not fixed.

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.