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
92fc66a7
Commit
92fc66a7
authored
11 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
replaced ok tests with is tests
parent
4c7bb23b
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/assemblyExceptionFeature.t
+6
-5
6 additions, 5 deletions
modules/t/assemblyExceptionFeature.t
with
6 additions
and
5 deletions
modules/t/assemblyExceptionFeature.t
+
6
−
5
View file @
92fc66a7
...
@@ -38,14 +38,15 @@ ok(test_getter_setter($aef,'type', 'HAP'));
...
@@ -38,14 +38,15 @@ ok(test_getter_setter($aef,'type', 'HAP'));
# check adaptor attaching
# check adaptor attaching
$aef
->
adaptor
(
$aefa
);
$aef
->
adaptor
(
$aefa
);
ok
(
$aef
->
adaptor
->
isa
(
'
Bio::EnsEMBL::DBSQL::AssemblyExceptionFeatureAdaptor
'
)
);
is
(
ref
(
$aef
->
adaptor
),
'
Bio::EnsEMBL::DBSQL::AssemblyExceptionFeatureAdaptor
'
,
"
Created AssemblyExceptionFeature adaptor
"
);
# fetch all
# fetch all
my
$chr_slice
=
$dba
->
get_SliceAdaptor
->
fetch_by_region
('
chromosome
',
my
$chr_slice
=
$dba
->
get_SliceAdaptor
->
fetch_by_region
('
chromosome
',
'
20_HAP1
');
'
20_HAP1
');
my
@features
=
@
{
$aefa
->
fetch_all_by_Slice
(
$chr_slice
)};
my
@features
=
@
{
$aefa
->
fetch_all_by_Slice
(
$chr_slice
)};
ok
(
@features
);
is
(
@features
,
1
,
"
Fetched one assembly exception feature for 20_HAP1
");
foreach
my
$f
(
@features
)
{
foreach
my
$f
(
@features
)
{
debug
(
"
Feature:
"
.
$f
->
slice
->
seq_region_name
.
"
"
.
debug
(
"
Feature:
"
.
$f
->
slice
->
seq_region_name
.
"
"
.
$f
->
start
.
"
"
.
$f
->
end
.
"
"
.
$f
->
type
);
$f
->
start
.
"
"
.
$f
->
end
.
"
"
.
$f
->
type
);
...
@@ -55,12 +56,12 @@ foreach my $f (@features) {
...
@@ -55,12 +56,12 @@ foreach my $f (@features) {
}
}
my
(
$f
)
=
@features
;
my
(
$f
)
=
@features
;
ok
(
$f
->
display_id
eq
$f
->
alternate_slice
->
seq_region_name
);
is
(
$f
->
display_id
,
$f
->
alternate_slice
->
seq_region_name
,
"
Feature display id matches feature's alternate slice name
"
);
my
$feat
=
$aefa
->
fetch_by_dbID
(
1
);
my
$feat
=
$aefa
->
fetch_by_dbID
(
1
);
ok
(
$feat
->
dbID
()
==
1
);
is
(
$feat
->
dbID
()
,
1
,
"
Feature dbID is
1
"
);
#check we can store assembly exception features
#check we can store assembly exception features
my
$aef_store
=
new
Bio::EnsEMBL::
AssemblyExceptionFeature
();
my
$aef_store
=
new
Bio::EnsEMBL::
AssemblyExceptionFeature
();
...
@@ -84,7 +85,7 @@ my $asx_id = $aefa->store($aef_store,$aef_store2);
...
@@ -84,7 +85,7 @@ my $asx_id = $aefa->store($aef_store,$aef_store2);
my
$aef_new
=
$aefa
->
fetch_by_dbID
(
$asx_id
);
my
$aef_new
=
$aefa
->
fetch_by_dbID
(
$asx_id
);
ok
(
$aef_new
->
dbID
==
$asx_id
);
is
(
$aef_new
->
dbID
,
$asx_id
,
"
Assembly exception new dbID matches the stored id
"
);
$aefa
->
remove
(
$aef_store
);
$aefa
->
remove
(
$aef_store
);
...
...
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