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
909251a8
Commit
909251a8
authored
22 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
added fetch_by_translation_stable_id method to TranscriptAdaptor
parent
4ced1c24
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/TranscriptAdaptor.pm
+32
-0
32 additions, 0 deletions
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
with
32 additions
and
0 deletions
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
+
32
−
0
View file @
909251a8
...
...
@@ -122,6 +122,38 @@ sub fetch_by_stable_id {
}
=head2 fetch_by_translation_stable_id
Arg [1] : string $transl_stable_id
The stable identifier of the translation of the transcript to
retrieve
Example : $t = $tadptr->fetch_by_translation_stable_id('ENSP00000311007');
Description: Retrieves a Transcript object using the stable identifier of
its translation.
Returntype : Bio::EnsEMBL::Transcript
Exceptions : none
Caller : general
=cut
sub
fetch_by_translation_stable_id
{
my
(
$self
,
$transl_stable_id
)
=
@_
;
my
$sth
=
$self
->
prepare
(
"
SELECT t.transcript_id
FROM translation_stable_id tsi, transcript t
WHERE tsi.stable_id = ?
AND t.translation_id = tsi.translation_id
");
$sth
->
execute
(
$transl_stable_id
);
my
(
$id
)
=
$sth
->
fetchrow_array
;
return
$self
->
fetch_by_dbID
(
$id
);
}
=head2 store
Title : store
...
...
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