pairwiseAlignment() returns NA values for similarity length and similarity %:
MWE:
p1 <- AAString(in2seq("VDVYEFIHSTGSIMKRKKDDWVNATHILK")) q1 <- AAString(in2seq("IPVFEYPLNGQYIMIDCETGMVHFTGIWK")) ali <- pairwiseAlignment(p1, q1, substitutionMatrix = "BLOSUM62", gapOpening = 1, gapExtension = 1) writePairwiseAlignments(ali)
----
[...] # Length: 34 # Identity: 10/34 (29.4%) # Similarity: NA/34 (NA%) # Gaps: 10/34 (29.4%) # Score: 36 [...]
(EMBOSS needle with the same parameters gives 48% similarity.)
Is it expected that pairwiseAlignment() produces NA in this case?
Thanks!
Boris
-----
R > sessionInfo() R version 3.2.2 (2015-08-14) Platform: x86_64-apple-darwin13.4.0 (64-bit) Running under: OS X 10.9.5 (Mavericks) locale: [1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8 attached base packages: [1] stats4 parallel stats graphics grDevices utils datasets methods base other attached packages: [1] Biostrings_2.36.4 XVector_0.8.0 IRanges_2.2.9 S4Vectors_0.6.6 [5] BiocGenerics_0.14.0 BiocInstaller_1.18.4 seqinr_3.1-3 ade4_1.7-2 [9] stringr_1.0.0 loaded via a namespace (and not attached): [1] zlibbioc_1.14.0 magrittr_1.5 tools_3.2.2 stringi_0.5-5