Formatting of ped/map files or vcf into haplotypes table and add it inside the founder_object
list.
generate_founder.Rd
Formatting of ped/map files or vcf into haplotypes table and add it inside the founder_object
list.
Value
A list
of two matrix
.
The microbiome
matrix contains taxa (in columns) accross individuals (in rows).
The population
object contains genotypes, encoded as 0,1,2 and generated using the MoBPS package.
Examples
if (FALSE) { # \dontrun{
# Generate founder object from PED/MAP set
microbiome <- data.table::fread("/path/to/microbiome.txt")
founder_object <- generate_founder(path = "/path/to/pedmap", microbiome, file_type = "pedmap")
# Generate founder object from VCF set
microbiome <- data.table::fread("/path/to/microbiome.txt")
founder_object <- generate_founder(path = "/path/to/vcf", microbiome, file_type = "vcf")
} # }