Skip to content
Snippets Groups Projects
Commit ccfff503 authored by David Mendez's avatar David Mendez
Browse files

eubopen compounds: add proper definition for negative control and chemogenomic probe

parent 6d0d5685
No related branches found
No related tags found
1 merge request!57eubopen compounds: add proper definition for negative control and chemogenomic probe
......@@ -160,7 +160,17 @@ export default {
'_metadata.eubopen.is_probe',
false
)
const isNegativeControl = !isChemicalProbe
const isNegativeControl = ObjectPropertyAccess.getPropertyPalue(
compoundData,
'_metadata.eubopen.is_control',
false
)
const isChemogenomicProbe = ObjectPropertyAccess.getPropertyPalue(
compoundData,
'_metadata.eubopen.is_chemogenomic_probe',
false
)
const allClasses = []
if (isChemicalProbe) {
......@@ -169,6 +179,9 @@ export default {
if (isNegativeControl) {
allClasses.push('Negative Control')
}
if (isChemogenomicProbe) {
allClasses.push('Chemogenomic Compound')
}
return allClasses.join(', ')
},
}),
......
......@@ -24,6 +24,8 @@ export const actions = {
'_metadata.compound_generated.image_file',
'_metadata.eubopen.in_vivo_use',
'_metadata.eubopen.is_probe',
'_metadata.eubopen.is_control',
'_metadata.eubopen.is_chemogenomic_probe',
'molecule_structures.canonical_smiles',
'molecule_structures.standard_inchi_key',
'_metadata.compound_records.src_id',
......
Subproject commit 61f4cbf2324b6e917dfa13fca86a2b9c82e4855f
Subproject commit 93f53b410e1489a0de17299279ed1225467b4cb6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment