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
factorFromP2Selection(sel, use.internal.name = FALSE, flatten = FALSE)
factor of cell membership from a p2 selection object. The factor only includes cells present in the selection.
a pagoda2 selection as genereated by readPagoda2SelectionFile
boolean Whether to use field 'internal.name' as factor names (default=FALSE)
boolean Whether to ignore multiclassified cells, overwriting randomly (default=FALSE)