Skip to content

Commit

Permalink
Merge pull request #332 from MoTrPAC/331_JZ_Timecourse_Visualization_…
Browse files Browse the repository at this point in the history
…Link

Connects to #331. Graphical clustering timecourse visualization link.
  • Loading branch information
jimmyzhen authored May 3, 2024
2 parents b4e7869 + 8b712bd commit 1101b0c
Show file tree
Hide file tree
Showing 32 changed files with 192 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ function GraphicalAnalysisAdrenal() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Adrenal"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ function GraphicalAnalysisBrownAdipose() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Brown Adipose"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function GraphicalAnalysisBlood() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Blood RNA"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ function GraphicalAnalysisColon() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Colon"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function GraphicalAnalysisCortex() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Cortex"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ function GraphicalAnalysisHeart() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Heart"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ function GraphicalAnalysisHippocampus() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Hippocampus"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function GraphicalAnalysisHypothalamus() {
title="trajectory"
tissue="Hypothalamus"
plotType="Tree"
minClusterSize={1}
/>
</div>
<div className="section level3">
Expand All @@ -55,6 +56,7 @@ function GraphicalAnalysisHypothalamus() {
title="cluster"
tissue="Hypothalamus"
plotType="Histogram"
minClusterSize={1}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ function GraphicalAnalysisKidney() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Kidney"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ function GraphicalAnalysisLiver() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Liver"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ function GraphicalAnalysisLung() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Lung"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ function GraphicalAnalysisPlasma() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Plasma"
plotType="Trajectories"
/>
<hr />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ function GraphicalAnalysisGastrocnemius() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Gastrocnemius"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function GraphicalAnalysisVastusLateralis() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Vastus Lateralis"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function GraphicalAnalysisSmallIntestine() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Small Intestine"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ function GraphicalAnalysisSpleen() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Spleen"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ function GraphicalAnalysisWhiteAdipose() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="White Adipose"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function MitoGraphicalAnalysisAdrenal() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Adrenal"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function MitoGraphicalAnalysisBrownAdipose() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Brown Adipose"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function MitoGraphicalAnalysisBlood() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Blood RNA"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ function MitoGraphicalAnalysisColon() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Colon"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function MitoGraphicalAnalysisHeart() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Heart"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ function MitoGraphicalAnalysisKidney() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Kidney"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function MitoGraphicalAnalysisLiver() {
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_9.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Liver"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ function MitoGraphicalAnalysisLung() {
<img src={`${imageURL}/figure_6.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Lung"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function MitoGraphicalAnalysisGastrocnemius() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Gastrocnemius"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function MitoGraphicalAnalysisVastusLateralis() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Vastus Lateralis"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ function MitoGraphicalAnalysisSmallIntestine() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="Small Intestine"
plotType="Trajectories"
/>
<hr />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ function MitoGraphicalAnalysisSpleen() {
No significant enrichments for
SPLEEN:1w_F0_M0-&gt;2w_F0_M0-&gt;4w_F0_M0-&gt;8w_F1_M1
</p>
<DataVizLink
title="timecourse"
tissue="Spleen"
plotType="Trajectories"
/>
<hr />
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ function MitoGraphicalAnalysisWhiteAdipose() {
<img src={`${imageURL}/figure_7.png`} width="100%" alt="" />
<img src={`${imageURL}/figure_8.png`} width="100%" alt="" />
</p>
<DataVizLink
title="timecourse"
tissue="White Adipose"
plotType="Trajectories"
/>
<hr />
</div>
<div className="section level4">
Expand Down
22 changes: 20 additions & 2 deletions src/AnalysisPage/GraphicalClustering/components/dataVizLink.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
import React from 'react';
import PropTypes from 'prop-types';

function DataVizLink({ title, tissue, plotType }) {
const url = `https://data-viz.motrpac-data.org/?tissues[${tissue}]=1&plot_type=${plotType}&topk=10`;
function DataVizLink({ title, tissue, plotType, minClusterSize }) {
let topkStr = '';
let minClusterSizeStr = '';

// include 'topk' param for non-trajectory plots
if (plotType !== 'Trajectories') {
topkStr = '&topk=10';
}

// include 'min_cluster_size' param if minClusterSize is provided
if (minClusterSize && typeof (minClusterSize) === 'number') {
minClusterSizeStr = `&min_cluster_size=${minClusterSize}`;
}

const url = `https://data-viz.motrpac-data.org/?tissues[${tissue}]=1&plot_type=${plotType}${topkStr}${minClusterSizeStr}`;

return (
<p className="data-visualization-link-container text-center">
Expand All @@ -23,6 +36,11 @@ DataVizLink.propTypes = {
title: PropTypes.string.isRequired,
tissue: PropTypes.string.isRequired,
plotType: PropTypes.string.isRequired,
minClusterSize: PropTypes.number,
};

DataVizLink.defaultProps = {
minClusterSize: null,
};

export default DataVizLink;
Loading

0 comments on commit 1101b0c

Please sign in to comment.