Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An R interface to the subsampling algorithms implemented in python

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

fmicompbio/sketchR

Repository files navigation

sketchR


sketchR


R-CMD-check

sketchR provides a simple interface to thegeosketch andscSamplerpython packages, which implement subsampling algorithms described inHie et al (2019)andSong et al (2022),respectively. The implementation makes use of thebasiliskpackage for interaction between R and python.

Installation

You can installsketchR 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)

About

An R interface to the subsampling algorithms implemented in python

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp