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
ddcc52da
Commit
ddcc52da
authored
21 years ago
by
Graham McVicker
Browse files
Options
Downloads
Patches
Plain Diff
added test for PredictionTranscriptAdaptor::fetch_by_stable_id
parent
4b0183f7
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/t/predictionTranscript.t
+18
-2
18 additions, 2 deletions
modules/t/predictionTranscript.t
with
18 additions
and
2 deletions
modules/t/predictionTranscript.t
+
18
−
2
View file @
ddcc52da
...
...
@@ -5,14 +5,16 @@ use lib 't';
BEGIN
{
$|
=
1
;
use
Test
;
plan
tests
=>
3
2
;
plan
tests
=>
3
3
;
}
use
MultiTestDB
;
use
TestUtils
;
use
TestUtils
qw(debug test_getter_setter)
;
use
Bio::EnsEMBL::
PredictionTranscript
;
use
Bio::EnsEMBL::
Exon
;
our
$verbose
=
0
;
#
# 1 PredictionTranscript compiles
#
...
...
@@ -34,6 +36,12 @@ my $p_transs = $slice->get_all_PredictionTranscripts();
ok
(
scalar
(
@$p_transs
)
);
if
(
$verbose
)
{
foreach
my
$pt
(
@$p_transs
)
{
print
$pt
->
stable_id
,
"
\n
";
}
}
my
(
$pt
)
=
@$p_transs
;
my
$exons
=
$pt
->
get_all_Exons
;
...
...
@@ -209,3 +217,11 @@ ok($defined_exons_count == $pt->cdna2genomic($cstart, $cend));
#
ok
(
&
TestUtils::
test_getter_setter
(
$pt
,
'
type
',
'
test
'));
#
# 33 test fetch_by_stable_id
#
my
$stable_id
=
'
AL031658.11.1.162976.122801.143660
';
$pt
=
$pta
->
fetch_by_stable_id
(
$stable_id
);
ok
(
$pt
->
stable_id
eq
$stable_id
);
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