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
20c5c35c
Commit
20c5c35c
authored
20 years ago
by
Arne Stabenau
Browse files
Options
Downloads
Patches
Plain Diff
more tests
parent
2fa1fc8e
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/affy.t
+18
-16
18 additions, 16 deletions
modules/t/affy.t
with
18 additions
and
16 deletions
modules/t/affy.t
+
18
−
16
View file @
20c5c35c
use
strict
;
use
strict
;
use
warnings
;
use
warnings
;
use
Bio::EnsEMBL::
CoordSystem
;
use
Bio::EnsEMBL::
Slice
;
use
Bio::EnsEMBL::
Slice
;
use
Bio::EnsEMBL::
AffyFeature
;
use
Bio::EnsEMBL::
AffyFeature
;
use
Bio::EnsEMBL::
AffyProbe
;
use
Bio::EnsEMBL::
AffyProbe
;
...
@@ -15,7 +16,6 @@ BEGIN { $| = 1;
...
@@ -15,7 +16,6 @@ BEGIN { $| = 1;
our
$verbose
=
0
;
our
$verbose
=
0
;
verbose
('
WARNING
');
#
#
...
@@ -46,7 +46,6 @@ ok( test_getter_setter( $affy_array, "setsize", 11 ));
...
@@ -46,7 +46,6 @@ ok( test_getter_setter( $affy_array, "setsize", 11 ));
# possibly do the following with database connection
# possibly do the following with database connection
my
$probes
=
$affy_array
->
get_all_AffyProbes
();
my
$probes
=
$affy_array
->
get_all_AffyProbes
();
ok
(
#
#
# Create an AffyProbe
# Create an AffyProbe
...
@@ -55,14 +54,14 @@ ok(
...
@@ -55,14 +54,14 @@ ok(
my
$affy_probe
=
Bio::EnsEMBL::
AffyProbe
->
new
my
$affy_probe
=
Bio::EnsEMBL::
AffyProbe
->
new
(
(
-
arrayname
=>
"
AFFY-1
",
-
arrayname
=>
"
AFFY-1
",
-
probe
name
=>
"
123-145
",
-
name
=>
"
123-145
",
-
probeset
=>
"
affy_probeset
"
-
probeset
=>
"
affy_probeset
"
);
);
my
$affy_probe
=
Bio::EnsEMBL::
AffyProbe
->
new
$affy_probe
=
Bio::EnsEMBL::
AffyProbe
->
new
(
(
-
array
=>
$affy_array
,
-
array
=>
$affy_array
,
-
probe
name
=>
"
123-145
",
-
name
=>
"
123-145
",
-
probeset
=>
"
affy_probeset
"
-
probeset
=>
"
affy_probeset
"
);
);
...
@@ -71,9 +70,9 @@ ok( ref( $affy_probe ) && $affy_probe->isa( "Bio::EnsEMBL::AffyProbe" ));
...
@@ -71,9 +70,9 @@ ok( ref( $affy_probe ) && $affy_probe->isa( "Bio::EnsEMBL::AffyProbe" ));
my
$merge_probe
=
Bio::EnsEMBL::
AffyProbe
->
new
my
$merge_probe
=
Bio::EnsEMBL::
AffyProbe
->
new
(
(
-
arraynames
=>
[
"
Affy-1
",
"
Affy-2
",
"
Affy-3
"
],
-
arraynames
=>
[
"
Affy-1
",
"
Affy-2
",
"
Affy-3
"
],
-
probe
names
=>
[
"
123-145
",
"
23,24,56
",
"
someplace
"
],
-
names
=>
[
"
123-145
",
"
23,24,56
",
"
someplace
"
],
-
probeset
=>
"
affy_probeset
"
-
probeset
=>
"
affy_probeset
"
)
)
;
ok
(
ref
(
$merge_probe
)
&&
$merge_probe
->
isa
(
"
Bio::EnsEMBL::AffyProbe
"
));
ok
(
ref
(
$merge_probe
)
&&
$merge_probe
->
isa
(
"
Bio::EnsEMBL::AffyProbe
"
));
...
@@ -85,7 +84,7 @@ ok( ref( $merge_probe ) && $merge_probe->isa( "Bio::EnsEMBL::AffyProbe" ));
...
@@ -85,7 +84,7 @@ ok( ref( $merge_probe ) && $merge_probe->isa( "Bio::EnsEMBL::AffyProbe" ));
#
#
ok
(
test_getter_setter
(
$merge_probe
,
"
dbID
",
1
));
ok
(
test_getter_setter
(
$merge_probe
,
"
dbID
",
1
));
ok
(
test_getter_setter
(
$merge_probe
,
"
adaptor
",
{}
));
ok
(
test_getter_setter
(
$merge_probe
,
"
adaptor
",
bless
(
{},
"
Bio::EnsEMBL::DBSQL::BaseAdaptor
"
)
));
ok
(
test_getter_setter
(
$merge_probe
,
"
probeset
",
"
Affy_probeset
"
));
ok
(
test_getter_setter
(
$merge_probe
,
"
probeset
",
"
Affy_probeset
"
));
...
@@ -101,22 +100,23 @@ ok( $arrays->[0] && $arrays->[0]->isa( "Bio::EnsEMBL::AffyArray" ));
...
@@ -101,22 +100,23 @@ ok( $arrays->[0] && $arrays->[0]->isa( "Bio::EnsEMBL::AffyArray" ));
# expected to construct full probenames from Chipname, setname and probename
# expected to construct full probenames from Chipname, setname and probename
my
$full_probenames
=
$merge_probe
->
get_complete_names
();
my
$full_probenames
=
$merge_probe
->
get_
all_
complete_names
();
ok
(
ref
(
$full_probenames
)
eq
'
ARRAY
'
);
ok
(
ref
(
$full_probenames
)
eq
'
ARRAY
'
);
ok
(
$full_probenames
->
[
0
]
&&
(
$full_probenames
->
[
0
]
=~
/affy_probeset/
));
ok
(
$full_probenames
->
[
0
]
&&
(
$full_probenames
->
[
0
]
=~
/affy_probeset/
));
my
$full_probename
=
$merge_probe
->
get_complete_name
(
$affy_array
);
ok
(
$full_probename
=~
/affy_probeset/
&&
$full_probename
=~
/$affy_array->name()/
);
my
$probenames
=
$merge_probe
->
get_probenames
();
my
$full_probename
=
$merge_probe
->
get_complete_name
(
"
Affy-1
"
);
my
$probename
=
$merge_probe
->
get_probename
(
$affy_array
);
ok
(
$full_probename
=~
/affy_probeset/
&&
$full_probename
=~
/Affy-1/
);
my
$probenames
=
$merge_probe
->
get_all_probenames
();
my
$probename
=
$merge_probe
->
get_probename
(
$affy_array
->
name
()
);
#
#
# When we implement storing this should be implemented as well
# When we implement storing this should be implemented as well
# for starters we are not creating these objects, but load the database with probes ...
# for starters we are not creating these objects, but load the database with probes ...
$affy_probe
->
add_array_name
(
$affy_array
,
$probename
);
#
$affy_probe->add_array_name( $affy_array, $probename );
#
#
...
@@ -125,7 +125,8 @@ $affy_probe->add_array_name( $affy_array, $probename );
...
@@ -125,7 +125,8 @@ $affy_probe->add_array_name( $affy_array, $probename );
my
$coord_system
=
Bio::EnsEMBL::
CoordSystem
->
new
my
$coord_system
=
Bio::EnsEMBL::
CoordSystem
->
new
(
-
name
=>
"
chromosome
",
(
-
name
=>
"
chromosome
",
-
version
=>
''
);
-
version
=>
'',
-
rank
=>
1
);
my
$slice
=
Bio::EnsEMBL::
Slice
->
new
my
$slice
=
Bio::EnsEMBL::
Slice
->
new
(
(
...
@@ -137,8 +138,9 @@ my $slice = Bio::EnsEMBL::Slice->new
...
@@ -137,8 +138,9 @@ my $slice = Bio::EnsEMBL::Slice->new
);
);
my
$affy_feature
=
Bio::EnsEMBL::
AffyFeature
->
new
my
$affy_feature
=
Bio::EnsEMBL::
AffyFeature
->
new
(
(
-
probe
=>
$affy_probe
,
-
probe
=>
$affy_probe
,
-
mismatch_count
=>
1
,
-
slice
=>
$slice
,
-
slice
=>
$slice
,
-
start
=>
1
,
-
start
=>
1
,
-
end
=>
10
,
-
end
=>
10
,
...
...
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