ensembl-hive  2.7.0
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor Class Reference
+ Inheritance diagram for Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor:

Public Member Functions

public ArrayRef fetch_all ()
 
public Bio::EnsEMBL::AltAlleleGroup fetch_by_dbID ()
 
public Bio::EnsEMBL::AltAlleleGroup fetch_by_gene_id ()
 
public Array fetch_all_by_gene_id ()
 
public Int store ()
 
public Int update ()
 
public remove ()
 
protected _tables ()
 
- Public Member Functions inherited from Bio::EnsEMBL::DBSQL::BaseAdaptor
public Bio::EnsEMBL::DBSQL::BaseAdaptor new ()
 
public DBI::StatementHandle prepare ()
 
public Bio::EnsEMBL::DBSQL::DBAdaptor db ()
 
public Bio::EnsEMBL::DBSQL::DBConnection dbc ()
 
public Boolean is_multispecies ()
 
public Int species_id ()
 
protected _list_dbIDs ()
 
protected _straight_join ()
 
protected _can_straight_join ()
 
public Listref bind_param_generic_fetch ()
 
protected _bind_param_generic_fetch ()
 
public String generate_in_constraint ()
 
public Listref generic_fetch ()
 
public Int generic_count ()
 
protected _generate_sql ()
 
public Bio::EnsEMBL::Feature fetch_by_dbID ()
 
protected _uncached_fetch_by_dbID ()
 
public Listref fetch_all_by_dbID_list ()
 
protected _uncached_fetch_all_by_dbID_list ()
 
protected ArrayRef _uncached_fetch_all_by_id_list ()
 
public fetch_all ()
 
public Scalar last_insert_id ()
 
public insert_ignore_clause ()
 
protected Bio::EnsEMBL::DBSQL::Support::BaseCache _id_cache ()
 
protected Boolean _no_id_cache ()
 
public Boolean ignore_cache_override ()
 
public Int schema_version ()
 
protected _tables ()
 
protected _columns ()
 
protected _default_where_clause ()
 
protected _left_join ()
 
protected _final_clause ()
 
protected _objs_from_sth ()
 
protected _build_id_cache ()
 
protected _logic_name_to_constraint ()
 

Detailed Description

Synopsis

my $aag_adaptor = Bio::EnsEMBL::Registry->get_DBAdaptor("Human","core","AltAlleleGroup");
# For a known Gene, find the reference alternative allele
my $aag = $aag_adaptor->fetch_by_gene_id($gene->dbID);
my $reference_gene = $aag->get_ref_Gene;
# Get a list of AltAlleleGroups
my $list = $aag_adaptor->fetch_all_('IS_REPRESENTATIVE');
$list = $aag_adaptor->fetch_all();
my $dbID = $aag_adaptor->store($aag);
$aag = $aag_adaptor->fetch_by_dbID($dbID);
$aag_adaptor->remove($aag);

Description

  The AltAlleleGroupAdaptor provides CRUD for AltAlleleGroup objects. It allows
  groups of alleles to be retrieved by group and gene ids.

Definition at line 36 of file AltAlleleGroupAdaptor.pm.

Member Function Documentation

◆ _tables()

protected Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::_tables ( )

Undocumented method

Code:
click to view

◆ fetch_all()

public ArrayRef Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_all ( )
  Arg[1]      : (optional) String - type of group
                Restrict group fetches to just one type. Technically it selects 
                out mixed-annotation groups where a single member contains that type.
  Description : Fetches all the alt-allele groups, creates objects to represent
                them and returns them in a list. Specifying a group type 
                identifies all groups containing a member of this type. It 
                does not filter out the other members
                Multispecies support is triggered by the is_multispecies flag
                and species_id of the DBAdaptor.
  Returntype  : ArrayRef of Bio::EnsEMBL::AltAlleleGroup
 
Code:
click to view

◆ fetch_all_by_gene_id()

public Array Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_all_by_gene_id ( )
  Arg[1]      : Integer Gene ID of the member to query by
  Description : Returns an array of one or more AltAlleleGroups,
                which each contain the specified gene member                
  Returntype  : Array of Bio::EnsEMBL::AltAlleleGroup objects
 
Code:
click to view

◆ fetch_by_dbID()

public Bio::EnsEMBL::AltAlleleGroup Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_by_dbID ( )
  Arg[1]      : AltAlleleGroup dbID.
  Description : Creates and returns an AltAlleleGroup for the given group id
  Returntype  : Bio::EnsEMBL::AltAlleleGroup
 
Code:
click to view

◆ fetch_by_gene_id()

public Bio::EnsEMBL::AltAlleleGroup Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_by_gene_id ( )
  Arg[1]      : Integer Gene ID of the member to query by
  Description : Returns an AltAlleleGroup which contains
                the specified gene member                
  Returntype  : Bio::EnsEMBL::AltAlleleGroup
 
Code:
click to view

◆ remove()

public Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::remove ( )
  Arg [1]    : The AltAlleleGroup to remove.
  Arg [2]    : Boolean indicates if the entry in alt_allele_group should be retained or remove. Defaults to removing the entry
  Example    :
$aaga->remove($alt_allele_group);
  Description: This removes an AltAlleleGroup from all tables of the database. 
  Exceptions : None
 
Code:
click to view

◆ store()

public Int Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::store ( )
  Arg[1]     : Bio::EnsEMBL::AltAlleleGroup
  Description: Used for persisting new groups to the database.
               It updates the dbID of the object handed to it to match the
               database.
  Returntype : Integer Alt Allele Group id
 
Code:
click to view

◆ update()

public Int Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::update ( )
  Arg [1]    : AltAlleleGroup 
  Description: Removes the existing DB record of an AltAlleleGroup and stores 
               the altered version.
  Returntype : Integer - the return value of the store method, viz. whether the
               insert was successful.
 
Code:
click to view

The documentation for this class was generated from the following file:
Bio::EnsEMBL::Storable::dbID
public Int dbID()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_all_by_gene_id
public Array fetch_all_by_gene_id()
Bio::EnsEMBL::AltAlleleGroup
Definition: AltAlleleGroup.pm:67
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_by_gene_id
public Bio::EnsEMBL::AltAlleleGroup fetch_by_gene_id()
Bio::EnsEMBL::Registry
Definition: Registry.pm:113
Bio::EnsEMBL::Registry::get_DBAdaptor
public DBAdaptor get_DBAdaptor()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::update
public Int update()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::_tables
protected _tables()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_by_dbID
public Bio::EnsEMBL::AltAlleleGroup fetch_by_dbID()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::store
public Int store()
Bio::EnsEMBL::AltAlleleGroup::new
public Bio::EnsEMBL::AltAlleleGroup new()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::fetch_all
public ArrayRef fetch_all()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor::remove
public remove()
Bio::EnsEMBL::DBSQL::AltAlleleGroupAdaptor
Definition: AltAlleleGroupAdaptor.pm:36