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
4492f88f
Commit
4492f88f
authored
21 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
name changes to follow naming conventions
parent
6d9450df
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/Intron.pm
+6
-6
6 additions, 6 deletions
modules/Bio/EnsEMBL/Intron.pm
modules/t/intron.t
+43
-0
43 additions, 0 deletions
modules/t/intron.t
with
49 additions
and
6 deletions
modules/Bio/EnsEMBL/Intron.pm
+
6
−
6
View file @
4492f88f
...
...
@@ -81,10 +81,10 @@ sub new {
}
=head2 prev_
e
xon
=head2 prev_
E
xon
Args : none
Example : $exon = $intron->prev_
e
xon
Example : $exon = $intron->prev_
E
xon
Description: Returns the exon before this Intron
Returntype : Bio::EnsEMBL::Exon
Exceptions : none
...
...
@@ -92,17 +92,17 @@ sub new {
=cut
sub
prev_
e
xon
{
sub
prev_
E
xon
{
my
(
$self
)
=
shift
;
return
$self
->
{'
prev
'};
}
=head2 next_
e
xon
=head2 next_
E
xon
Args : none
Example : $exon = $intron->next_
e
xon
Example : $exon = $intron->next_
E
xon
Description: Returns the exon after this Intron
Returntype : Bio::EnsEMBL::Exon
Exceptions : none
...
...
@@ -110,7 +110,7 @@ sub prev_exon {
=cut
sub
next_
e
xon
{
sub
next_
E
xon
{
my
(
$self
)
=
shift
;
return
$self
->
{'
next
'};
...
...
This diff is collapsed.
Click to expand it.
modules/t/intron.t
0 → 100644
+
43
−
0
View file @
4492f88f
use
lib
'
t
';
use
strict
;
BEGIN
{
$|
=
1
;
use
Test
;
plan
tests
=>
14
;
}
my
$loaded
=
0
;
END
{
print
"
not ok 1
\n
"
unless
$loaded
;}
use
MultiTestDB
;
use
TestUtils
qw(debug test_getter_setter)
;
our
$verbose
=
0
;
#set to 1 to turn on debug printouts
$loaded
=
1
;
my
$multi
=
MultiTestDB
->
new
();
ok
(
1
);
my
$db
=
$multi
->
get_DBAdaptor
(
'
core
'
);
ok
(
$db
);
my
$stable_id
=
'
ENST00000217347
';
my
$transcript_adaptor
=
$db
->
get_TranscriptAdaptor
();
my
$transcript
=
$transcript_adaptor
->
fetch_by_stable_id
(
$stable_id
);
my
@exons
=
(
@
{
$transcript
->
get_all_Exons
()});
my
@introns
=
(
@
{
$transcript
->
get_all_Introns
()});
my
$i
=
0
;
foreach
my
$intron
(
@introns
){
ok
(
$intron
->
prev_Exon
->
end
==
$intron
->
start
-
1
);
ok
(
$intron
->
next_Exon
->
start
==
$intron
->
end
+
1
);
}
$multi
->
restore
();
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