View source: R/polyrad_DT2RADdata.R
polyrad_DT2RADdata | R Documentation |
For a data table with samples and loci as rows (long-format data table), create a RADdata object as required for the R package, polyRAD (Clark et al 2019).
polyrad_DT2RADdata(
dat,
chromCol = "CHROM",
posCol = "POS",
refCol = "REF",
altCol = "ALT",
roCol = "RO",
aoCol = "AO",
sampCol = "SAMPLE"
)
dat |
Data.table: A long-format data.table with columns specified in
|
chromCol |
Character: Column with chromosome (or contig) information. Default = |
posCol |
Character: Column with position information. Default = |
refCol |
Character: Column with reference allele information. Default = |
altCol |
Character: Column with alternate allele information. Default = |
roCol |
Character: Column with reference observed read counts information. Default = |
aoCol |
Character: Column with alternate observed read information. Default = |
sampCol |
Character: Column with sample information. Default = |
Returns a RADdata object class.
Clark et al (2019). polyRAD: Genotype calling with uncertainty from sequencing data in polyploids and diploids. G3. doi.org/10.1534/g3.118.200913
data(data_Genos)
genoRADdata <- polyrad_DT2RADdata(data_Genos)
genoRADdata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.