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
30f49774
Commit
30f49774
authored
22 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
check length when retrieving exon peptide - some transcripts have incomplete last codons
parent
c0a7f8af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
+0
-3
0 additions, 3 deletions
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
modules/Bio/EnsEMBL/Exon.pm
+8
-1
8 additions, 1 deletion
modules/Bio/EnsEMBL/Exon.pm
with
8 additions
and
4 deletions
modules/Bio/EnsEMBL/DBSQL/TranscriptAdaptor.pm
+
0
−
3
View file @
30f49774
...
...
@@ -25,8 +25,6 @@ accepts them (at the moment) in a transcript.
Elia Stupka : elia@ebi.ac.uk
Ewan Birney :
=head1 APPENDIX
=cut
package
Bio::EnsEMBL::DBSQL::
TranscriptAdaptor
;
...
...
@@ -164,7 +162,6 @@ sub fetch_by_translation_stable_id {
Returns :
Args : needs a gene ...
=cut
sub
store
{
...
...
This diff is collapsed.
Click to expand it.
modules/Bio/EnsEMBL/Exon.pm
+
8
−
1
View file @
30f49774
...
...
@@ -1100,7 +1100,14 @@ sub peptide {
"
Is this exon [
$self
] a member of this transcript [
$tr
]?
");
}
elsif
(
scalar
(
@coords
)
==
1
)
{
my
$c
=
$coords
[
0
];
$pep_str
=
$tr
->
translate
->
subseq
(
$c
->
start
,
$c
->
end
);
my
$pep
=
$tr
->
translate
;
#bioperl doesn't give back residues for incomplete codons
#make sure we don't subseq too far...
my
(
$start
,
$end
);
$end
=
(
$c
->
end
>
$pep
->
length
)
?
$pep
->
length
:
$c
->
end
;
$start
=
(
$c
->
start
<
$end
)
?
$c
->
start
:
$end
;
$pep_str
=
$tr
->
translate
->
subseq
(
$start
,
$end
);
}
return
Bio::
Seq
->
new
(
-
seq
=>
$pep_str
,
...
...
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