Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
a6294df8
Commit
a6294df8
authored
23 years ago
by
Arne Stabenau
Browse files
Options
Downloads
Patches
Plain Diff
updated documentation for new standard.
parent
5623d794
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm
+56
-13
56 additions, 13 deletions
modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/ChromosomeAdaptor.pm
+33
-31
33 additions, 31 deletions
modules/Bio/EnsEMBL/DBSQL/ChromosomeAdaptor.pm
with
89 additions
and
44 deletions
modules/Bio/EnsEMBL/DBSQL/AnalysisAdaptor.pm
+
56
−
13
View file @
a6294df8
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/DBSQL/ChromosomeAdaptor.pm
+
33
−
31
View file @
a6294df8
...
...
@@ -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
)
=
@_
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment