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
851bd680
Commit
851bd680
authored
22 years ago
by
Laura Clarke
Browse files
Options
Downloads
Patches
Plain Diff
made sure exons get analysis objects before being added to gene
parent
6e01a6e3
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/DBSQL/GeneAdaptor.pm
+9
-6
9 additions, 6 deletions
modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm
with
9 additions
and
6 deletions
modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm
+
9
−
6
View file @
851bd680
...
...
@@ -148,10 +148,6 @@ sub fetch_by_dbID {
$self
->
throw
("
No exons for gene
$geneId
, assumming no gene
");
}
foreach
my
$exon
(
@exons
)
{
$exonIds
{
$exon
->
dbID
}
=
$exon
;
}
my
$transcriptAdaptor
=
$self
->
db
->
get_TranscriptAdaptor
();
# fetching all exons by gene
...
...
@@ -182,7 +178,7 @@ sub fetch_by_dbID {
my
$sth
=
$self
->
prepare
(
$query
);
$sth
->
execute
();
my
$ana
;
my
$first
=
1
;
while
(
my
@arr
=
$sth
->
fetchrow_array
()
)
{
# building a gene
...
...
@@ -190,7 +186,7 @@ sub fetch_by_dbID {
$gene
=
Bio::EnsEMBL::
Gene
->
new
();
$gene
->
adaptor
(
$self
);
$gene
->
dbID
(
$geneId
);
my
$ana
=
$self
->
db
->
get_AnalysisAdaptor
->
fetch_by_dbID
(
$arr
[
4
]);
$ana
=
$self
->
db
->
get_AnalysisAdaptor
->
fetch_by_dbID
(
$arr
[
4
]);
$gene
->
analysis
(
$ana
);
$gene
->
type
(
$arr
[
5
]);
$gene
->
source
(
$self
->
db
->
source
());
...
...
@@ -210,6 +206,12 @@ sub fetch_by_dbID {
return
undef
;
}
#discard duplicate exons, add analysis object to exons
foreach
my
$exon
(
@exons
)
{
$exon
->
analysis
(
$ana
);
$exonIds
{
$exon
->
dbID
}
=
$exon
;
}
foreach
my
$transcriptId
(
keys
%transcripts
)
{
# should be fetch_by_geneId ..
my
$transcript
=
Bio::EnsEMBL::
Transcript
->
new
();
...
...
@@ -218,6 +220,7 @@ sub fetch_by_dbID {
$transcript
->
_translation_id
(
$transcripts
{
$transcriptId
}
);
foreach
my
$exonId
(
@
{
$transcriptExons
{
$transcriptId
}}
)
{
$transcript
->
add_Exon
(
$exonIds
{
$exonId
}
);
}
# store also a type for the transcript
...
...
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