phenotype_to_numbers | R Documentation |
phenotype_to_numbers
generates a numeric representation of a human-readable phenotype name
using the following encoding:
-1 : Droped marker
0 : - (negative)
1 : + (positive)
2 : ++ (double positive)
More positive states can also be represented (e.g. 3, 4... : +++, ++++...)
phenotype_to_numbers(phenotype, markers)
phenotype |
Phenotype name. |
markers |
Names of the markers. |
Numeric vector with encoded phenotype.
phenotype_to_numbers("Marker1-Marker2+Marker3++Marker4-",c("Marker1","Marker2","Marker3","Marker4"))
phenotype_to_numbers("Marker1-Marker2+",c("Marker1","Marker2","Marker3"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.