pid(x, type="PID1")
PairwiseAlignments
object."PID1"
, "PID2"
,
"PID3"
, and "PID4"
. See Details for more information.pid
function
calculates this statistic in the following types:
"PID1"
:
"PID2"
:
"PID3"
:
"PID4"
:G. Raghava and G. Barton, Quantification of the variation in percentage identity for protein sequence alignments, BMC Bioinformatics 2006, 7:415.
s1 <- DNAString("AGTATAGATGATAGAT")
s2 <- DNAString("AGTAGATAGATGGATGATAGATA")
palign1 <- pairwiseAlignment(s1, s2)
palign1
pid(palign1)
palign2 <-
pairwiseAlignment(s1, s2,
substitutionMatrix =
nucleotideSubstitutionMatrix(match = 2, mismatch = 10, baseOnly = TRUE))
palign2
pid(palign2, type = "PID4")
Run the code above in your browser using DataLab