Description Usage Arguments Value Author(s) See Also Examples
View source: R/sequence2gtypes.R
Create a gtypes object from sequence data.
1 2 3 4 5 6 7 8 |
x |
DNA sequences as a character matrix, a |
strata |
a vector or factor giving stratification for each sequence. If not provided all individuals are assigned to the same stratum (Default). |
seq.names |
names for each set of sequences. If not provided default names are generated. |
schemes |
an optional data.frame of stratification schemes. |
description |
an optional label for the object. |
other |
a list to carry other related information (optional). |
a gtypes object.
Eric Archer eric.archer@noaa.gov
gtypes.initialize, as.matrix.gtypes, as.data.frame.gtypes, gtypes2genind, gtypes2loci, gtypes2phyDat
1 2 3 4 5 6 7 | #--- create a haploid sequence (mtDNA) gtypes object
data(dolph.strata)
data(dolph.seqs)
strata <- dolph.strata$fine
names(strata) <- dolph.strata$ids
dloop.fine <- sequence2gtypes(dolph.seqs, strata, seq.names = "dLoop",
description = "dLoop: fine-scale stratification")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.