makeCog | R Documentation |
Builds the cog to pass to makeGear
makeCog(analysisType = "args", ...)
analysisType |
|
... |
See examples or the vignette for what arguments to pass in Currently supports:
|
backend methods to build cogs for a gear
object
Specify the analysisType
and the corresponding argument set
Output a cog
object to
## Not run:
# Argument cog
## Necessary arguments are:
## ploidy: The ploidy called in the genotyping process.
## nCores: Number of cores to run analysis over.
## minSites: The proportion of sites within the window with a genotype called.
## pairwiseDeletion: This will remove missing data in a pairwise manner i.e. will not count missing data as informative.
## removeIndels: Should indels be removed from the analysis?
arg <- makeCog(analysisType = "args", ploidy = 2, nCores = 4, minSites = 0.2, pairwiseDeletion = TRUE, removeIndels = TRUE)
# Genetic Diversity cog
## stats: What statistics should be run?
diversity <- makeCog(analysisType = "diversityFULL", stats = "all")
# Admixture cog
## threePop: structure for f3 stat
## fourPop: structure for f4 and fd stat
admix <- makeCog(analysisType = "admixture", threePop = list(c("P1", "P2", "O")),
fourPop = list(c("P1", "P2", "P3", "O")))
# Output Loci cog
## outputDirectory: The directory to output fasta files to for downstream analysis
## alleles: Output "seperate" or "collapsed" genotypes
outloci <- makeCog(analysisType = "outputLoci", outputDirectory = "~/path/to/dir/", alleles = "seperate")
# Output Trees cog
## outputDirectory: The directory to output fasta files to for downstream analysis
## alleles: Output "seperate" or "collapsed" genotypes
outTrees <- makeCog(analysisType = "outputTrees", outputDirectory = "~/path/to/dir/", alleles = "seperate")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.