getClusterList: getCluterList

Description Usage Arguments Value Note Author(s) Examples

View source: R/SCRNA.R

Description

Gets a list of all the clusters in the seurat object passed and returns it

Usage

1
getClusterList(Data, PValues)

Arguments

Data

Seurat object containing the clusters

PValues

PValues returned from getPValues

Value

A list containing the clusters in the Seurat object

Note

Called by getDataFiles and getCyGraphs

Author(s)

Matt Heffernan, University of Illinois at Chicago

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

getClusterList(SData, Ps)

## The function is currently defined as
function (Data, PValues) 
{
    nClusters = nlevels(seqwell@meta.data$seurat_clusters)
    ClusterList <- list()
    i = 0
    while (i < nClusters) {
        ClusterList[[paste("C", as.character(i), sep = "")]] = PValues[PValues$cluster == 
            i, ]
        i = i + 1
    }
    return(ClusterList)
  }

mheffe3/SCNVC documentation built on Dec. 21, 2021, 5:52 p.m.