splitSNPs {logicDT} | R Documentation |
Split biallelic SNPs into binary variables
Description
This function takes a matrix or data frame of SNPs coded as
0, 1, 2 or 1, 2, 3 and returns a data frame with twice as many
columns. SNPs are splitted into dominant and recessive modes,
i.e., for a , two variables
and
are generated.
Usage
splitSNPs(data)
Arguments
data |
A matrix or data frame only consisting of SNPs to be splitted |
Value
A data frame of the splitted SNPs
[Package logicDT version 1.0.4 Index]