kmeRs_statistics: Calculate row and column statistics for a k-mer similarity...

View source: R/kmeRs_statistics.R

kmeRs_statisticsR Documentation

Calculate row and column statistics for a k-mer similarity matrix

Description

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

Usage

kmeRs_statistics(x, margin.only = FALSE, digits = 2)

Arguments

x

Similarity matrix computed by kmeRs_similarity_matrix

margin.only

Should only margin statistics be displayed? Defaults to FALSE

digits

rounding digits, defaults to 2

Value

data.frame with results

Examples

# 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)


kmeRs documentation built on Sept. 11, 2024, 6:52 p.m.