Skip to content
  • Andreas Kusalananda Kähäri's avatar
    ac4ef744
    Finish implementation of fetch_ancestor_chart(): · ac4ef744
    Andreas Kusalananda Kähäri authored
      Arg [1]       : Bio::EnsEMBL::OntologyTerm
                      The term whose ancestor terms should be fetched.
    
      Description   : Given a child ontology term, returns a hash
                      structure containing its ancestor terms, up to and
                      including any root term.  In GO, relations of the
                      type 'is_a' and 'part_of' are included, but not
                      'regulates' etc.
    
      Example       : my %chart =
                        %{ $ot_adaptor->fetch_ancestor_chart($term) };
    
      Return type   : A reference to a hash structure like this:
    
        {
          'GO:XXXXXXX' => {
            'term' =>           # ref to Bio::EnsEMBL::OntologyTerm object
            'is_a'    => [...], # listref of Bio::EnsEMBL::OntologyTerm
            'part_of' => [...], # listref of Bio::EnsEMBL::OntologyTerm
          },
          'GO:YYYYYYY' => {
            # Similarly for all ancestors,
            # and including the query term itself.
          }
        }
    ac4ef744
    Finish implementation of fetch_ancestor_chart():
    Andreas Kusalananda Kähäri authored
      Arg [1]       : Bio::EnsEMBL::OntologyTerm
                      The term whose ancestor terms should be fetched.
    
      Description   : Given a child ontology term, returns a hash
                      structure containing its ancestor terms, up to and
                      including any root term.  In GO, relations of the
                      type 'is_a' and 'part_of' are included, but not
                      'regulates' etc.
    
      Example       : my %chart =
                        %{ $ot_adaptor->fetch_ancestor_chart($term) };
    
      Return type   : A reference to a hash structure like this:
    
        {
          'GO:XXXXXXX' => {
            'term' =>           # ref to Bio::EnsEMBL::OntologyTerm object
            'is_a'    => [...], # listref of Bio::EnsEMBL::OntologyTerm
            'part_of' => [...], # listref of Bio::EnsEMBL::OntologyTerm
          },
          'GO:YYYYYYY' => {
            # Similarly for all ancestors,
            # and including the query term itself.
          }
        }
Loading