Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setClusters

Sets clustering for SoupChannel


Description

Adds or updates clustering information to meta-data table in SoupChannel object.

Usage

setClusters(sc, clusters)

Arguments

sc

A SoupChannel object.

clusters

A named vector, where entries are the cluster IDs and names are cellIDs. If no names are provided, the order is assumed to match the order in sc$metaData.

Value

An updated SoupChannel object with clustering information stored.

Examples

sc = load10X(system.file('extdata','toyData',package='SoupX'))
mDat = read.table(system.file('extdata','toyData','metaData.tsv',package='SoupX'),sep='\t')
sc = setClusters(sc,mDat$res.1)

SoupX

Single Cell mRNA Soup eXterminator

v1.5.2
GPL-2
Authors
Matthew Daniel Young
Initial release
2021-05-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.