R/RcppExports.R

# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Align a read and a reference window.  Both the forward and reverse direction
#' of the read will be  aligned, and only the highest scoring alignment will be
#' returned.
#'
#' @param ref A string that is the reference window we are aligning to.
#' @param read A list with elements name/read.
#'
#' @return Returns a list with the aligned read, ref and score
#' @export
AlignRefAndRead <- function(ref, read, useAffine = FALSE) {
    .Call('ccsviewr_AlignRefAndRead', PACKAGE = 'ccsviewr', ref, read, useAffine)
}

#' Takes a list of pairwise alignments and generates a data frame with the MSA
#' sequence. The reference sequence is determined from the first alignment in
#' the list. All reads are expanded by adding enough inserts to account for all
#' of them.
#'
#' @param ref A string that is the reference window we are aligning to.
#' @param read A list with elements name/read.
#'
#' @return Returns a list with the aligned read, ref and score
#' @export
AlnsToDataFrame <- function(alns) {
    .Call('ccsviewr_AlnsToDataFrame', PACKAGE = 'ccsviewr', alns)
}
PacificBiosciences/ccsviewr documentation built on May 7, 2019, 11:55 p.m.