PCA | R Documentation |
Perform PCA on codon usage in a reference database and sequences of unknown taxonomic affinity.
PCA( exclude = character(length = 0), minlen = 600, norm = FALSE, rank = "Phylum", corCut = 0.9, includeTax = NULL ) ## S4 method for signature 'ANY' PCA( exclude = character(length = 0), minlen = 600, norm = FALSE, rank = "Phylum", corCut = 0.9, includeTax = NULL )
exclude |
A character vector of codons to be excluded from comparisons. |
minlen |
Numeric, the minimum length of sequence (in codons) to be included in the analysis. Default = 500. |
norm |
Logical, should the codon abundances be normalised? If TRUE, codon abundances will be converted to codon bias scores, such that the sum of scores for each amino acid sum to 1. Default = FALSE. |
rank |
Character, taxonomic rank to be used for categorisation. Options are "Domain", "Kingdom", and "Phylum". Default = "Phylum". |
corCut |
Numeric, correlation cutoff used for dropping codons that exhibit collinearity. Default = 0.9. |
includeTax |
Character, optional vector of taxa (at the specified rank) to be included in the PCA. If not supplied, all taxa will be used. |
An object of class prcomp
.
exclCod <- c("ATT", "TGT") PCA_tmp <- PCA(exclude = exclCod, rank = "Phylum", minlen = 600) class(PCA_tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.