Skip to content
Snippets Groups Projects
Commit a6294df8 authored by Arne Stabenau's avatar Arne Stabenau
Browse files

updated documentation for new standard.

parent 5623d794
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,18 @@ use strict;
@ISA = qw( Bio::EnsEMBL::DBSQL::BaseAdaptor Bio::Root::RootI );
=head2 new
Arg 1 : Bio::EnsEMBL::DBSQL::DBAdaptor $dbadaptor
Function : create an AnalysisAdaptor. Caches all Analysis objects from the database.
Returntype: Bio::EnsEMBL::DBSQL::AnalysisAdaptor
Exceptions: none
Caller : DBAdaptor::get_AnalysisAdaptor
=cut
sub new {
my $class = shift;
my $self = bless {},$class;
......@@ -63,16 +75,19 @@ sub new {
return $self;
}
=head2 fetch_all
Title : fetch_all
Usage : @analyses = $self->fetch_all;
Function: retrieves all analyses from db;
Returns : List of Bio::EnsEMBL::Analysis
Args : -
Args : none
Function : Retrieves all Analysis objects from the database,
caches them.
Returntype: list Bio::EnsEMBL::Analysis
Exceptions: none
Caller : $self->new
=cut
sub fetch_all {
my $self = shift;
my ( $analysis, $dbID );
......@@ -98,14 +113,18 @@ sub fetch_all {
return values %{$self->{_cache}};
}
=head2 fetch_by_dbID
Title : fetch_by_dbID
Usage : my $analysis = $adaptor->fetch_by_dbID
Function: Retrieves an analysis from database by internal id
Returns : throws exception when something goes wrong.
undef if the id is not in the db.
Args :
Arg 1 : int $internal_analysis_id
Function : Retrieves an analysis from database by internal id.
Returns undef if id not present in db.
Returntype: Bio::EnsEMBL::Analysis
Exceptions: none
Caller : generally used
=cut
=cut
......@@ -140,6 +159,18 @@ sub fetch_by_dbID {
return $anal;
}
=head2 fetch_by_newest_logic_name
Arg 1 : txt $logic_name
Function : Retrieve latest Analysis object from db with given logic_name
Returntype: Bio::EnsEMBL::Analysis
Exceptions: none
Caller : Probably Pipeline control scripts
=cut
sub fetch_by_newest_logic_name {
my $self = shift;
my $logic_name = shift;
......@@ -194,8 +225,20 @@ sub fetch_by_logic_name {
return @result;
}
# store makes dbID for analysis object
# sets the creation time in created if it wasnt set before
=head2 store
Arg 1 : Bio:EnsEMBL::Analysis $analysis
Function : stores $analysis in db. Doesn if already equppied with dbID
Sets created date if not already set. Sets dbID and adaptor
inside $analysis. Returns dbID.
Returntype: int
Exceptions: none
Caller : Every store that links to analysis object
=cut
sub store {
my $self = shift;
......
......@@ -54,19 +54,20 @@ use Bio::EnsEMBL::Chromosome;
# we inheriet new of BaseAdaptor
=head2 fetch_by_dbID
Title : fetch_by_dbID
Usage :
Function:
Example :
Returns :
Args :
=head2 fetch_by_dbID
Arg 1 : txt $chromosome_name
Function : return a chromosome object from the name for the chromosome.
Uses static_golden_path ??
Returntype: Bio::EnsEMBL::Chromosome
Exceptions: if chromosome_name not present in static_golden_path table
Caller : ??
=cut
sub fetch_by_dbID{
sub fetch_by_dbID {
my ($self,$id) = @_;
# should check is correct!
......@@ -83,18 +84,18 @@ sub fetch_by_dbID{
return $chr;
}
=head2 fetch_by_chrname
Title : fetch_by_chrname
Usage :
Function:
Example :
Returns :
Args :
=head2 fetch_by_chrname
Arg 1 : txt $chromosome_name
Function : chains to fetch_by_dbID
Returntype: Bio::EnsEMBL::Chromosome
Exceptions: see above
Caller : ??
=cut
sub fetch_by_chrname{
my ($self,$id) = @_;
......@@ -102,18 +103,19 @@ sub fetch_by_chrname{
return $self->fetch_by_dbID($id);
}
=head2 get_landmark_MarkerFeatures
Title : get_landmarkMarkers
Usage :
Function:
Example :
Returns :
Args :
=head2 get_landmark_MarkerFeatures_old
Arg 1 : txt $chromosome_name
Function : depracated, defunct
Returntype: list Bio:EnsEMBL::SeqFeature
Exceptions: none
Caller : ??
=cut
sub get_landmark_MarkerFeatures_old{
my ($self,$chr_name) = @_;
......@@ -167,20 +169,20 @@ sub get_landmark_MarkerFeatures_old{
}
=head2 get_landmark_MarkerFeatures
Title : get_landmarkMarkers
Usage :
Function:
Example :
Returns :
Args :
Arg 1 : txt $chromosome_name
Arg 2 : int $min_feature_distance (glob)
Function : landmark marker SeqFeatures from landmark_marker table
on given chromosome name, ordered ascending. If same marker closer than
$min_feature_distance on chromosome one is pruned from result.
Returntype: list Bio::EnsEMBL::SeqFeature
Exceptions: none
Caller : ??
=cut
sub get_landmark_MarkerFeatures{
my ($self,$chr_name,$glob) = @_;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment