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
a31609c6
Commit
a31609c6
authored
19 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Added tests for coding_transcript() and coding_gene()
parent
01224e7f
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/regulatoryFactor.t
+17
-0
17 additions, 0 deletions
modules/t/regulatoryFactor.t
with
17 additions
and
0 deletions
modules/t/regulatoryFactor.t
+
17
−
0
View file @
a31609c6
use
strict
;
use
Bio::EnsEMBL::Test::
TestUtils
;
use
Bio::EnsEMBL::Test::
MultiTestDB
;
use
Bio::EnsEMBL::
RegulatoryFactor
;
...
...
@@ -10,6 +11,13 @@ BEGIN { $| = 1;
my
$verbose
=
0
;
# get a core DBAdaptor and a RegualtoryFactorAdaptor
#
my
$multi
=
Bio::EnsEMBL::Test::
MultiTestDB
->
new
;
my
$dba
=
$multi
->
get_DBAdaptor
("
core
");
my
$factor_adaptor
=
$dba
->
get_RegulatoryFactorAdaptor
();
#
# Test constructor
#
...
...
@@ -25,3 +33,12 @@ ok($rm->type eq 'promoter');
ok
(
test_getter_setter
(
$rm
,'
name
','
Fred
'));
ok
(
test_getter_setter
(
$rm
,'
type
','
miRNA_target
'));
# test coding_transcript & gene
my
$factor
=
$factor_adaptor
->
fetch_by_dbID
(
1
);
my
$transcript
=
$factor
->
coding_transcript
();
ok
(
$transcript
->
dbID
()
==
21716
);
$factor
=
$factor_adaptor
->
fetch_by_dbID
(
5
);
my
$gene
=
$factor
->
coding_gene
();
ok
(
$gene
->
dbID
()
==
18271
);
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