kmeRs_score: Sort a k-mer Similarity Matrix

View source: R/kmeRs_score.R

kmeRs_scoreR Documentation

Sort a k-mer Similarity Matrix

Description

The kmeRs_score function sums the partial scores and sort the data.frame to indicate the most 'different' k-mers

Usage

kmeRs_score(x, decreasing = FALSE)

Arguments

x

the similarity matrix calculated by kmeRs_similarity_matrix function

decreasing

when TRUE, results are sorted decreasing

Value

sorted similarity matrix with global.score column added; is returned as a data.frame

Examples

# Calculate the example BLOSUM62 matrix and score the result

example <- kmeRs_similarity_matrix(kmers_given = c("A", "T", "C", "G"), submat = "BLOSUM62")
kmeRs_score(example)


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