R/kmeRs_test_package.R

Defines functions kmeRs_test_package

Documented in kmeRs_test_package

#' @title Simple Demo For KmeRs Package
#'
#' @description
#' The \code{kmeRs_test_package} function calculates and shows an example report of
#' the kmeRs package for sample given k-mers: "ATA", "CGC", "TGC", "GGA"
#'
#' @aliases kmeRs_test_package
#'
#' @return example report
#'
#' @examples
#' # Test package - example raport
#'
#' kmeRs_test_package()
#'
#' @export


  kmeRs_test_package <- function(){

    # Sample k-mers
    kmers_given <- c("ATA", "CGC", "TGC", "GGA")

    # Calculate similarity matrix
    kmeRs_test_matrix <- kmeRs_similarity_matrix(kmers_given, k = 1, submat = "BLOSUM62", save_to_file = '')

    # Score and sort the Similarity Matrix
    kmeRs_test_matrix <- kmeRs_score_and_sort(kmeRs_test_matrix)

    # Calculate and add basic statistics to the similarity matrix
    kmeRs_test_matrix <- kmeRs_statistics(kmeRs_test_matrix, summary_statistics_only = FALSE)

    # Show example alignment
    print("Example result of the kmeRs_show_alignment() function")
    print(kmeRs_show_alignment( kmer_A = "AAATTTCCCGGG", kmer_B = "TCACCC" ,submat = "BLOSUM62"))

    print("Example analysis for sample kmers_given :")
    print(paste(kmers_given))

    return(kmeRs_test_matrix)

}

Try the kmeRs package in your browser

Any scripts or data that you put into this service are public.

kmeRs documentation built on May 2, 2019, 6:46 a.m.