Git Product home page Git Product logo

rscsampler's Introduction

rscsampler

Overview

An R interface of Python module scsampler. It is designed for fast diversity-preserving subsampling of large-scale single-cell transcriptomic data.

Installation

The package relies on the R package reticulate for calling scsampler in Python (which is designed for scanpy). Please first install scsampler and scanpy from PyPI:

pip install scanpy
pip install scsampler

Then install rscsampler in R:

install.packages("devtools")
install.packages("reticulate")
library(devtools)
devtools::install_github("SONGDONGYUAN1994/rscsampler")

Usage

The package can take the input dataset in the format of: SingleCellExperiment, SeuratObject or a matrix. By default, we use the top 50 PCs for cell selection. Here we show an example of the top PCs examplary dataset:

library(reticulate)
library(rscsampler)
data("pbmc68k")
subsample_index <- scsampler(dat = pbmc68k, use_pca = FALSE, run_pca = FALSE, fraction = 0.1) ## 10% subsamples

We still recommend users using the Python module scsampler since R is not very ideal for dealing with large datasets.

Contact

Any questions or suggestions on rscsampler are welcomed! If you have any questions, please report it on issues or contact Dongyuan ([email protected]).

rscsampler's People

Contributors

songdongyuan1994 avatar

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.