Using this function, you can convert genetic data imported with the package
PopGenome into coala's segsites format. See as.segsites
for general information on converting genetic data for coala.
# S3 method for GENOME
as.segsites(data, only_synonymous = FALSE, ...)
The GENOME
data from PopGenome.
Only import synonymous SNPs if set to TRUE
.
This requires that PopGenome knows where coding regions are., e.g.
by using gff files.
Ignored.
This function imports all loci from the GENOME
object that have at
least one valid site (data@n.valid.sites
). The number of valid sites
is used as length of a locus.
An example and additional instructions are provided in the
coala-data-import
vignette