Link Search Menu Expand Document

Data Visualizations

Sometimes, you may want to include other forms of data visualization alongside your image data to tell a more complete story.

Minerva Author supports


Scatter plots

You will need…

Your CSV file should have the following headings:

clust_ID X_position Y_position ** ***

Each row should represent a specific cell, with the clust_ID column set to a positive whole number identifying the cluster assigned to each cell. The X_position and Y_position should give the position of each cell in image pixels. The remaining two columns should contain positive numerical values in each row, as they will form the X and Y position of your scatterplot.

The column headings ** and *** should be replaced with the labels for the X axis and Y axis of your scatterplot. For the below example, ** is KERATIN and *** is CD45. Using the Minerva Author UI, it is possible to assign names and colors to each of the four clusters. The below example shows the matrix plot UI in Minerva Author and the output in Minerva Story when paired with the scatterplot.csv from the Example Dataset page.

Minerva Author Minerva Story
Scatterplot Scatterplot output

Matrix plots (heatmaps)

You will need…

Your the first heading of your CSV file should be ClustName:

ClustName ** *** ** ***** **

The number of additional headings marked **, ***, … ****** determines the number of columns in your matrix plot. Typically, the headings should match marker names in your dataset. The number of rows in the CSV file determines the number of rows in your matrix plot. Typically, the names in the ClustName column should match clusters of cells in your dataset. The remaining values should be normalized numerical averages of marker intensity for each given cluster. The below example shows the matrix plot UI in Minerva Author and the output in Minerva Story when paired with the matrix.csv from the Example Dataset page.

Minerva Author Minerva Story
Matrix Matrix output

Bar charts

You will need…

Your CSV file should have the headings type and frequency:

type frequency

Typically, the names in the type column should match clusters of cells in your dataset. The values in the frequency column should be numerical cell counts for each given cluster. The below example shows the bar chart UI in Minerva Author and the output in Minerva Story when paired with the barchart.csv from the Example Dataset page.

Minerva Author Minerva Story
Barchart Barchart output

Cell segmentation masks

You will need…

  • A 32-bit TIFF or OME-TIFF segmentation image.
  • A CSV file matching the format specified for cell segmentation masks

From the “Edit Groups” tab, you will see the empty mask interface if you have not yet added cell segmentation masks to your story using Minerva Author:

empty

Use the first field to select a path to a cell segmentation image in either OME-TIFF or TIFF format. If you select a TIFF file, you will need to wait for Minerva Author to convert that file to an OME-TIFF. Minerva Author will save the OME-TIFF in the same directory as the selected TIFF. After the mask image has loaded, your mask interface should look like this:

step1

At any time, you may use the second field to select a “cell states” CSV file with two columns with CellID and State as the column headers. Each row should have a positive whole number for the CellID column and a text label in the State column. Minerva Author uses this file to create a separate cell mask for each unique state.

CellID State

After the “cell states” CSV file loads, you can change the color and label for each cell state. Your mask interface should look something like this:

step2

Now, if you open the “Edit Story” tab, each waypoint will have a dropdown menu that allows you to select an arbitrary number of cell states for the waypoint to display. The waypoint dropdown should look something like this:

step3

Now, any cell segmentation masks that you select for a given waypoint will render on top of the channels in the channel group associated with that waypoint.