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
0a388edf
Commit
0a388edf
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Tests for new UnconventionalTranscriptAssociationAdaptor object.
parent
34d5fdb9
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/unconventionalTranscriptAssociationAdaptor.t
+49
-0
49 additions, 0 deletions
modules/t/unconventionalTranscriptAssociationAdaptor.t
with
49 additions
and
0 deletions
modules/t/unconventionalTranscriptAssociationAdaptor.t
0 → 100644
+
49
−
0
View file @
0a388edf
use
strict
;
use
Bio::EnsEMBL::Test::
TestUtils
;
use
Bio::EnsEMBL::Test::
MultiTestDB
;
BEGIN
{
$|
=
1
;
use
Test
;
plan
tests
=>
14
;
}
my
$multi_db
=
Bio::EnsEMBL::Test::
MultiTestDB
->
new
;
my
$db
=
$multi_db
->
get_DBAdaptor
('
core
');
my
$verbose
=
0
;
# Test Creation
my
$gene
=
$db
->
get_GeneAdaptor
->
fetch_by_dbID
(
18256
);
my
$transcript
=
$db
->
get_TranscriptAdaptor
()
->
fetch_by_dbID
(
21718
);
my
$utaa
=
$db
->
get_UnconventionalTranscriptAssociationAdaptor
();
ok
(
ref
(
$utaa
)
&&
$utaa
->
isa
('
Bio::EnsEMBL::DBSQL::UnconventionalTranscriptAssociationAdaptor
'));
# test fetch all by interaction type
ok
(
@
{
$utaa
->
fetch_all_by_interaction_type
('
antisense
')}
==
3
);
# test fetch all by gene, with and without type
ok
(
@
{
$utaa
->
fetch_all_by_gene
(
$gene
)}
==
3
);
ok
(
@
{
$utaa
->
fetch_all_by_gene
(
$gene
,
'
antisense
')}
==
2
);
# test fetch all by transcript, with and without type
ok
(
@
{
$utaa
->
fetch_all_by_transcript
(
$transcript
)}
==
2
);
ok
(
@
{
$utaa
->
fetch_all_by_transcript
(
$transcript
,
'
antisense
')}
==
1
);
# TODO - test functionality in gene.t
# Test store
$multi_db
->
save
('
core
',
'
unconventional_transcript_association
');
my
$uta
=
Bio::EnsEMBL::
UnconventionalTranscriptAssociation
->
new
(
$transcript
,
$gene
,
'
antisense
');
$utaa
->
store
(
$uta
);
# TODO - check contents
$multi_db
->
restore
('
core
');
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