In this issue, we want to expand their usage by using getReadable for the experiment database name and cleaning up experiment.databaseNames property from config/options.
// setting for the experiment hook
experiment: {
databaseNames: {
GEO: 'Gene Expression Omnibus (GEO)',
SRA: 'Sequence Read Archive (SRA)',
ARRAY_EXPRESS: 'ArrayExpress'
}
},
Problem or idea
We should move the definition of experiment.databaseNames to config/readable and use getReadable to obtain the appropriate database name in the experiment page.
Solution or next step
Move the experiment.databaseNamesvalues fromconfig/optionstoconfig/readable`
Clean up the return value databaseNames from the useExperiment hook
Use the getReadable helper to determine the database name in the Experiment page component
Context
Epic: #366
In PR #321, we introduced
helpers/getReadable
andconfig/readable
.In this issue, we want to expand their usage by using
getReadable
for the experiment database name and cleaning upexperiment.databaseNames
property fromconfig/options
.Problem or idea
We should move the definition of
experiment.databaseNames
toconfig/readable
and usegetReadable
to obtain the appropriate database name in the experiment page.Solution or next step
values from
config/optionsto
config/readable`databaseNames
from theuseExperiment
hookgetReadable
helper to determine the database name in theExperiment
page component