View source: R/kmeRs_statistics.R
kmeRs_statistics | R Documentation |
The kmeRs_statistics
function calculates basic statistics and returns the similarity matrix
with calculated results or summarized table with statistics only when margin.only
is set to TRUE
kmeRs_statistics(x, margin.only = FALSE, digits = 2)
x |
Similarity matrix computed by |
margin.only |
Should only margin statistics be displayed? Defaults to |
digits |
rounding digits, defaults to 2 |
data.frame with results
# Simple BLOSUM62 similarity matrix for DNA nucleotides
# Sample heptamers
q0 <- c("GATTACA", "ACAGATT", "GAATTAC", "GAAATCT", "CTATAGA", "GTACATA", "AACGATT")
# Compute similarity matrix
example <- kmeRs_similarity_matrix(q0, submat = "BLOSUM62")
# Result as a full matrix
kmeRs_statistics(example)
# Result a summary statistics table
kmeRs_statistics(example, margin.only = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.