Skip to content

Commit

Permalink
datasetIds parameter for visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Feb 16, 2024
1 parent 04b106c commit d79b98f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/modules/service-pages/dataVisualizationPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function DataVisualizationPanel({ datasetIds, accessid, fileId, skip, limit, wid
<WithData
background
apiReply={dataResult}
render={(data) => <ResultPanel formValues={formValues} response={data} width={width} />}
render={(data) => <ResultPanel formValues={formValues} response={data} width={width} datasetIds={datasetIds} />}
/>
</div>
)
Expand All @@ -119,6 +119,13 @@ function DataVisualizationForm({ isQuerying, onSubmit }) {
<form onSubmit={handleSubmit(onSubmit)}>
<div className="columns">
<div className="column">
<InputField
name="datasetIds"
label="Dataset ID"
infoText=""
errors={errors}
register={register}
/>
<InputField
name="plotChros"
label="Chromosomes"
Expand Down Expand Up @@ -259,7 +266,7 @@ function DataVisualizationForm({ isQuerying, onSubmit }) {
)
}

function ResultPanel({ formValues, response, width }) {
function ResultPanel({ formValues, response, width, datasetIds }) {

const resultsHandovers = response.response.resultSets[0].resultsHandovers
const handoverById = (givenId) =>
Expand All @@ -272,8 +279,8 @@ function ResultPanel({ formValues, response, width }) {
}
});

const histoplotUrl = handoverById(HANDOVER_IDS.histoplot).url + "&plotPars=" + mapped.join('::')
const samplesplotUrl = handoverById(HANDOVER_IDS.samplesplot).url + "&plotPars=" + mapped.join('::')
const histoplotUrl = handoverById(HANDOVER_IDS.histoplot).url + "&plotPars=" + mapped.join('::') + "&datasetIds=" + datasetIds
const samplesplotUrl = handoverById(HANDOVER_IDS.samplesplot).url + "&plotPars=" + mapped.join('::') + "&datasetIds=" + datasetIds

return (
<div>
Expand Down

0 comments on commit d79b98f

Please sign in to comment.