View source: R/par-01-parSeqSim.R
twoSeqSim | R Documentation |
Sequence alignment between two protein sequences.
twoSeqSim(
seq1,
seq2,
type = "local",
submat = "BLOSUM62",
gap.opening = 10,
gap.extension = 4
)
seq1 |
Character string, containing one protein sequence. |
seq2 |
Character string, containing another protein sequence. |
type |
Type of alignment, default is |
submat |
Substitution matrix, default is |
gap.opening |
The cost required to open a gap of any length in the alignment. Defaults to 10. |
gap.extension |
The cost to extend the length of an existing gap by 1. Defaults to 4. |
A Biostrings
object containing the alignment scores
and other alignment information.
Nan Xiao <https://nanx.me>
See parSeqSim
for paralleled pairwise
protein similarity calculation based on sequence alignment.
See twoGOSim
for calculating the GO semantic
similarity between two groups of GO terms or two Entrez gene IDs.
## Not run:
# Be careful when testing this since it involves sequence alignment
# and might produce unpredictable results in some environments
library("Biostrings")
s1 <- readFASTA(system.file("protseq/P00750.fasta", package = "protr"))[[1]]
s2 <- readFASTA(system.file("protseq/P10323.fasta", package = "protr"))[[1]]
seqalign <- twoSeqSim(s1, s2)
summary(seqalign)
score(seqalign)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.