目录
sketchR

sketchR


R-CMD-check

sketchR provides a simple interface to the geosketch and scSampler python packages, which implement subsampling algorithms described in Hie et al (2019) and Song et al (2022), respectively. The implementation makes use of the basilisk package for interaction between R and python.

Installation

You can install sketchR from Bioconductor (release 3.19 onwards) using:

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("sketchR")

Example

library(sketchR)

## Create an example data matrix. Rows represent "samples" (the unit of 
## downsampling), columns represent features (e.g., principal components).
mat <- matrix(rnorm(5000), nrow = 500)

## Run geosketch. The output is a vector of indices, which you can use 
## to subset the rows of the input matrix.
idx <- geosketch(mat, N = 100)

## Run scSampler. As for geosketch, the output is a vector of indices.
idx2 <- scsampler(mat, N = 100)
关于

用于生物信息学数据分析的R包,提供数据预处理、统计分析和可视化功能

11.1 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号