translate_marker_names {COMPASS} | R Documentation |
Translate boolean population names from format exported by common software tools to a format used by COMPASS.
translate_marker_names(cellpops)
cellpops |
|
character
vector of cell population names used by COMPASS
select_compass_pops
#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)