#' makestring function
#'
#' For imported sanger files, makestring extracts the sequence + turns into a string.
#' For gRNA sequences imported as vectors, makestring turns the sequence into a gRNA string.
#' @export
#' @import sangerseqR
#' @import Biostrings
makestring <- function(x){
if(typeof(x) !="character"){
xseq <- primarySeq(x, string = TRUE)
xstring = DNAStringSet(xseq)
} else {
xstring = DNAStringSet(x)
}}
#' alignsequences function.
#'
#' Aligns 5 sequences and opens the alignment output in a browser.
#' @export
#' @import DECIPHER
alignsequences <- function(a,b,c,d,e){
alignment <- AlignProfiles(a,b)
alignment <- AlignProfiles(alignment,c)
alignment <- AlignProfiles(alignment,d)
alignment <- AlignProfiles(alignment,e)
BrowseSeqs(alignment)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.