|
ensembl-hive
2.8.1
|
Inheritance diagram for Bio::EnsEMBL::External::ExternalFeatureAdaptor:Public Member Functions | |
| public Bio::EnsEMBL::External::ExternalFeatureAdaptor | new () |
| public Bio::EnsEMBL::DBSQL::DBAdaptor | ensembl_db () |
| public List | coordinate_systems () |
| public String | track_name () |
| public String | feature_type () |
| public Reference | fetch_all_by_Slice () |
| protected | _guess_slice_setter () |
| public Reference | fetch_all_by_contig_name () |
| public Reference | fetch_all_by_supercontig_name () |
| public Reference | fetch_all_by_clone_accession () |
| public Reference | fetch_all_by_chr_start_end () |
| protected void | _no_valid_coord_system () |
| protected Boolean | _supported () |
This class is intended to be used as a method of getting external features into EnsEMBL. To work, this class must be extended and must implement the the coordinate_systems method. As well, the subclass is required to implement a single fetch method so that the external features may be retrieved. By implementing a single fetch_method in a single coordinate system all of the other ExternalFeatureAdaptor fetch methods become available for retrieving the data in several different coordinate systems. The coordinate_systems method should return a list of strings indicating which coordinate system(s) have been implemented. If a given string is returned from the coordinate_systems method then the corresponding fetch method must be implemented. The reverse is also true: if a fetch method is implemented then coordinate_systems must return the appropriate string in its list of return values. The following are the valid coordinate system values and the corresponding fetch methods that must be implemented: COORD SYSTEM STRING FETCH_METHOD ------------------- ------------ 'ASSEMBLY' fetch_all_by_chr_start_end 'CLONE' fetch_all_by_clone_accession 'CONTIG' fetch_all_by_contig_name 'SUPERCONTIG' fetch_all_by_supercontig_name 'SLICE' fetch_all_by_Slice The objects returned by the fetch methods should be EnsEMBL or BioPerl style Feature objects. These objects MUST have start, end and strand methods. Before the non-overridden ExternalFeatureAdaptor fetch methods may be called an EnsEMBL core database adaptor must be attached to the ExternalFeatureAdaptor . This database adaptor is required to perform the remappings between various coordinate system. This may be done implicitly by adding the ExternalFeatureAdaptor to the database adaptor through a call to the DBAdaptor add_ExternalFeatureAdaptor method or explicitly by calling the ExternalFeatureAdaptor ensembl_db method.
Definition at line 85 of file ExternalFeatureAdaptor.pm.
| protected Bio::EnsEMBL::External::ExternalFeatureAdaptor::_guess_slice_setter | ( | ) |
Undocumented method
Code:
| protected void Bio::EnsEMBL::External::ExternalFeatureAdaptor::_no_valid_coord_system | ( | ) |
Arg [1] : none Example :
Description: PRIVATE method - throws an error with a descriptive message Returntype : none Exceptions : always thrown Caller : internal
Code:
| protected Boolean Bio::EnsEMBL::External::ExternalFeatureAdaptor::_supported | ( | ) |
Arg [1] : string $system Example :
Description: PRIVATE method. Tests if the coordinate system defined by
the $system argument is implemented.
Returntype : boolean
Exceptions : none
Caller : internal
Code:
| public List Bio::EnsEMBL::External::ExternalFeatureAdaptor::coordinate_systems | ( | ) |
Arg [1] : none Example :
Description: ABSTRACT method. Must be implemented by all
ExternalFeatureAdaptor subclasses. This method returns a list
of coordinate systems which are implemented by the subclass.
A minimum of on valid coordinate system must be implemented.
Valid coordinate systems are: 'SLICE', 'ASSEMBLY', 'CONTIG',
and 'CLONE'.
Returntype : list of strings
Exceptions : none
Caller : internal
Code:
| public Bio::EnsEMBL::DBSQL::DBAdaptor Bio::EnsEMBL::External::ExternalFeatureAdaptor::ensembl_db | ( | ) |
Arg [1] : (optional) Bio::EnsEMBL::DBSQL::DBAdaptor Example :
Description: none Returntype : Bio::EnsEMBL::DBSQL::DBAdaptor Exceptions : none Caller : internal
Code:
| public String Bio::EnsEMBL::External::ExternalFeatureAdaptor::feature_type | ( | ) |
Arg [1] : none Example :
Description: Currently this is not used. In the future it may be possible
to have ExternalFeatures automatically displayed by the EnsEMBL
web code. This method would then be used do determine the
type of glyphs used to draw the features which are returned
from this external adaptor.
Returntype : string
Exceptions : none
Caller : none
Code:
| public Reference Bio::EnsEMBL::External::ExternalFeatureAdaptor::fetch_all_by_chr_start_end | ( | ) |
Arg [1] : string $chr_name
The name of the chromosome to retrieve features from
Arg [2] : int $start
The start coordinate of the chromosomal region to retrieve
features from.
Arg [3] : int $end
The end coordinate of the chromosomal region to retrieve
features from.
Example : Description: Retrieves features on the region defined by the $chr_name,
$start, and $end args in assembly (chromosomal) coordinates. If this method is overridden then the coordinate_systems method
must return 'ASSEMBLY' as one of its values. This method will work as is (i.e. without overriding it)
providing at least one of the other fetch methods is overridden.
Returntype : reference to a list of Bio::SeqFeatures
Exceptions : Thrown if the coordinate_systems method returns ASSEMBLY as a
value and this method is not overridden.
Thrown if any of the input arguments are incorrect
Caller : general, fetch_all_by_Slice
Code:
| public Reference Bio::EnsEMBL::External::ExternalFeatureAdaptor::fetch_all_by_clone_accession | ( | ) |
Arg [1] : string $acc
The EMBL accession number of the clone to fetch features from.
Arg [2] : (optional) string $ver
Arg [3] : (optional) int $start
Arg [4] : (optional) int $endExample :
Description: Retrieves features on the clone defined by the $acc arg in
Clone coordinates. If this method is overridden then the coordinate_systems method
must return 'CLONE' as one of its values. The arguments
start, end, version are passed if this method is overridden and
can optionally be used to reduce the scope of the query and
improve performance. This method will work as is - providing at least one other
fetch method has been overridden.
Returntype : reference to a list of Bio::SeqFeature objects in the Clone
coordinate system
Exceptions : thrown if the input argument is incorrect
thrown if the coordinate system method returns the value 'CLONE'
and this method is not overridden.
thrown if the coordinate systems method does not return any
valid values.
Caller : general, fetch_all_by_clone_accession
Code:
| public Reference Bio::EnsEMBL::External::ExternalFeatureAdaptor::fetch_all_by_contig_name | ( | ) |
Arg [1] : string $contig_name
Arg [2] : int $start (optional)
The start of the region on the contig to retrieve features on
if not specified the whole of the contig is used.
Arg [3] : int $end (optional)
The end of the region on the contig to retrieve features on
if not specified the whole of the contig is used.
Example : Description: Retrieves features on the contig defined by the name
$contig_name in contig coordinates. If this method is overridden then the coordinate_systems
method must return 'CONTIG' as one of its values. This method will work as is (i.e. without being overridden)
providing at least one other fetch method has
been overridden.
Returntype : reference to a list of Bio::SeqFeature objects in the contig
coordinate system.
Exceptions : thrown if the input argument is incorrect
thrown if the coordinate_systems method returns the value
'CONTIG' and this method has not been overridden.
Caller : general, fetch_all_by_Slice
Code:
| public Reference Bio::EnsEMBL::External::ExternalFeatureAdaptor::fetch_all_by_Slice | ( | ) |
Arg [1] : Bio::EnsEMBL::Slice $slice Example :
Description: Retrieves all features which lie in the region defined
by $slice in slice coordinates. If this method is overridden then the coordinate_systems method
must return 'SLICE' as one of its values. This method will work as is (i.e. without overriding it)
providing at least one of the other fetch methods is overridden.
Returntype : reference to a list of Bio::SeqFeature objects in the Slice
coordinate system
Exceptions : Thrown on incorrect input arguments
Caller : general, fetch_all_by_chr_start_end
Code:
| public Reference Bio::EnsEMBL::External::ExternalFeatureAdaptor::fetch_all_by_supercontig_name | ( | ) |
Arg [1] : string $supercontig_name
Arg [2] : int $start (optional)
The start of the region on the contig to retrieve features on
if not specified the whole of the contig is used.
Arg [3] : int $end (optional)
The end of the region on the contig to retrieve features on
if not specified the whole of the contig is used.
Example : Description: Retrieves features on the contig defined by the name
$supercontigname in supercontig coordinates. If this method is overridden then the coordinate_systems
method must return 'SUPERCONTIG' as one of its values. This method will work as is (i.e. without being overridden)
providing at least one other fetch method has
been overridden.
Returntype : reference to a list of Bio::SeqFeature objects in the contig
coordinate system.
Exceptions : thrown if the input argument is incorrect
thrown if the coordinate_systems method returns the value
'SUPERCONTIG' and this method has not been overridden.
Caller : general, fetch_all_by_Slice
Code:
| public Bio::EnsEMBL::External::ExternalFeatureAdaptor Bio::EnsEMBL::External::ExternalFeatureAdaptor::new | ( | ) |
Arg [1] : none Example :
Description: Creates a new ExternalFeatureAdaptor object. You may wish to extend this constructor and provide your own set of paremeters. Returntype : Bio::EnsEMBL::External::ExternalFeatureAdaptor Exceptions : none Caller : general
Code:
| public String Bio::EnsEMBL::External::ExternalFeatureAdaptor::track_name | ( | ) |
Arg [1] : none Example :
Description: Currently this is not really used. In the future it may be
possible to have ExternalFeatures automatically displayed by
the EnsEMBL web code. By default this method returns
'External features' but you are encouraged to override this
method and provide your own meaningful name for the features
your adaptor provides. This also allows you to distinguish the
type of features retrieved from Slices. See
the PODs for Bio::EnsEMBL::Slice::get_all_ExternalFeatures and
Bio::EnsEMBL::DBSQL::DBAdaptor::add_ExternalFeatureAdaptor
methods.
Returntype : string
Exceptions : none
Caller : Bio::EnsEMBL::DBSQL::DBAdaptor::add_ExternalFeatureAdaptor
Code: