Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EUbOPEN Web
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
ChEMBL
EUbOPEN
EUbOPEN Web
Commits
2a8d1c92
Commit
2a8d1c92
authored
2 years ago
by
David Mendez
Browse files
Options
Downloads
Patches
Plain Diff
Report card structure: improve way of determining if sections are included
parent
951bb788
No related branches found
Branches containing commit
No related tags found
1 merge request
!80
Add multiplex data visualisation
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
report_cards_structure/CompoundReportCardGenerator.js
+65
-137
65 additions, 137 deletions
report_cards_structure/CompoundReportCardGenerator.js
with
65 additions
and
137 deletions
report_cards_structure/CompoundReportCardGenerator.js
+
65
−
137
View file @
2a8d1c92
...
...
@@ -15,150 +15,78 @@ const methods = {
isChemicalProbe
,
isNegativeControl
)
{
if
(
isChemicalProbe
)
{
return
{
title
:
prefName
,
entityName
:
EntityNames
.
EubopenCompound
.
singularEntityName
,
sections
:
[
{
id
:
'
Summary
'
,
title
:
'
Summary
'
,
component
:
Summary
,
index
:
0
,
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Mechanism of Action
'
,
component
:
ProbeMechanism
,
index
:
1
,
},
{
id
:
'
ControlStructuresAndUse
'
,
title
:
'
Negative Controls
'
,
component
:
ControlStructuresAndUse
,
index
:
2
,
},
{
id
:
'
ProbeProfile
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfile
,
index
:
3
,
},
{
id
:
'
CellViabilityAndHealthData
'
,
title
:
'
Cell Viability And Health Data
'
,
component
:
CellViabilityAndHealthData
,
index
:
4
,
},
{
id
:
'
CalculatedProperties
'
,
title
:
'
Calculated Properties
'
,
component
:
CalculatedProperties
,
componentParams
:
{
entityID
:
EntityNames
.
EubopenCompound
.
entityID
,
},
const
basePageStructure
=
[
{
id
:
'
Summary
'
,
title
:
'
Summary
'
,
component
:
Summary
,
include
:
true
,
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Mechanism of Action
'
,
component
:
ProbeMechanism
,
include
:
true
,
},
{
id
:
'
ControlStructuresAndUse
'
,
title
:
'
Negative Controls
'
,
component
:
ControlStructuresAndUse
,
include
:
isChemicalProbe
,
},
{
id
:
'
ProbesForThisCompound
'
,
title
:
'
Related Probes
'
,
component
:
ProbesForThisCompound
,
include
:
isNegativeControl
,
},
index
:
5
,
},
{
id
:
'
CrystalStructures
'
,
title
:
'
PBD Ligand Codes
'
,
component
:
CompoundCrystalStructures
,
index
:
6
,
},
],
}
{
id
:
'
ProbeProfile
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfile
,
include
:
true
,
},
{
id
:
'
CellViabilityAndHealthData
'
,
title
:
'
Cell Viability And Health Data
'
,
component
:
CellViabilityAndHealthData
,
include
:
true
,
},
{
id
:
'
CalculatedProperties
'
,
title
:
'
Calculated Properties
'
,
component
:
CalculatedProperties
,
componentParams
:
{
entityID
:
EntityNames
.
EubopenCompound
.
entityID
,
},
include
:
true
,
},
{
id
:
'
CrystalStructures
'
,
title
:
'
PBD Ligand Codes
'
,
component
:
CompoundCrystalStructures
,
include
:
true
,
},
]
const
finalPageStructure
=
{
title
:
prefName
,
entityName
:
EntityNames
.
EubopenCompound
.
singularEntityName
,
sections
:
[],
}
if
(
isNegativeControl
)
{
return
{
title
:
prefName
,
entityName
:
EntityNames
.
EubopenCompound
.
singularEntityName
,
sections
:
[
{
id
:
'
Summary
'
,
title
:
'
Summary
'
,
component
:
Summary
,
index
:
0
,
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Mechanism of Action
'
,
component
:
ProbeMechanism
,
index
:
1
,
},
{
id
:
'
ProbesForThisCompound
'
,
title
:
'
Related Probes
'
,
component
:
ProbesForThisCompound
,
index
:
2
,
},
{
id
:
'
ProbeProfile
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfile
,
index
:
3
,
},
{
id
:
'
CalculatedProperties
'
,
title
:
'
Calculated Properties
'
,
component
:
CalculatedProperties
,
componentParams
:
{
entityID
:
EntityNames
.
EubopenCompound
.
entityID
,
},
let
index
=
0
index
:
4
,
},
{
id
:
'
CrystalStructures
'
,
title
:
'
PBD Ligand Codes
'
,
component
:
CompoundCrystalStructures
,
index
:
5
,
},
],
for
(
const
section
of
basePageStructure
)
{
if
(
section
.
include
)
{
section
.
index
=
index
finalPageStructure
.
sections
.
push
(
section
)
index
++
}
}
return
{
title
:
prefName
,
entityName
:
EntityNames
.
EubopenCompound
.
singularEntityName
,
sections
:
[
{
id
:
'
Summary
'
,
title
:
'
Summary
'
,
component
:
Summary
,
index
:
0
,
},
{
id
:
'
ProbeMechanism
'
,
title
:
'
Mechanism of Action
'
,
component
:
ProbeMechanism
,
index
:
1
,
},
{
id
:
'
ProbeProfile
'
,
title
:
'
Activity Profile
'
,
component
:
ProbeProfile
,
index
:
2
,
},
{
id
:
'
CalculatedProperties
'
,
title
:
'
Calculated Properties
'
,
component
:
CalculatedProperties
,
componentParams
:
{
entityID
:
EntityNames
.
EubopenCompound
.
entityID
,
},
index
:
3
,
},
{
id
:
'
CrystalStructures
'
,
title
:
'
PBD Ligand Codes
'
,
component
:
CompoundCrystalStructures
,
index
:
4
,
},
],
}
return
finalPageStructure
},
}
...
...
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