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
3822b710
Commit
3822b710
authored
17 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
info_type to ex_db_type changes
parent
e35cf342
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/Bio/EnsEMBL/Gene.pm
+8
-8
8 additions, 8 deletions
modules/Bio/EnsEMBL/Gene.pm
modules/Bio/EnsEMBL/Transcript.pm
+7
-7
7 additions, 7 deletions
modules/Bio/EnsEMBL/Transcript.pm
modules/Bio/EnsEMBL/Translation.pm
+4
-4
4 additions, 4 deletions
modules/Bio/EnsEMBL/Translation.pm
with
19 additions
and
19 deletions
modules/Bio/EnsEMBL/Gene.pm
+
8
−
8
View file @
3822b710
...
...
@@ -435,19 +435,19 @@ sub add_DBEntry {
=cut
sub
get_all_DBEntries
{
my
(
$self
,
$db_name_exp
,
$
info
_type
)
=
@_
;
my
(
$self
,
$db_name_exp
,
$
ex_db
_type
)
=
@_
;
my
$cache_name
=
"
dbentries
";
if
(
defined
(
$db_name_exp
)){
$cache_name
.=
$db_name_exp
;
}
if
(
defined
(
$
info
_type
)){
$cache_name
.=
$
info
_type
;
if
(
defined
(
$
ex_db
_type
)){
$cache_name
.=
$
ex_db
_type
;
}
# if not cached, retrieve all of the xrefs for this gene
if
(
!
defined
$self
->
{
$cache_name
}
&&
$self
->
adaptor
())
{
$self
->
{
$cache_name
}
=
$self
->
adaptor
->
db
->
get_DBEntryAdaptor
->
fetch_all_by_Gene
(
$self
,
$db_name_exp
,
,
$
info
_type
);
$self
->
adaptor
->
db
->
get_DBEntryAdaptor
->
fetch_all_by_Gene
(
$self
,
$db_name_exp
,
$
ex_db
_type
);
}
$self
->
{
$cache_name
}
||=
[]
;
...
...
@@ -483,16 +483,16 @@ sub get_all_DBEntries {
sub
get_all_DBLinks
{
my
$self
=
shift
;
my
$db_name_exp
=
shift
;
my
$
info
_type
=
shift
;
my
$
ex_db
_type
=
shift
;
my
@links
=
@
{
$self
->
get_all_DBEntries
(
$db_name_exp
,
$
info
_type
)};
my
@links
=
@
{
$self
->
get_all_DBEntries
(
$db_name_exp
,
$
ex_db
_type
)};
# add all of the transcript and translation xrefs to the return list
foreach
my
$transc
(
@
{
$self
->
get_all_Transcripts
})
{
push
@links
,
@
{
$transc
->
get_all_DBEntries
(
$db_name_exp
,
$
info
_type
)};
push
@links
,
@
{
$transc
->
get_all_DBEntries
(
$db_name_exp
,
$
ex_db
_type
)};
my
$transl
=
$transc
->
translation
();
push
@links
,
@
{
$transl
->
get_all_DBEntries
(
$db_name_exp
,
$
info
_type
)}
if
(
$transl
);
push
@links
,
@
{
$transl
->
get_all_DBEntries
(
$db_name_exp
,
$
ex_db
_type
)}
if
(
$transl
);
}
return
\
@links
;
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Transcript.pm
+
7
−
7
View file @
3822b710
...
...
@@ -181,14 +181,14 @@ sub new {
sub
get_all_DBLinks
{
my
$self
=
shift
;
my
$ex_db_exp
=
shift
;
my
$
info
_type
=
shift
;
my
$
ex_db
_type
=
shift
;
my
@links
;
push
@links
,
@
{
$self
->
get_all_DBEntries
(
$ex_db_exp
,
$
info
_type
)};
push
@links
,
@
{
$self
->
get_all_DBEntries
(
$ex_db_exp
,
$
ex_db
_type
)};
my
$transl
=
$self
->
translation
();
push
@links
,
@
{
$transl
->
get_all_DBEntries
(
$ex_db_exp
,
$
info
_type
)}
if
(
$transl
);
push
@links
,
@
{
$transl
->
get_all_DBEntries
(
$ex_db_exp
,
$
ex_db
_type
)}
if
(
$transl
);
@links
=
sort
{
_compare_xrefs
()}
@links
;
...
...
@@ -217,20 +217,20 @@ sub get_all_DBLinks {
sub
get_all_DBEntries
{
my
$self
=
shift
;
my
$ex_db_exp
=
shift
;
my
$
info
_type
=
shift
;
my
$
ex_db
_type
=
shift
;
my
$cache_name
=
"
dbentries
";
if
(
defined
(
$ex_db_exp
)){
$cache_name
.=
$ex_db_exp
;
}
if
(
defined
(
$
info
_type
)){
$cache_name
.=
$
info
_type
;
if
(
defined
(
$
ex_db
_type
)){
$cache_name
.=
$
ex_db
_type
;
}
# if not cached, retrieve all of the xrefs for this gene
if
(
!
defined
$self
->
{
$cache_name
}
&&
$self
->
adaptor
())
{
$self
->
{
$cache_name
}
=
$self
->
adaptor
->
db
->
get_DBEntryAdaptor
->
fetch_all_by_Transcript
(
$self
,
$ex_db_exp
);
$self
->
adaptor
->
db
->
get_DBEntryAdaptor
->
fetch_all_by_Transcript
(
$self
,
$ex_db_exp
,
$ex_db_type
);
}
$self
->
{
$cache_name
}
||=
[]
;
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Translation.pm
+
4
−
4
View file @
3822b710
...
...
@@ -512,15 +512,15 @@ sub transform {
sub
get_all_DBEntries
{
my
$self
=
shift
;
my
$ex_db_exp
=
shift
;
my
$
info
_type
=
shift
;
my
$
ex_db
_type
=
shift
;
my
$cache_name
=
"
dbentries
";
if
(
defined
(
$ex_db_exp
)){
$cache_name
.=
$ex_db_exp
;
}
if
(
defined
(
$
info
_type
)){
$cache_name
.=
$
info
_type
;
if
(
defined
(
$
ex_db
_type
)){
$cache_name
.=
$
ex_db
_type
;
}
# if not cached, retrieve all of the xrefs for this gene
...
...
@@ -531,7 +531,7 @@ sub get_all_DBEntries {
return
[]
if
(
!
$adaptor
||
!
$dbID
);
$self
->
{
$cache_name
}
=
$self
->
adaptor
->
db
->
get_DBEntryAdaptor
->
fetch_all_by_Translation
(
$self
,
$ex_db_exp
,
$
info
_type
);
$self
->
adaptor
->
db
->
get_DBEntryAdaptor
->
fetch_all_by_Translation
(
$self
,
$ex_db_exp
,
$
ex_db
_type
);
}
$self
->
{
$cache_name
}
||=
[]
;
...
...
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