Description Usage Arguments Details Value Author(s) See Also
View source: R/genotypes.pyRAD.loci.R
Makes a dataframe of SNP calls from a pyRAD.loci object for export to hierfstat
1 2 3 4 5 6 7 8 9 10 11 | genotypes.pyRAD.loci(dat, groups, loci = 'all', taxa = 'all',
useSnps = c('first', 'all'), concat = c(FALSE, TRUE),
use.tidyName = FALSE,
na.rm = c('none', 'columns', 'rows'),
maxAlleles = 2,
tidyVals = c('-', '.','>', '_', ' '),
sortByGroups = TRUE,
variable.only = FALSE, make.dummy.column = TRUE,
alleleDigits = 1,
toInteger = TRUE, missingData = "00",
cores = 1)
|
dat |
an object of class |
groups |
a list of vectors, each vector designating a set of individuals to count for each group |
loci |
a character vector of loci to include; defaults to all loci |
taxa |
a character vector of taxa to include; defaults to all taxa |
useSnps |
whether to use the first SNP in each locus or all |
concat |
boolean: whether to concatenate SNPs or return by locus |
use.tidyName |
choose whether or not to use |
na.rm |
whether to remove missin data by columns, by rows, or not at all |
maxAlleles |
maximum number of alleles per locus |
tidyVals |
characters to be stripped out by tidyName, if using |
sortByGroups |
boolean: whether to sort snps by groups |
variable.only |
boolean: whether to keep only variable sites |
make.dummy.column |
boolean: whether to add a dummy column when there is only one SNP
(currently added as a work-around for |
alleleDigits |
how many digits per allele |
toInteger |
boolean: whether to return SNPs as integers |
missingData |
string to use for missing data |
cores |
how many processing cores to use; if |
current not tightly integrated with hierfstat, but designed to be used by it
data.frame of genotypes
Andrew Hipp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.