Skip to content
Prev 3808 / 21318 Next

[Bioc-devel] serializing pairwise alignment objects

Hi Florian,

I just removed the 'substitutionArray' slot from PairwiseAlignments
objects in Biostrings 2.27.7. The slot didn't seem to be used/needed
by any downstream method.

   > packageVersion("Biostrings")
   [1] ?2.27.7?
   > x <- "xxxabcdefghijklmnopqyyy"
   > y <- "abcdhijkzzzzlmnpqr"
   > pa <- pairwiseAlignment(x, y)
   > slotNames(pa)
   [1] "pattern"      "subject"      "type"         "score" 
"gapOpening"
   [6] "gapExtension"
   > validObject(pa)
   [1] TRUE
   > object.size(pa)
   35528 bytes

... instead of 35308996 bytes! 3 orders of magnitude smaller :-)

Cheers,
H.
On 11/05/2012 03:45 AM, Hahne, Florian wrote: