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
827dcde6
Commit
827dcde6
authored
20 years ago
by
Vivek Iyer
Browse files
Options
Downloads
Patches
Plain Diff
Sometimes ref to $probename altered to $name
parent
f8e43b6a
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/Bio/EnsEMBL/AffyProbe.pm
+13
-9
13 additions, 9 deletions
modules/Bio/EnsEMBL/AffyProbe.pm
with
13 additions
and
9 deletions
modules/Bio/EnsEMBL/AffyProbe.pm
+
13
−
9
View file @
827dcde6
...
...
@@ -84,18 +84,22 @@ sub new {
my
$self
=
$class
->
SUPER::
new
(
@
_
);
my
(
$arrays
,
$probenames
,
$probeset
,
$arraynames
,
$arrayname
,
$probename
,
$array
)
=
rearrange
(['
ARRAYS
',
'
NAMES
',
'
PROBESET
',
'
ARRAYNAMES
',
'
ARRAYNAME
',
'
NAME
',
'
ARRAY
'
],
@
_
);
my
(
$arrays
,
$probenames
,
$probeset
,
$arraynames
,
$arrayname
,
$name
,
$array
)
=
rearrange
(
['
ARRAYS
',
'
PROBENAMES
',
'
PROBESET
',
'
ARRAYNAMES
',
'
ARRAYNAME
',
'
NAME
',
'
ARRAY
'
],
@
_
);
my
$i
;
if
(
$probenames
&&
ref
(
$probenames
)
eq
"
ARRAY
")
{
$i
=
scalar
(
@$probenames
);
}
elsif
(
defined
$
probe
name
)
{
}
elsif
(
defined
$name
)
{
if
(
defined
$arrayname
)
{
$self
->
add_arrayname_probename
(
$arrayname
,
$
probe
name
);
$self
->
add_arrayname_probename
(
$arrayname
,
$name
);
}
elsif
(
defined
$array
)
{
$self
->
add_Array_probename
(
$array
,
$
probe
name
);
$self
->
add_Array_probename
(
$array
,
$name
);
}
else
{
throw
(
"
Provide array or arrayname with probename
"
);
}
...
...
@@ -118,7 +122,7 @@ sub new {
for
(
$i
=
0
;
$i
<
scalar
(
@$probenames
);
$i
++
)
{
$self
->
add_arrayname_probename
(
$arraynames
->
[
$i
],
$probenames
->
[
$i
]
);
}
}
elsif
(
!
defined
$
probe
name
)
{
}
elsif
(
!
defined
$name
)
{
throw
(
"
Need to provide arrays or names for a probe
"
);
}
...
...
@@ -254,7 +258,7 @@ sub get_complete_name {
my
$probename
=
$self
->
{'
probenames
'}
->
{
$arrayname
};
if
(
!
defined
$probename
)
{
throw
(
"
Unknown array name
"
);
throw
(
"
Unknown array name
"
);
}
$probename
=
$arrayname
.
"
:
"
.
$self
->
probeset
()
.
"
:
"
.
$probename
;
return
$probename
;
...
...
@@ -298,7 +302,7 @@ sub get_probename {
my
$arrayname
=
shift
;
my
$probename
=
$self
->
{'
probenames
'}
->
{
$arrayname
};
if
(
!
defined
$probename
)
{
throw
(
"
Unknown array name
"
);
throw
(
"
Unknown array name
"
);
}
return
$probename
;
}
...
...
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