Learn R Programming

coala (version 0.7.2)

as.segsites.GENOME: Convert PopGenome Data into Coala's Format

Description

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.

Usage

# S3 method for GENOME
as.segsites(data, only_synonymous = FALSE, ...)

Arguments

data

The GENOME data from PopGenome.

only_synonymous

Only import synonymous SNPs if set to TRUE. This requires that PopGenome knows where coding regions are., e.g. by using gff files.

...

Ignored.

Details

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.

See Also

An example and additional instructions are provided in the coala-data-import vignette