translate_marker_names: Translate marker names to format use by COMPASS

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Translate boolean population names from format exported by common software tools to a format used by COMPASS.

Usage

1

Arguments

cellpops

character vector of cell population names.

Value

character vector of cell population names used by COMPASS

See Also

select_compass_pops

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#Generate marker names
markers = LETTERS[1:4]
pos = c("+","-")
popnames = apply(expand.grid(pos,pos,pos,pos),1,
              function(x) paste(paste(paste(markers,x,sep=""),
              collapse=""),",Count",sep=""))
popnames = sample(c(popnames,
           paste(paste(markers,sample(c("+","-"),
           length(markers),replace=TRUE),sep=""),
           ",Count",sep="")))
popnames = popnames[select_compass_pops(popnames,LETTERS[1:4])]
#Translate
translate_marker_names(popnames)

RGLab/COMPASS documentation built on Feb. 11, 2021, 3:23 p.m.