Skip to content
Prev 10320 / 21318 Next

[Bioc-devel] IRanges findOverlaps and queryHits

A couple more things about this: The Hits class is defined in the
S4Vectors package. The changes to the internals of the class happened
in BioC 3.3, almost 1 year ago. The NEWS file in S4Vectors has an entry
under "CHANGES IN VERSION 0.10.0" that describes these changes:

     o Many changes to the Hits class:
       - Replace the old Hits class (where the hits had to be sorted by 
query)
         with the SortedByQueryHits class.
       - A new Hits class where the hits can be in any order is 
re-introduced as
         the parent of the SortedByQueryHits class.
       - The Hits() constructor gets the new 'sort.by.query' argument 
that is
         FALSE by default. When 'sort.by.query' is set to TRUE, the 
constructor
         returns a SortedByQueryHits instance instead of a Hits instance.
       - Bidirectional coercion is supported between Hits and 
SortedByQueryHits.
         When going from Hits to SortedByQueryHits, the hits are sorted 
by query.
       - Add "c" method for Hits objects.
       - Rename Hits slots:
           queryHits -> from
           subjectHits -> to
           queryLength -> nLnode (nb of left nodes)
           subjectLength -> nRnode (nb of right nodes)
       - Add updateObject() method to update serialized Hits objects 
from old
         (queryHits/subjectHits) to new (from/to) internal representation.
       - The "show" method for Hits objects now labels columns with 
from/to by
         default and switches to queryHits/subjectHits labels only when the
         object is a SortedByQueryHits object.
       - New accessors are provided that match the new slot names: 
from(), to(),
         nLnode(), nRnode(). The old accessors (queryHits(), subjectHits(),
         queryLength(), and subjectLength()) are just aliases for the new
         accessors. Also countQueryHits() and countSubjectHits() are now 
aliases
         for new countLnodeHits() and countRnodeHits().

Hope this helps,

H.
On 12/20/2016 12:43 PM, Michael Lawrence wrote:

  
    
Message-ID: <21612e84-9ec5-f8fc-8228-cc0da38537e1@fredhutch.org>
In-Reply-To: <27869_1482266709_58599855_27869_15229_1_CAOQ5NydKkVWhFD1rKvYCE3meuzMVBxqPknjoisxcxRg5-+GeuA@mail.gmail.com>