Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gateway
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
gateway
Commits
e8f84b76
Commit
e8f84b76
authored
2 years ago
by
Steve Reis
Browse files
Options
Downloads
Patches
Plain Diff
fix(exareme2): Issue with paired t-test
parent
653f603a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/src/engine/connectors/exareme/converters.ts
+1
-14
1 addition, 14 deletions
api/src/engine/connectors/exareme/converters.ts
api/src/engine/connectors/exareme/handlers/algorithms/ttest-paired.handler.ts
+1
-1
1 addition, 1 deletion
...ctors/exareme/handlers/algorithms/ttest-paired.handler.ts
with
2 additions
and
15 deletions
api/src/engine/connectors/exareme/converters.ts
+
1
−
14
View file @
e8f84b76
...
@@ -94,23 +94,10 @@ const getFormula = (data: ExperimentCreateInput) => {
...
@@ -94,23 +94,10 @@ const getFormula = (data: ExperimentCreateInput) => {
const
getVariables
=
(
data
:
ExperimentCreateInput
)
=>
{
const
getVariables
=
(
data
:
ExperimentCreateInput
)
=>
{
if
(
!
data
.
variables
)
return
undefined
;
if
(
!
data
.
variables
)
return
undefined
;
let
variables
=
data
.
variables
.
join
(
'
,
'
);
if
(
data
.
algorithm
.
id
===
'
TTEST_PAIRED
'
)
{
const
varCount
=
data
.
variables
.
length
;
variables
=
data
.
variables
?.
reduce
((
vectors
:
string
,
v
,
i
)
=>
{
if
((
i
+
1
)
%
2
===
0
)
return
`
${
vectors
}${
v
}
,`
;
if
(
varCount
===
i
+
1
)
return
`
${
vectors
}${
v
}
-
${
data
.
variables
[
0
]}
`
;
return
`
${
vectors
}${
v
}
-`
;
},
''
)
.
replace
(
/,$/
,
''
);
}
return
{
return
{
name
:
'
y
'
,
name
:
'
y
'
,
label
:
'
y
'
,
label
:
'
y
'
,
value
:
variables
,
value
:
data
.
variables
.
join
(
'
,
'
)
,
};
};
};
};
...
...
This diff is collapsed.
Click to expand it.
api/src/engine/connectors/exareme/handlers/algorithms/ttest-paired.handler.ts
+
1
−
1
View file @
e8f84b76
...
@@ -20,7 +20,7 @@ const lookupDict = {
...
@@ -20,7 +20,7 @@ const lookupDict = {
const
NUMBER_PRECISION
=
4
;
const
NUMBER_PRECISION
=
4
;
export
default
class
TTestPairedHandler
extends
BaseHandler
{
export
default
class
TTestPairedHandler
extends
BaseHandler
{
public
static
readonly
ALGO_NAME
=
'
paired
_ttest
'
;
public
static
readonly
ALGO_NAME
=
'
ttest_
paired
'
;
private
canHandle
(
algoName
:
string
,
data
:
any
)
{
private
canHandle
(
algoName
:
string
,
data
:
any
)
{
return
(
return
(
...
...
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