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
712cfb5e
Commit
712cfb5e
authored
22 years ago
by
Web Admin
Browse files
Options
Downloads
Patches
Plain Diff
XXXXXXXXXXXXXXXXXXXXXXXXXX
parent
5687a3df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/Lite/GeneAdaptor.pm
+11
-4
11 additions, 4 deletions
modules/Bio/EnsEMBL/Lite/GeneAdaptor.pm
with
11 additions
and
4 deletions
modules/Bio/EnsEMBL/Lite/GeneAdaptor.pm
+
11
−
4
View file @
712cfb5e
# EnsEMB
L
Gene reading writing adaptor for mySQL
# EnsEMB Gene reading writing adaptor for mySQL
#
# Copyright EMBL-EBI 2001
#
...
...
@@ -203,6 +203,7 @@ sub fetch_all_by_Slice {
t.translation_name, t.gene_id, t.type, t.gene_name, t.db,
t.exon_structure, t.external_name, t.external_status,
t.exon_ids, t.external_db, t.coding_start, t.coding_end,
g.chr_start as gene_start, g.chr_end as gene_end,
g.external_name as gene_external_name,
g.external_db as gene_external_db,
g.external_status as gene_external_status,
...
...
@@ -221,7 +222,7 @@ sub fetch_all_by_Slice {
sub
fetch_by_DBEntry
{
my
(
$self
,
$db
,
$dbentry
,
$chr_coords
)
=
@_
;
my
$sth
=
$self
->
prepare
(
"
select gene_name from gene_xref where external_name = ? and db= ?
"
);
my
$sth
=
$self
->
prepare
(
"
select gene_name from gene_xref where external_name = ? and db
= ?
"
);
$sth
->
execute
(
$dbentry
,
$db
);
my
(
$stable_id
)
=
$sth
->
fetchrow
;
return
$stable_id
?
$self
->
fetch_by_stable_id
(
$stable_id
,
$chr_coords
)
:
undef
;
...
...
@@ -253,9 +254,10 @@ sub fetch_by_stable_id {
t.translation_name, t.gene_id, t.type, t.gene_name,
t.db, t.exon_structure, t.external_name, t.external_status, t.exon_ids,
t.external_db, t.coding_start, t.coding_end,
g.chr_start as gene_start, g.chr_end as gene_end,
g.external_name as gene_external_name,
g.external_status as gene_external_status,
g.external_db as gene_external_db, g.type as gene_type
g.external_db as gene_external_db, g.type as gene_type
,
g.analysis as analysis
FROM transcript t, gene g
WHERE g.gene_id = t.gene_id
...
...
@@ -289,6 +291,7 @@ sub fetch_by_transcript_stable_id {
t.translation_name, t.gene_id, t.type, t.gene_name, t.db,
t.exon_structure, t.external_name, t.external_status, t.exon_ids,
t.external_db, t.coding_start, t.coding_end,
g.chr_start as gene_start, g.chr_end as gene_end,
g.external_name as gene_external_name,
g.external_status as gene_external_status,
g.external_db as gene_external_db, g.type as gene_type,
...
...
@@ -350,8 +353,12 @@ sub _objects_from_sth {
Bio::EnsEMBL::
Analysis
->
new
(
-
logic_name
=>
$hr
->
{'
analysis
'});
$gene
->
analysis
(
$analysis_cache
{
$hr
->
{'
analysis
'}});
$gene
->
chr_name
(
$chr
);
$gene
->
start
(
$hr
->
{'
gene_start
'}
);
$gene
->
end
(
$hr
->
{'
gene_end
'}
);
$gene
->
strand
(
$hr
->
{'
chr_strand
'}
);
if
(
defined
$hr
->
{'
gene_type
'
}
)
{
$gene
->
external_
name
(
$hr
->
{'
gene_external_status
'}
);
$gene
->
external_
status
(
$hr
->
{'
gene_external_status
'}
);
$gene
->
external_name
(
$hr
->
{'
gene_external_name
'}
);
$gene
->
external_db
(
$hr
->
{'
gene_external_db
'}
);
$gene
->
type
(
$hr
->
{'
gene_type
'}
);
...
...
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