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
9041de34
Commit
9041de34
authored
8 years ago
by
Kieron Taylor
Browse files
Options
Downloads
Patches
Plain Diff
[
ENSCORESW-1763
] Add a synonym for DBEntry->release to help people find DBEntry versions.
parent
f7f784db
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/DBEntry.pm
+18
-0
18 additions, 0 deletions
modules/Bio/EnsEMBL/DBEntry.pm
modules/t/dbEntries.t
+5
-0
5 additions, 0 deletions
modules/t/dbEntries.t
with
23 additions
and
0 deletions
modules/Bio/EnsEMBL/DBEntry.pm
+
18
−
0
View file @
9041de34
...
@@ -282,6 +282,24 @@ sub version {
...
@@ -282,6 +282,24 @@ sub version {
return
$self
->
{
version
};
return
$self
->
{
version
};
}
}
=head2 db_version
Arg [1] : (optional) String $arg - value to set
Example : none
Description: Alias for release(). The release/version of the external DB
Returntype : String
Exceptions : none
Caller : general
Status : Stable
=cut
sub
db_version
{
my
(
$self
,
$arg
)
=
@_
;
return
$self
->
release
(
$arg
);
}
=head2 description
=head2 description
...
...
This diff is collapsed.
Click to expand it.
modules/t/dbEntries.t
+
5
−
0
View file @
9041de34
...
@@ -300,6 +300,11 @@ $xref->primary_id('2');
...
@@ -300,6 +300,11 @@ $xref->primary_id('2');
$dbEntryAdaptor
->
update
(
$xref
);
$dbEntryAdaptor
->
update
(
$xref
);
my
$updated_xref
=
$dbEntryAdaptor
->
fetch_by_db_accession
('
Vega_gene
',
'
2
');
my
$updated_xref
=
$dbEntryAdaptor
->
fetch_by_db_accession
('
Vega_gene
',
'
2
');
is
(
$updated_xref
->
description
(),
'
new_description
',
'
Xref with updated description
');
is
(
$updated_xref
->
description
(),
'
new_description
',
'
Xref with updated description
');
is
(
$updated_xref
->
db_version
,
'
1
','
DBEntry release/version can be accessed
');
is
(
$updated_xref
->
release
,
'
1
','
DBEntry release/version can be accessed by both methods
');
$updated_xref
->
release
(
2
);
is
(
$updated_xref
->
release
,
'
2
','
DBEntry release can be changed
');
#
#
# 12-14 Test that external synonyms and go evidence tags are retrieved
# 12-14 Test that external synonyms and go evidence tags are retrieved
...
...
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