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
Wiki
Requirements
Code
Merge requests
0
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
Tamara El Naboulsi
ensembl
Commits
9c04c61e
Commit
9c04c61e
authored
3 years ago
by
Tamara El Naboulsi
Browse files
Options
Downloads
Patches
Plain Diff
Re-adding fix for canonical transcript bug
parent
1d669064
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm
+15
-12
15 additions, 12 deletions
modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm
with
15 additions
and
12 deletions
modules/Bio/EnsEMBL/DBSQL/GeneAdaptor.pm
+
15
−
12
View file @
9c04c61e
...
...
@@ -1373,20 +1373,23 @@ sub store {
my
$new
=
$transcripts
->
[
$i
];
my
$old
=
$original_transcripts
->
[
$i
];
$transcript_adaptor
->
store
(
$new
,
$gene_dbID
,
$analysis_id
,
$skip_recalculating_coordinates
);
if
(
!
defined
(
$new_canonical_transcript_id
)
&&
$new
->
is_canonical
())
{
$new_canonical_transcript_id
=
$new
->
dbID
();
}
my
$new_dbID
=
$transcript_adaptor
->
store
(
$new
,
$gene_dbID
,
$analysis_id
,
$skip_recalculating_coordinates
);
$new
=
$transcript_adaptor
->
fetch_by_dbID
(
$new_dbID
);
if
(
$new
)
{
if
(
!
defined
(
$new_canonical_transcript_id
)
&&
$new
->
is_canonical
())
{
$new_canonical_transcript_id
=
$new
->
dbID
();
}
# update the original transcripts since we may have made copies of
# them by transforming the gene
$old
->
dbID
(
$new
->
dbID
());
$old
->
adaptor
(
$new
->
adaptor
());
# update the original transcripts since we may have made copies of
# them by transforming the gene
$old
->
dbID
(
$new
->
dbID
());
$old
->
adaptor
(
$new
->
adaptor
());
if
(
$new
->
translation
)
{
$old
->
translation
->
dbID
(
$new
->
translation
()
->
dbID
);
$old
->
translation
->
adaptor
(
$new
->
translation
()
->
adaptor
);
if
(
$new
->
translation
)
{
$old
->
translation
->
dbID
(
$new
->
translation
()
->
dbID
);
$old
->
translation
->
adaptor
(
$new
->
translation
()
->
adaptor
);
}
}
}
...
...
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