From ced7d60f4e9216a31b0c63a6e1af6e249a86bc6a Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 13:38:17 -0500 Subject: [PATCH 01/14] fix renaming of fetchGeneDatasetSummary --- src/components/DataViz/DataTypeSelector.js | 12 ++++++------ src/components/Explorer/SamplesByDataTypeTable.js | 4 ++-- src/components/Home/SamplesByDataTypeTable.js | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/DataViz/DataTypeSelector.js b/src/components/DataViz/DataTypeSelector.js index d9e828d3..19f4d46e 100644 --- a/src/components/DataViz/DataTypeSelector.js +++ b/src/components/DataViz/DataTypeSelector.js @@ -3,7 +3,7 @@ import Select from "react-select"; import { Row, Col, Container } from 'reactstrap'; import ConceptSelectContainer from '../ConceptSelect/ConceptSelectContainer'; import { getTissueTypeOptions, getAllDataTypeOptions, getDataTypeOptionsWithTissueType } from "../../helpers/Utils"; -import { fetchGeneDatasetSummary } from '../../helpers/ApolloClient'; +import { fetchDataTypeSummaryInformation } from '../../helpers/ApolloClient'; import { handleGoogleAnalyticsEvent } from '../../helpers/googleAnalyticsHelper'; import { faChevronDown, faChevronUp } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; @@ -37,7 +37,7 @@ class DataTypeSelector extends Component { if (this.props.gene.symbol) { this.reloadPageData(this.props.gene.symbol); } else { - this.fetchGeneDatasetSummary(); + this.fetchDataTypeSummaryInformation(); } } } @@ -53,7 +53,7 @@ class DataTypeSelector extends Component { if (this.props.gene.symbol) { this.reloadPageData(this.props.gene.symbol); } else { - this.fetchGeneDatasetSummary(); + this.fetchDataTypeSummaryInformation(); } } @@ -85,9 +85,9 @@ class DataTypeSelector extends Component { } return datasetSummary } - fetchGeneDatasetSummary = async (geneSymbol) => { + fetchDataTypeSummaryInformation = async (geneSymbol) => { this.setState({ isDatasetSummaryLoading: true, datasetToggle: 'collapsed' }); - return fetchGeneDatasetSummary(geneSymbol).then( + return fetchDataTypeSummaryInformation(geneSymbol).then( (datasetSummary) => { if (datasetSummary) { datasetSummary = this.formatGeneDataset(datasetSummary) @@ -112,7 +112,7 @@ class DataTypeSelector extends Component { reloadPageData = async (geneSymbol) => { - this.fetchGeneDatasetSummary(geneSymbol).then( + this.fetchDataTypeSummaryInformation(geneSymbol).then( (datasetSummary) => { if (datasetSummary) { datasetSummary = this.formatGeneDataset(datasetSummary) diff --git a/src/components/Explorer/SamplesByDataTypeTable.js b/src/components/Explorer/SamplesByDataTypeTable.js index 5be9ba27..13c84973 100644 --- a/src/components/Explorer/SamplesByDataTypeTable.js +++ b/src/components/Explorer/SamplesByDataTypeTable.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import { Row, Col } from 'reactstrap'; import { handleGoogleAnalyticsEvent } from '../../helpers/googleAnalyticsHelper'; import { availableDataVisibilityFilter } from '../../helpers/Utils'; -import { fetchSummaryData, fetchGeneDatasetSummary} from '../../helpers/ApolloClient'; +import { fetchSummaryData, fetchDataTypeSummaryInformation} from '../../helpers/ApolloClient'; import { Grid, TableHeaderRow, Table, TableColumnResizing} from '@devexpress/dx-react-grid-bootstrap4'; import '@devexpress/dx-react-grid-bootstrap4/dist/dx-react-grid-bootstrap4.css'; @@ -33,7 +33,7 @@ class SamplesByDataTypeTable extends Component { async componentDidMount() { let summary = await fetchSummaryData("explorerHomepageSummary") - const geneDatasetSummary = await fetchGeneDatasetSummary("") + const geneDatasetSummary = await fetchDataTypeSummaryInformation() summary = summary.concat(geneDatasetSummary) summary = summary.slice() .sort( this.compare ) diff --git a/src/components/Home/SamplesByDataTypeTable.js b/src/components/Home/SamplesByDataTypeTable.js index 24ba7618..9281a85f 100644 --- a/src/components/Home/SamplesByDataTypeTable.js +++ b/src/components/Home/SamplesByDataTypeTable.js @@ -1,7 +1,7 @@ import React, { Component } from 'react'; import { Grid, TableFixedColumns, TableHeaderRow, Table} from '@devexpress/dx-react-grid-bootstrap4'; import { availableDataVisibilityFilter } from '../../helpers/Utils'; -import { fetchSummaryData, fetchGeneDatasetSummary} from '../../helpers/ApolloClient'; +import { fetchSummaryData, fetchDataTypeSummaryInformation} from '../../helpers/ApolloClient'; import { Row, Col, UncontrolledTooltip } from 'reactstrap'; import { handleGoogleAnalyticsEvent } from '../../helpers/googleAnalyticsHelper'; @@ -21,7 +21,7 @@ class SamplesByDataTypeTable extends Component { spatialSummary = spatialSummary.sort(this.compare) spatialSummary = spatialSummary.filter(availableDataVisibilityFilter) - let explorerSummary = await fetchGeneDatasetSummary(""); + let explorerSummary = await fetchDataTypeSummaryInformation(); explorerSummary = explorerSummary.sort(this.compare) explorerSummary = explorerSummary.filter(availableDataVisibilityFilter) From 7f36842ba2f3007fbbcfdc7c3cc8e05f7ed3b575 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 13:59:43 -0500 Subject: [PATCH 02/14] change query format --- src/helpers/ApolloClient.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/helpers/ApolloClient.js b/src/helpers/ApolloClient.js index 013bfecc..b70480b6 100644 --- a/src/helpers/ApolloClient.js +++ b/src/helpers/ApolloClient.js @@ -137,9 +137,8 @@ export const fetchClusterHierarchy = async (cellType) => { } export const fetchDataTypeSummaryInformation = async (fetchPolicy = 'no-cache') => { - const response = await apolloClient.query({ - query: gql` - query { + const query = gql` + query { getDataTypeSummaryInformation() { omicsType @@ -151,7 +150,9 @@ export const fetchDataTypeSummaryInformation = async (fetchPolicy = 'no-cache') dmrCount participantCount } - }`, + }`; + const response = await apolloClient.query({ + query: query, fetchPolicy: fetchPolicy }); if (response.data && response.data.getDataTypeSummaryInformation) { From 692674ab5772dce0c7992f63cfcf554798d05028 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 14:09:01 -0500 Subject: [PATCH 03/14] remove parentheses --- src/helpers/ApolloClient.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/ApolloClient.js b/src/helpers/ApolloClient.js index b70480b6..f1b773ad 100644 --- a/src/helpers/ApolloClient.js +++ b/src/helpers/ApolloClient.js @@ -139,7 +139,7 @@ export const fetchClusterHierarchy = async (cellType) => { export const fetchDataTypeSummaryInformation = async (fetchPolicy = 'no-cache') => { const query = gql` query { - getDataTypeSummaryInformation() + getDataTypeSummaryInformation { omicsType dataType From 00412b571eb4ac9f6744ac5f73a2a2c63ce7d79f Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 14:18:24 -0500 Subject: [PATCH 04/14] update scheme --- data/schema.graphql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/schema.graphql b/data/schema.graphql index 1030e0ec..408815c9 100644 --- a/data/schema.graphql +++ b/data/schema.graphql @@ -5,7 +5,7 @@ type Query { getClusterHieararchies(cellType: String!): [ClusterHierarchy] getUmapPlotData(dataType: String!, geneSymbol: String!, tissueType: String): PlotData dataTypesForConcept(geneSymbol: String, clusterName: String): [String] - getGeneDatasetInformation(geneSymbol: String): [GeneDatasetInformation] + getDataTypeSummaryInformation: [getDataTypeSummaryInformation] getRTGeneExpressionByTissue(comparisonType: String, geneSymbol: String): RTGeneExpressionByTissue getRTGeneExpressionByStructure(structure: String): [RTGeneExpression] getDataSummary(dataType: String): [SummaryData] @@ -37,7 +37,7 @@ type getTissueTypeSummaryData{ dmrCount: Long } -type GeneDatasetInformation { +type getDataTypeSummaryInformation { omicsType: String dataType: String dataTypeShort: String From 2b39d74b52b3441842d123d3059a0e5d0199bae7 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 14:42:20 -0500 Subject: [PATCH 05/14] add linkout to regionalpro --- src/actions/DataType/dataTypeActions.js | 4 +++ .../DataViz/DataTypeSelectorContainer.js | 3 ++ .../DataViz/RegionalProteomicsContainer.js | 28 +++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 src/components/DataViz/RegionalProteomicsContainer.js diff --git a/src/actions/DataType/dataTypeActions.js b/src/actions/DataType/dataTypeActions.js index 20505bf7..71b003ea 100644 --- a/src/actions/DataType/dataTypeActions.js +++ b/src/actions/DataType/dataTypeActions.js @@ -38,6 +38,10 @@ export const setDataTypeAndRedirect = (dataType, props) => { dispatch(setDataType(dataType)); window.open('/explorer/regionalviz', '_self'); break; + case "rc": + dispatch(setDataType(dataType)); + window.open("/explorer/regionalpro", "_self"); + break; case "wsi": window.open('/spatial-viewer/?size=n_20_n&filters%5B0%5D%5Bfield%5D=datatype&filters%5B0%5D%5Bvalues%5D%5B0%5D=Light%20Microscopic%20Whole%20Slide%20Images&filters%5B0%5D%5Btype%5D=any', '_self') break; diff --git a/src/components/DataViz/DataTypeSelectorContainer.js b/src/components/DataViz/DataTypeSelectorContainer.js index 3b200a70..c04eafe6 100644 --- a/src/components/DataViz/DataTypeSelectorContainer.js +++ b/src/components/DataViz/DataTypeSelectorContainer.js @@ -24,6 +24,9 @@ const mapDispatchToProps = (dispatch, props) => } else if (dataType === 'sc' || dataType === 'sn') { dispatch((dispatch) => window.open("/explorer/dataViz", "_self")); } + else if(dataType === "rc"){ + dispatch((dispatch) => window.open("/regionalpro", "_self")); + } } }); diff --git a/src/components/DataViz/RegionalProteomicsContainer.js b/src/components/DataViz/RegionalProteomicsContainer.js new file mode 100644 index 00000000..960561ce --- /dev/null +++ b/src/components/DataViz/RegionalProteomicsContainer.js @@ -0,0 +1,28 @@ +import {connect} from "react-redux"; +import RegionalProteomics from "./RegionalProteomics"; +import { setTissueType } from '../../actions/TissueType/tissueTypeActions' +import { setDataType } from "../../actions/DataType/dataTypeActions"; +import { resetState } from "../../actions/resetAction"; + +const mapStateToProps = (state, props) => + ({ + conceptSummary: state.conceptSummary, + gene: state.gene, + dataType: state.dataType, + tissueType: state.tissueType + }); + +const mapDispatchToProps = (dispatch, props) => + ({ + setTissueType(tissueType) { + dispatch(setTissueType(tissueType)); + }, + setDataType(dataType) { + dispatch(setDataType(dataType)); + }, + resetState() { + dispatch(resetState()); + } + }); + +export default connect(mapStateToProps, mapDispatchToProps)(RegionalProteomics) \ No newline at end of file From f862b8f9b3a3e6feb5783d2c24f27fd1536a9e13 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 14:47:24 -0500 Subject: [PATCH 06/14] fix case and dataType --- src/actions/DataType/dataTypeActions.js | 2 +- src/components/DataViz/DataTypeSelectorContainer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/DataType/dataTypeActions.js b/src/actions/DataType/dataTypeActions.js index 71b003ea..25d76544 100644 --- a/src/actions/DataType/dataTypeActions.js +++ b/src/actions/DataType/dataTypeActions.js @@ -38,7 +38,7 @@ export const setDataTypeAndRedirect = (dataType, props) => { dispatch(setDataType(dataType)); window.open('/explorer/regionalviz', '_self'); break; - case "rc": + case "rp": dispatch(setDataType(dataType)); window.open("/explorer/regionalpro", "_self"); break; diff --git a/src/components/DataViz/DataTypeSelectorContainer.js b/src/components/DataViz/DataTypeSelectorContainer.js index c04eafe6..3134e78b 100644 --- a/src/components/DataViz/DataTypeSelectorContainer.js +++ b/src/components/DataViz/DataTypeSelectorContainer.js @@ -24,7 +24,7 @@ const mapDispatchToProps = (dispatch, props) => } else if (dataType === 'sc' || dataType === 'sn') { dispatch((dispatch) => window.open("/explorer/dataViz", "_self")); } - else if(dataType === "rc"){ + else if(dataType === "rp"){ dispatch((dispatch) => window.open("/regionalpro", "_self")); } } From 4e40ef992a6abb3bfc31927dade748339cd0dba6 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 14:55:40 -0500 Subject: [PATCH 07/14] add dataTypeSelectorContainer --- src/components/DataViz/RegionalProteomics.js | 21 +++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/DataViz/RegionalProteomics.js b/src/components/DataViz/RegionalProteomics.js index a0e4e510..8703658d 100644 --- a/src/components/DataViz/RegionalProteomics.js +++ b/src/components/DataViz/RegionalProteomics.js @@ -1,10 +1,29 @@ import React, { Component } from 'react'; +import { Container, Row, Col } from 'reactstrap'; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import DataTypeSelectorContainer from './DataTypeSelectorContainer'; +import { faShare } from "@fortawesome/free-solid-svg-icons"; class RegionalProteomics extends Component { render() { return (
-

Blank Regional Proteomics page!

+ + + +
+ + + + + +
Gene Expression:
+

Enter a gene above to get started

+ +
+
+
+
) } From 02c4e8ce3a581eabf4a19caed7c9c44677563b23 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 15:03:26 -0500 Subject: [PATCH 08/14] add regionalpro to dataLinkageMapping --- src/components/Explorer/SamplesByDataTypeTable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Explorer/SamplesByDataTypeTable.js b/src/components/Explorer/SamplesByDataTypeTable.js index 13c84973..586f37d4 100644 --- a/src/components/Explorer/SamplesByDataTypeTable.js +++ b/src/components/Explorer/SamplesByDataTypeTable.js @@ -47,6 +47,7 @@ class SamplesByDataTypeTable extends Component { 'Single-nucleus RNA-seq (snRNA-seq)': 'sn', 'Single-cell RNA-seq (scRNA-seq)': 'sc', 'Regional transcriptomics': 'rt', + 'Regional Proteomics': 'rp', 'Light Microscopic Whole Slide Images': 'wsi', '3D Tissue Imaging and Cytometry': '3d', 'CODEX': 'codex', From ccd0c147454698c88ba0aece74e791ec9388ed7c Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 15:10:44 -0500 Subject: [PATCH 09/14] add regionalProteomics to handleDataTypeClick --- src/components/Home/AvailableDatasetsTable.js | 1 + src/components/Home/SamplesByDataTypeTable.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Home/AvailableDatasetsTable.js b/src/components/Home/AvailableDatasetsTable.js index 35346d50..864ba1b1 100644 --- a/src/components/Home/AvailableDatasetsTable.js +++ b/src/components/Home/AvailableDatasetsTable.js @@ -31,6 +31,7 @@ class AvailableDatasetsTable extends Component { 'Single-nucleus RNA-seq (snRNA-seq)': 'sn', 'Single-cell RNA-seq (scRNA-seq)': 'sc', 'Regional transcriptomics': 'rt', + 'Regional Proteomics':'rp', 'Light Microscopic Whole Slide Images': 'wsi', '3D Tissue Imaging and Cytometry': '3d', 'CODEX': 'codex', diff --git a/src/components/Home/SamplesByDataTypeTable.js b/src/components/Home/SamplesByDataTypeTable.js index 9281a85f..a5e339ba 100644 --- a/src/components/Home/SamplesByDataTypeTable.js +++ b/src/components/Home/SamplesByDataTypeTable.js @@ -49,6 +49,7 @@ class SamplesByDataTypeTable extends Component { 'Single-nucleus RNA-seq (snRNA-seq)': 'sn', 'Single-cell RNA-seq (scRNA-seq)': 'sc', 'Regional transcriptomics': 'rt', + 'Regional Proteomics':'rp', 'Light Microscopic Whole Slide Images': 'wsi', '3D Tissue Imaging and Cytometry': '3d', 'CODEX': 'codex', @@ -125,7 +126,7 @@ class SamplesByDataTypeTable extends Component { title: - AKI + AKIĆ’ Date: Tue, 21 Nov 2023 15:20:15 -0500 Subject: [PATCH 10/14] paste code from RegionalViz --- src/components/DataViz/RegionalProteomics.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/components/DataViz/RegionalProteomics.js b/src/components/DataViz/RegionalProteomics.js index 8703658d..aa55b200 100644 --- a/src/components/DataViz/RegionalProteomics.js +++ b/src/components/DataViz/RegionalProteomics.js @@ -3,8 +3,22 @@ import { Container, Row, Col } from 'reactstrap'; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import DataTypeSelectorContainer from './DataTypeSelectorContainer'; import { faShare } from "@fortawesome/free-solid-svg-icons"; +import queryString from 'query-string'; class RegionalProteomics extends Component { + constructor(props) { + super(props); + this.state = { rtAllPlotData: [], rtAllTableData: [], rtGTPlotData: [], rtGTTableData: [], selectedComparison: 'all_segments', selectedPlot: 'box' }; + if (!this.props.tissueType) { + this.props.setTissueType('all') + } + const queryParam = queryString.parse(props.location.search); + if (queryParam && queryParam.dataType) { + this.props.resetState(); + props.setDataType('rp'); + window.open(props.location.pathname, '_self'); + } +}; render() { return (
From 8885e821032211529a694320e1021516f5600427 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 15:37:24 -0500 Subject: [PATCH 11/14] fix spelling error --- src/components/Explorer/SamplesByDataTypeTable.js | 2 +- src/components/Home/AvailableDatasetsTable.js | 2 +- src/components/Home/SamplesByDataTypeTable.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Explorer/SamplesByDataTypeTable.js b/src/components/Explorer/SamplesByDataTypeTable.js index 586f37d4..fd4f4404 100644 --- a/src/components/Explorer/SamplesByDataTypeTable.js +++ b/src/components/Explorer/SamplesByDataTypeTable.js @@ -47,7 +47,7 @@ class SamplesByDataTypeTable extends Component { 'Single-nucleus RNA-seq (snRNA-seq)': 'sn', 'Single-cell RNA-seq (scRNA-seq)': 'sc', 'Regional transcriptomics': 'rt', - 'Regional Proteomics': 'rp', + 'Regional proteomics': 'rp', 'Light Microscopic Whole Slide Images': 'wsi', '3D Tissue Imaging and Cytometry': '3d', 'CODEX': 'codex', diff --git a/src/components/Home/AvailableDatasetsTable.js b/src/components/Home/AvailableDatasetsTable.js index 864ba1b1..f43b088f 100644 --- a/src/components/Home/AvailableDatasetsTable.js +++ b/src/components/Home/AvailableDatasetsTable.js @@ -31,7 +31,7 @@ class AvailableDatasetsTable extends Component { 'Single-nucleus RNA-seq (snRNA-seq)': 'sn', 'Single-cell RNA-seq (scRNA-seq)': 'sc', 'Regional transcriptomics': 'rt', - 'Regional Proteomics':'rp', + 'Regional proteomics':'rp', 'Light Microscopic Whole Slide Images': 'wsi', '3D Tissue Imaging and Cytometry': '3d', 'CODEX': 'codex', diff --git a/src/components/Home/SamplesByDataTypeTable.js b/src/components/Home/SamplesByDataTypeTable.js index a5e339ba..e4854b4b 100644 --- a/src/components/Home/SamplesByDataTypeTable.js +++ b/src/components/Home/SamplesByDataTypeTable.js @@ -49,7 +49,7 @@ class SamplesByDataTypeTable extends Component { 'Single-nucleus RNA-seq (snRNA-seq)': 'sn', 'Single-cell RNA-seq (scRNA-seq)': 'sc', 'Regional transcriptomics': 'rt', - 'Regional Proteomics':'rp', + 'Regional proteomics':'rp', 'Light Microscopic Whole Slide Images': 'wsi', '3D Tissue Imaging and Cytometry': '3d', 'CODEX': 'codex', From 0a80341e8a9c9da13245d40e7af6c4251382a32a Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 15:43:11 -0500 Subject: [PATCH 12/14] comment out setTissueType --- src/components/DataViz/RegionalProteomics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DataViz/RegionalProteomics.js b/src/components/DataViz/RegionalProteomics.js index aa55b200..b4730790 100644 --- a/src/components/DataViz/RegionalProteomics.js +++ b/src/components/DataViz/RegionalProteomics.js @@ -9,9 +9,9 @@ class RegionalProteomics extends Component { constructor(props) { super(props); this.state = { rtAllPlotData: [], rtAllTableData: [], rtGTPlotData: [], rtGTTableData: [], selectedComparison: 'all_segments', selectedPlot: 'box' }; - if (!this.props.tissueType) { - this.props.setTissueType('all') - } + // if (!this.props.tissueType) { + // this.props.setTissueType('all') + // } const queryParam = queryString.parse(props.location.search); if (queryParam && queryParam.dataType) { this.props.resetState(); From 72eb681450390ca5d6f4a34636ba468442e05654 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 15:53:38 -0500 Subject: [PATCH 13/14] remove comments --- src/components/DataViz/RegionalProteomics.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/DataViz/RegionalProteomics.js b/src/components/DataViz/RegionalProteomics.js index b4730790..c43803b1 100644 --- a/src/components/DataViz/RegionalProteomics.js +++ b/src/components/DataViz/RegionalProteomics.js @@ -9,9 +9,6 @@ class RegionalProteomics extends Component { constructor(props) { super(props); this.state = { rtAllPlotData: [], rtAllTableData: [], rtGTPlotData: [], rtGTTableData: [], selectedComparison: 'all_segments', selectedPlot: 'box' }; - // if (!this.props.tissueType) { - // this.props.setTissueType('all') - // } const queryParam = queryString.parse(props.location.search); if (queryParam && queryParam.dataType) { this.props.resetState(); From bd9f7304cf0fc440b621a37c6520463e7641dd72 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Tue, 21 Nov 2023 15:53:48 -0500 Subject: [PATCH 14/14] add regional proteomics option --- src/helpers/Utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helpers/Utils.js b/src/helpers/Utils.js index 2207764c..79334e67 100644 --- a/src/helpers/Utils.js +++ b/src/helpers/Utils.js @@ -130,6 +130,11 @@ export const getDataTypeOptions = async (geneSymbol, cluster) => { value: "rt", isDisabled: !dataTypes.includes("rt") }, + { + label: "Regional proteomics", + value: "rp", + isDisabled: !dataTypes.includes("rp") + } ]; return options; });