ensembl-hive
2.6
|
Public Member Functions | |
public Bio::EnsEMBL::Gene | new () |
public String | external_name () |
public String | source () |
public String | external_db () |
public String | external_status () |
public String | description () |
public Boolean | equals () |
public Bio::EnsEMBL::Transcript | canonical_transcript () |
public Listref | get_all_Attributes () |
public void | add_Attributes () |
public void | add_DBEntry () |
public Listref | get_all_DBEntries () |
public Listref | get_all_object_xrefs () |
public Listref | get_all_DBLinks () |
public Listref | get_all_xrefs () |
public Listref | get_all_Exons () |
public Listref | get_all_Introns () |
public Listref | get_all_homologous_Genes () |
protected void | _clear_homologues () |
public void | add_Transcript () |
public | remove_Transcript () |
public Listref | get_all_Transcripts () |
public Listref | get_all_alt_alleles () |
public Int | version () |
public String | stable_id () |
public String | stable_id_version () |
public Int | is_current () |
public String | created_date () |
public String | modified_date () |
public Bio::EnsEMBL::Gene | transform () |
public Bio::EnsEMBL::Gene | transfer () |
public Bio::EnsEMBL::DBEntry | display_xref () |
public String | display_id () |
public void | recalculate_coordinates () |
public | get_all_DASFactories () |
public Hashref | get_all_DAS_Features () |
public | load () |
public | flush_Transcripts () |
public | is_reference () |
public Hashref | summary_as_hash () |
public Bio::EnsEMBL::DBEntry | havana_gene () |
public Bio::EnsEMBL::Biotype | get_Biotype () |
public Bio::EnsEMBL::Biotype | set_Biotype () |
public String | biotype () |
Public Member Functions inherited from Bio::EnsEMBL::Feature | |
public Bio::EnsEMBL::Feature | new () |
public Int | start () |
public Int | end () |
public Int | strand () |
public void | move () |
public Int | length () |
public Bio::EnsEMBL::Analysis | analysis () |
public Bio::EnsEMBL::Slice | slice () |
public Boolean Or Undef | equals () |
public Bio::EnsEMBL::Feature | transform () |
public Bio::EnsEMBL::Feature | transfer () |
public Listref | project_to_slice () |
public Listref | project () |
public String | seqname () |
public String | display_id () |
public String | version () |
public Bio::EnsEMBL::Slice | feature_Slice () |
public String | seq_region_name () |
public Int | seq_region_length () |
public Boolean | seq_region_strand () |
public Int | seq_region_start () |
public Int | seq_region_end () |
public String | coord_system_name () |
public String | seq () |
public Listref | get_all_alt_locations () |
public Boolean | overlaps () |
public Boolean | overlaps_local () |
public List | get_overlapping_Genes () |
public Bio::EnsEMBL::Gene | get_nearest_Gene () |
public String | feature_so_acc () |
public String | feature_so_term () |
public Hashref | summary_as_hash () |
public String | species () |
public | sub_SeqFeature () |
public | add_sub_SeqFeature () |
public | flush_sub_SeqFeature () |
Public Member Functions inherited from Bio::EnsEMBL::Storable | |
public Bio::EnsEMBL::Storable | new () |
public Instance | new_fast () |
public Int | dbID () |
public Bio::EnsEMBL::DBSQL::BaseAdaptor | adaptor () |
public Boolean | is_stored () |
public | get_all_DAS_Features () |
A representation of a Gene within the Ensembl system. A gene is a set of one or more alternative transcripts.
protected void Bio::EnsEMBL::Gene::_clear_homologues | ( | ) |
Description: Removes any cached homologues from the Gene which could have been fetched from the get_all_homologous_Genes() call. Returntype : none Exceptions : none Caller : general
public void Bio::EnsEMBL::Gene::add_Attributes | ( | ) |
Arg [1-N] : list of Bio::EnsEMBL::Attribute's @attribs Attribute(s) to add Example :
Description: Adds an Attribute to the Gene. If you add an attribute before you retrieve any from database, lazy loading will be disabled. Returntype : none Exceptions : throw on incorrect arguments Caller : general Status : Stable
public void Bio::EnsEMBL::Gene::add_DBEntry | ( | ) |
Arg [1] : Bio::EnsEMBL::DBEntry $dbe The dbEntry to be added Example :
Description: Associates a DBEntry with this gene. Note that adding DBEntries will prevent future lazy-loading of DBEntries for this gene (see get_all_DBEntries). Returntype : none Exceptions : thrown on incorrect argument type Caller : general Status : Stable
public void Bio::EnsEMBL::Gene::add_Transcript | ( | ) |
Arg [1] : Bio::EnsEMBL::Transcript $trans The transcript to add to the gene Example :
Description: Adds another Transcript to the set of alternatively spliced Transcripts of this gene. If it shares exons with another Transcript, these should be object-identical. Returntype : none Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::biotype | ( | ) |
Arg [1] : (optional) String - the biotype to set Example :
Description: Getter/setter for the attribute biotype name. Recommended to use instead for a getter: $biotype = $gene->get_Biotype; and for a setter: $biotype = $gene->set_Biotype("protein_coding"); The String biotype name can then be retrieved by calling name on the Biotype object: $biotype_name = $biotype->name; Returntype : String Exceptions : none Caller : general Status : Stable
public Bio::EnsEMBL::Transcript Bio::EnsEMBL::Gene::canonical_transcript | ( | ) |
Arg [1] : (optional) Bio::EnsEMBL::Transcript - canonical_transcript object Example :
Description: Getter/setter for the canonical_transcript Returntype : Bio::EnsEMBL::Transcript Exceptions : Throws if argument is not a transcript object. Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::created_date | ( | ) |
Arg [1] : (optional) String - created date to set (as a UNIX time int) Example :
Description: Getter/setter for attribute created_date Returntype : String Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::description | ( | ) |
Arg [1] : (optional) String - the description to set Example :
Description: Getter/setter for gene description Returntype : String Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::display_id | ( | ) |
Example :
Description: This method returns a string that is considered to be the 'display' identifier. For genes this is (depending on availability and in this order) the stable Id, the dbID or an empty string. Returntype : String Exceptions : none Caller : web drawing code Status : Stable
public Bio::EnsEMBL::DBEntry Bio::EnsEMBL::Gene::display_xref | ( | ) |
Arg [1] : (optional) Bio::EnsEMBL::DBEntry - the display xref to set Example :
Description: Getter/setter display_xref for this gene. Returntype : Bio::EnsEMBL::DBEntry Exceptions : none Caller : general Status : Stable
public Boolean Bio::EnsEMBL::Gene::equals | ( | ) |
Arg [1] : Bio::EnsEMBL::Gene gene Example :
Description : Compares two genes for equality. The test for eqality goes through the following list and terminates at the first true match:
1. If Bio::EnsEMBL::Feature::equals() returns false, then the genes are *not* equal. 2. If the biotypes differ, then the genes are *not* equal. 3. If both genes have stable IDs: if these are the same, the genes are equal, otherwise not. 4. If both genes have the same number of transcripts and if these are (when compared pair-wise sorted by start-position and length) the same, then they are equal, otherwise not.
Return type : Boolean (0, 1)
Exceptions : Thrown if a non-gene is passed as the argument.
public String Bio::EnsEMBL::Gene::external_db | ( | ) |
Arg [1] : (optional) String - name of external db to set Example :
Description: Getter/setter for attribute external_db. The db is the one that belongs to the external_name. Returntype : String Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::external_name | ( | ) |
Arg [1] : (optional) String - the external name to set Example :
Description: Getter/setter for attribute external_name. Returntype : String or undef Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::external_status | ( | ) |
Arg [1] : (optional) String - status of the external db Example :
Description: Getter/setter for attribute external_status. The status of the external db of the one that belongs to the external_name. Returntype : String Exceptions : none Caller : general Status : Stable
public Bio::EnsEMBL::Gene::flush_Transcripts | ( | ) |
Description : Empties out caches and unsets fields of this Gene. Beware of further actions without adding some new transcripts. Example :
public Listref Bio::EnsEMBL::Gene::get_all_alt_alleles | ( | ) |
Example :
print "Alternate allele: " . $alt_gene->stable_id() . "\n"; } Description: Returns a listref of Gene objects that represent this Gene on an alternative haplotype. Empty list if there is no such Gene (eg there is no overlapping haplotype). Returntype : listref of Bio::EnsEMBL::Gene objects Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_Attributes | ( | ) |
Arg [1] : (optional) String $attrib_code The code of the attribute type to retrieve values for Example :
Description: Gets a list of Attributes of this gene. Optionally just get Attributes for given code. Returntype : Listref of Bio::EnsEMBL::Attribute Exceptions : warning if gene does not have attached adaptor and attempts lazy load. Caller : general Status : Stable
public Hashref Bio::EnsEMBL::Gene::get_all_DAS_Features | ( | ) |
Example :
Description: Retrieves a hash reference to a hash of DAS feature sets, keyed by the DNS, NOTE the values of this hash are an anonymous array containing: (1) a pointer to an array of features (2) a pointer to the DAS stylesheet Returntype : hashref of Bio::SeqFeatures Exceptions : none Caller : webcode Status : Stable
public Bio::EnsEMBL::Gene::get_all_DASFactories | ( | ) |
Example :
Description: Retrieves a listref of registered DAS objects TODO: Abstract to a DBLinkContainer obj Returntype : [ DAS_objects ] Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_DBEntries | ( | ) |
Arg [1] : (optional) String, external database name, SQL wildcard characters (_ and %) can be used to specify patterns.
Arg [2] : (optional) String, external_db type, can be one of ('ARRAY','ALT_TRANS','ALT_GENE','MISC','LIT','PRIMARY_DB_SYNONYM','ENSEMBL'), SQL wildcard characters (_ and %) can be used to specify patterns.
Example :
Description: Retrieves DBEntries (xrefs) for this gene. This does not* include DBEntries that are associated with the transcripts and corresponding translations of this gene (see get_all_DBLinks()).
This method will attempt to lazy-load DBEntries from a database if an adaptor is available and no DBEntries are present on the gene (i.e. they have not already been added or loaded).
Return type: Listref of Bio::EnsEMBL::DBEntry objects Exceptions : none Caller : get_all_DBLinks, GeneAdaptor::store Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_DBLinks | ( | ) |
Arg [1] : String database name (optional) SQL wildcard characters (_ and %) can be used to specify patterns.
Arg [2] : (optional) String, external database type, can be one of ('ARRAY','ALT_TRANS','ALT_GENE','MISC','LIT','PRIMARY_DB_SYNONYM','ENSEMBL'), SQL wildcard characters (_ and %) can be used to specify patterns.
Example :
Description: Retrieves *all* related DBEntries for this gene. This includes all DBEntries that are associated with the transcripts and corresponding translations of this gene.
If you only want to retrieve the DBEntries associated with the gene (and not the transcript and translations) then you should use the get_all_DBEntries() call instead.
Note: Each entry may be listed more than once. No uniqueness checks are done. Also if you put in an incorrect external database name no checks are done to see if this exists, you will just get an empty list.
Return type: Listref of Bio::EnsEMBL::DBEntry objects Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_Exons | ( | ) |
Example :
Description: Returns a set of all the exons associated with this gene. Returntype : Listref of Bio::EnsEMBL::Exon objects Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_homologous_Genes | ( | ) |
Arg[1] : String The compara synonym to use when looking for a database in the registry. If not provided we will use the very first compara database we find. Description: Queries the Ensembl Compara database and retrieves all Genes from other species that are orthologous. REQUIRES properly setup Registry conf file. Meaning that one of the aliases for each core db has to be "Genus species" e.g. "Homo sapiens" (as in the name column in genome_db table in the compara database).
The data is cached in this Object for faster re-retreival. Returntype : listref [ Bio::EnsEMBL::Gene, Bio::EnsEMBL::Compara::Homology, string $species # needed as cannot get spp from Gene ] Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_Introns | ( | ) |
Arg [1] : none Example :
Description: Returns an listref of the introns in this gene in order. i.e. the first intron in the listref is the 5prime most exon in the gene. Returntype : listref to Bio::EnsEMBL::Intron objects Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_object_xrefs | ( | ) |
Arg [1] : (optional) String, external database name
Arg [2] : (optional) String, external_db type
Example :
Description: Retrieves xrefs for this gene. This does *not* include xrefs that are associated with the transcripts or corresponding translations of this gene (see get_all_xrefs()).
This method will attempt to lazy-load xrefs from a database if an adaptor is available and no xrefs are present on the gene (i.e. they have not already been added or loaded).
NB: This method is an alias for the get_all_DBentries() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_Transcripts | ( | ) |
Example :
Description: Returns the Transcripts in this gene. Returntype : Listref of Bio::EnsEMBL::Transcript objects Warning : This method returns the internal transcript array used by this object. Avoid any modification of this array. We class use of shift and reassignment of the loop variable when iterating this array as modification.
Dereferencing the structure as shown in the example is a safe way of using this data structure. Exceptions : none Caller : general Status : Stable
public Listref Bio::EnsEMBL::Gene::get_all_xrefs | ( | ) |
Arg [1] : String database name (optional) SQL wildcard characters (_ and %) can be used to specify patterns.
Example :
Description: Retrieves *all* related xrefs for this gene. This includes all xrefs that are associated with the transcripts and corresponding translations of this gene.
If you want to retrieve the xrefs associated with only the gene (and not the transcript or translations) then you should use the get_all_object_xrefs() method instead.
Note: Each entry may be listed more than once. No uniqueness checks are done. Also if you put in an incorrect external database name no checks are done to see if this exists, you will just get an empty list.
NB: This method is an alias for the get_all_DBLinks() method.
Return type: Listref of Bio::EnsEMBL::DBEntry objects
Status : Stable
public Bio::EnsEMBL::Biotype Bio::EnsEMBL::Gene::get_Biotype | ( | ) |
Example :
Description: Returns the Biotype object of this gene. When no biotype exists, defaults to 'protein_coding'. When used to set to a biotype that does not exist in the biotype table, a biotype object is created with the provided argument as name and object_type gene. Returntype : Bio::EnsEMBL::Biotype Exceptions : none
public Bio::EnsEMBL::DBEntry Bio::EnsEMBL::Gene::havana_gene | ( | ) |
Example :
Description : Locates the corresponding havana gene Returns : Bio::EnsEMBL::DBEntry
public Int Bio::EnsEMBL::Gene::is_current | ( | ) |
Arg [1] : Boolean $is_current Example :
Description: Getter/setter for is_current state of this gene. Returntype : Int Exceptions : none Caller : general Status : Stable
public Bio::EnsEMBL::Gene::is_reference | ( | ) |
Undocumented method
public Bio::EnsEMBL::Gene::load | ( | ) |
Arg [1] : Boolean $load_xrefs Load (or don't load) xrefs. Default is to load xrefs. Example :
Description : The Ensembl API makes extensive use of lazy-loading. Under some circumstances (e.g., when copying genes between databases), all data of an object needs to be fully loaded. This method loads the parts of the object that are usually lazy-loaded. It will also call the equivalent method on all the transcripts of the gene. Returns :
public String Bio::EnsEMBL::Gene::modified_date | ( | ) |
Arg [1] : (optional) String - modified date to set (as a UNIX time int) Example :
Description: Getter/setter for attribute modified_date Returntype : String Exceptions : none Caller : general Status : Stable
public Bio::EnsEMBL::Gene Bio::EnsEMBL::Gene::new | ( | ) |
Arg [-START] : int - start postion of the gene Arg [-END] : int - end position of the gene Arg [-STRAND] : int - 1,-1 tehe strand the gene is on Arg [-SLICE] : Bio::EnsEMBL::Slice - the slice the gene is on Arg [-STABLE_ID] : string - the stable identifier of this gene Arg [-VERSION] : int - the version of the stable identifier of this gene Arg [-EXTERNAL_NAME] : string - the external database name associated with this gene Arg [-EXTERNAL_DB] : string - the name of the database the external name is from Arg [-EXTERNAL_STATUS]: string - the status of the external identifier Arg [-DISPLAY_XREF]: Bio::EnsEMBL::DBEntry - The external database entry that is used to label this gene when it is displayed. Arg [-TRANSCRIPTS]: Listref of Bio::EnsEMBL::Transcripts - this gene's transcripts Arg [-CREATED_DATE]: string - the date the gene was created Arg [-MODIFIED_DATE]: string - the date the gene was last modified Arg [-DESCRIPTION]: string - the genes description Arg [-BIOTYPE]: string - the biotype e.g. "protein_coding" Arg [-SOURCE]: string - the genes source, e.g. "ensembl" Arg [-IS_CURRENT]: Boolean - specifies if this is the current version of the gene Arg [-CANONICAL_TRANSCRIPT]: Bio::EnsEMBL::Transcript - the canonical transcript of this gene Arg [-CANONICAL_TRANSCRIPT_ID]: integer - the canonical transcript dbID of this gene, if the transcript object itself is not available.
Example :
Description: Creates a new gene object Returntype : Bio::EnsEMBL::Gene Exceptions : none Caller : general Status : Stable
public void Bio::EnsEMBL::Gene::recalculate_coordinates | ( | ) |
Example :
Description: Called when transcript added to the gene, tries to adapt the coords for the gene. Returntype : none Exceptions : none Caller : internal Status : Stable
public Bio::EnsEMBL::Gene::remove_Transcript | ( | ) |
Undocumented method
public Bio::EnsEMBL::Biotype Bio::EnsEMBL::Gene::set_Biotype | ( | ) |
Arg [1] : Arg [1] : String - the biotype name to set Example :
Description: Sets the Biotype of this gene to the provided biotype name. Returns the Biotype object of this gene. When no biotype exists, defaults to 'protein_coding' name. When setting a biotype that does not exist in the biotype table, a biotype object is created with the provided argument as name and object_type gene. Returntype : Bio::EnsEMBL::Biotype Exceptions : If no argument provided
public String Bio::EnsEMBL::Gene::source | ( | ) |
Arg [1] : (optional) String - the source to set Example :
Description: Getter/setter for attribute source Returntype : String Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::stable_id | ( | ) |
Arg [1] : (optional) String - the stable ID to set Example :
Description: Getter/setter for stable id for this gene. Returntype : String Exceptions : none Caller : general Status : Stable
public String Bio::EnsEMBL::Gene::stable_id_version | ( | ) |
Arg [1] : (optional) String - the stable ID with version to set Example :
Description: Getter/setter for stable id with version for this gene. Returntype : String Exceptions : none Caller : general Status : Stable
public Hashref Bio::EnsEMBL::Gene::summary_as_hash | ( | ) |
Example :
Description : Extends Feature::summary_as_hash Retrieves a summary of this Gene object.
Returns : hashref of arrays of descriptive strings Status : Intended for internal use
public Bio::EnsEMBL::Gene Bio::EnsEMBL::Gene::transfer | ( | ) |
Arg [1] : Bio::EnsEMBL::Slice $destination_slice Example :
Description: Moves this Gene to given target slice coordinates. If Transcripts are attached they are moved as well. Returns a new gene. Returntype : Bio::EnsEMBL::Gene Exceptions : none Caller : general Status : Stable
public Bio::EnsEMBL::Gene Bio::EnsEMBL::Gene::transform | ( | ) |
Arg [1] : String - coordinate system name to transform to Arg [2] : String - coordinate system version Example :
Description: Moves this gene to the given coordinate system. If this gene has Transcripts attached, they move as well. Returntype : Bio::EnsEMBL::Gene Exceptions : throw on wrong parameters Caller : general Status : Stable
public Int Bio::EnsEMBL::Gene::version | ( | ) |
Arg [1] : (optional) Int A version number for the stable_id Example :
Description: Getter/setter for version number Returntype : Int Exceptions : none Caller : general Status : Stable