make_phenotype_name: Generates a human-readable phenotype name

View source: R/RcppExports.R

make_phenotype_nameR Documentation

Generates a human-readable phenotype name

Description

make_phenotype_name generates a human-readable phenotype name from a numeric representation with the following encoding: -1 : Drop marker 0 : - (negative) 1 : + (positive) 2 : ++ (double positive) More positive states can also be represented (e.g. 3, 4... : +++, ++++...)

Usage

make_phenotype_name(phenotype, markers)

Arguments

phenotype

Numeric vector with phenotype encoding.

markers

Names for markers. Must match the length of phenotype.

Value

Phenotype name.

Examples

make_phenotype_name(c(0,1,2,0),c("Marker1","Marker2","Marker3","Marker4"))
make_phenotype_name(c(0,1,-1),c("Marker1","Marker2","Marker3"))


SciOmicsLab/PhenoComb documentation built on Aug. 26, 2023, 1:28 p.m.