factorFromP2Selection {pagoda2}R Documentation

Returns a factor of cell membership from a p2 selection object the factor only includes cells present in the selection. If the selection contains multiclassified cells an error is raised

Description

Returns a factor of cell membership from a p2 selection object the factor only includes cells present in the selection. If the selection contains multiclassified cells an error is raised

Usage

factorFromP2Selection(sel, use.internal.name = FALSE, flatten = FALSE)

Arguments

sel

a pagoda2 selection as genereated by readPagoda2SelectionFile

use.internal.name

boolean Whether to use field 'internal.name' as factor names (default=FALSE)

flatten

boolean Whether to ignore multiclassified cells, overwriting randomly (default=FALSE)

Value

factor of cell membership from a p2 selection object. The factor only includes cells present in the selection.


[Package pagoda2 version 1.0.12 Index]