encodePhenotype: Function 'encodePhenotype' in Package 'flowType'

Description Usage Arguments Details Value Author(s) See Also Examples

Description

In flowType, phenotypes themselves are represented by codes (e.g. 012) rather than full strings (CD4+CD8-), in order to save memory when a very large number of phenotypes are considered. encodePhenotype serves to translate a human-readable string down to flowType's internal coded representation.

Usage

1
encodePhenotype(pheno.string, marker.names)

Arguments

pheno.string

character vector containing containing the phenotype string to be encoded

marker.names

vector of character vectors each specifying the name of a channel, in order

Details

FlowType's encoding is as follows:

0 – marker not considered in phenotype (don't care about its value) 1 – marker is negative (e.g. CD4-) 2 – marker is positive (e.g. CD4+) 3 – marker is positive, but brighter than 2 (CD4++) 4 – marker is even brighter (CD4+++) etc

Note that this encoding system does not allow for "dim" markers – dim positivity is denoted by the first level of positivity.

Also note that the encoding is performed from the dimmest to the brightest partition, but the location of thresholds will dictate the interpretation of the code. (e.g. if you only set one threshold, but you place it between the positive and the bright population, then both positive and negative events will be considered negative.)

Value

Character vector containing the encoded phenotype, with one character per channel.

Author(s)

Kieran O'Neill

See Also

decodePhenotype, flowType

Examples

1
encodePhenotype('CD34++CD3-CD45+++',c('CD34','CD3','CD45','CD19'))

flowType documentation built on April 28, 2020, 8:32 p.m.