is.valid.IsotypeSwitch: Function that checks, whether a phylogenetic relationship in...

View source: R/is.valid.IsotypeSwitch.R

is.valid.IsotypeSwitchR Documentation

Function that checks, whether a phylogenetic relationship in B cells is possible or not according to the genetic arrangement.

Description

The genetic order in humans is "germline", 'M', 'D', "G3", "G1", "A1", "G2", "G4", 'E' and "A2". Note, that the letters "Ig" are cut off the input, in case they are present.

Usage

is.valid.IsotypeSwitch(subclassParent, subclassChild)

Arguments

subclassParent

The isotype subclass of the possible parent.

subclassChild

The isotype subclass of the possible child.

Value

Boolean, indicating whether this parent - child relationship is possible (TRUE) or not (FALSE). If both subclasses are the same, the result is TRUE. If the input subclasses are not valid, 'NA' is returned.

Examples

# FALSE
is.valid.IsotypeSwitch( "IgG3", "IgM" )

# TRUE
is.valid.IsotypeSwitch( "A1", "A2" )


Fraternalilab/BrepPhylo documentation built on Jan. 3, 2025, 10:03 a.m.