search for: seqs2

Displaying 1 result from an estimated 1 matches for "seqs2".

Did you mean: seq2
2010 Dec 21
3
Performing basic Multiple Sequence Alignment in R?
...where.to.change.the.letters <- sample(seq_along(x) , number.of.changes, F) x[where.to.change.the.letters] <- new.letters return(x) } change.letters(original.seq) insert.missing.values <- function(x) change.letters(x, 3, "-") insert.missing.values(original.seq) seqS2 <- t(apply(seqS, 1, change.letters)) seqS3 <- t(apply(seqS2, 1, insert.missing.values)) seqS4 <- apply(seqS3,1, function(x) {paste(x, collapse = "")}) require(stringr) # library(help=stringr) all.seqS <- str_replace(seqS4,"-" , "") # how do we allign th...