Nothing
## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ------------------------------------------------------------------------
# Import the package
library(kmeRs)
## ------------------------------------------------------------------------
# Simple BLOSUM62 similarity matrix for all DNA nucleotides
result <- kmeRs_similarity_matrix(kmers_given = c("A", "T", "C", "G"), submat = "BLOSUM62")
# Fancy knitr table
knitr::kable(result)
## ------------------------------------------------------------------------
# Given hexamers
kmers_given <- c("GATTACA", "ACAGATT", "GAATTAC", "GAAATCT", "CTATAGA", "GTACATA", "AACGATT")
# Matrix calculation
result <- kmeRs_similarity_matrix(kmers_given = c("GATTACA"), compare_to = kmers_given , submat = "BLOSUM62")
# Fancy knitr table
knitr::kable(result)
## ------------------------------------------------------------------------
# Score and sort the matrix
result <- kmeRs_score_and_sort(result)
# Fancy knitr table
knitr::kable(result)
## ------------------------------------------------------------------------
# Given hexamers
kmers_given <- c("GATTACA", "ACAGATT", "GAATTAC", "GAAATCT", "CTATAGA", "GTACATA", "AACGATT")
# Matrix calculation
result <- kmeRs_similarity_matrix(kmers_given = kmers_given, submat = "BLOSUM62")
# Score the matrix and sort by decreasing score
result <- kmeRs_score_and_sort(result)
# Fancy knitr table
knitr::kable(result)
## ------------------------------------------------------------------------
# Score the matrix and sort by decreasing score
result <- kmeRs_statistics(result)
# Fancy knitr table
knitr::kable(result[ , 1:(length(result[1, ])-4)])
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.