🔧
Gut Analysis ToolBox - Documentation
  • Home
  • 🚀1. Choosing the right parameters
  • 🔢2. Cell counts and ganglia analysis
    • 📄Batch Analysis
  • 🗺️3. Spatial Analysis
  • 💻4. Analyzing the Results
  • 🌋5. Segmentation options
  • 🚅6. QuPath for analysing ENS
  • 🧮7. Multiplex
    • Multiplex image alignment
    • Multiplex analysis
    • Other resources
  • 🔬8. Calcium Imaging Analysis
    • Image alignment/registration
    • Extracting calcium traces
    • Other Resources
  • System Requirements
  • Analysis tools & workflows of interest
  • Contributing to GAT
  • Troubleshooting
    • List of major bugs fixed
  • Citing GAT
  • Citations
  • Features
  • Feedback
  • Benchmarks
    • Ganglia Models
Powered by GitBook
On this page
  • What do the files mean?
  • Merge Results
  • Merge Results multiple csvs
  • Data Analysis
  • Loading the Data
  • Creating Classes
  • Visualizing Results: Box Plot
  • Number of neighbours: Distribution

Was this helpful?

4. Analyzing the Results

How to deal with them spreadsheets!!

Previous3. Spatial AnalysisNext5. Segmentation options

Last updated 1 year ago

Was this helpful?

So, you've extracted all that data. Now, how do we deal with those spreadsheets!

To make life easier, we've added some options to merge the spreadsheets in all those folders and subfolders after GAT analysis. To do this, go to GAT->Analysis.

Currently, there are two options:

  • : Merge csv files that match the filename provided across multiple folders.

  • : Merge multiple csvs across different folders.

What do the files mean?

For example, I've analyzed an enteric neuronal dataset from . The raw data is accessible on . The dataset of interest is a Calbindin, Calretinin and Hu immunolabelled dataset: EXP174 (4 x distal colon (DC) and 4 x proximal colon (PC)).

After analysis, we get 8 folders like this:

├───EXP174 2022_06_15 Ca_DC1

├───EXP174 2022_06_15 Ca_DC2

├───EXP174 2022_06_15 Ca_DC3

├───EXP174 2022_06_15 Ca_DC4

├───EXP174 2022_06_15 Ca_PC1

├───EXP174 2022_06_15 Ca_PC2

├───EXP174 2022_06_15 Ca_PC3

├───EXP174 2022_06_15 Ca_PC4

During analysis, I enter DC1, PC1 etc... to distinguish each replicate and tissue region. This makes downstream analysis easier.

Within a folder, the files are organised like below (click to expand, and then click on each entry to read a description):

Example of the files within a folder

│

│

│

│

│

│

│

│

└───

The names of the file may vary based on analysis and future updates, but the structure should remain the same.

Merge Results

As you can see, there are multiple csv files in every folder. It becomes a challenge to comb through each directory and merge them. If you were interested in the summary of cell counts, you would want to combine all the files with the name: Cell_counts.csv as one. To do this, go to GAT -> Analysis -> Merge Results as .

Choose the parent directory with all the analysis folders for CurrentDir. In the next row, enter the exact name of the file with the extension. As I'm interested in cell counts, I enter Cell_counts.csv. After you click ok, it will go through each directory, find the file with matching filename and then merge them into one big file. In this case, the merged file would have the name: Merged_Analysis_Cell_counts.csv in the parent directory.

Merge Results multiple csvs

This is similar to Merge Results, but the difference is it will merge all csv files. It scans the first folder and creates a list of csv files to summarise. It searches for these files across all the subsequent folders and merges them.

Merged_Analysis_CalB_coordinates.csv
Merged_Analysis_CalR_coordinates.csv
Merged_Analysis_Cell_counts_CalB_CalRet.csv
Merged_Analysis_Hu_coordinates.csv
Merged_Analysis_Neighbour_count_CalB_CalR.csv
Merged_Analysis_Neighbour_count_Hu.csv
Merged_Analysis_Neighbour_count_Hu_CalB.csv
Merged_Analysis_Neighbour_count_Hu_CalR.csv

Data Analysis

Loading the Data

As the summary data is in csv format, we drag and drop the CSV File Import widget onto the canvas

Double click on the CSV File Import widget and you can choose the file to import. Click on the folder icon to select a csv file.

Once opened, you will get an Import Options dialog with table and values. If you right click on a column, you can change the type. Column 8 is just a divider, so I've 'Ignored' that column. Otherwise, everything column with strings that can distringuish between experiments or treatments can be set as Categorical. You can also set everything to 'Auto' and see if that works too.

Import Files
Setting Import Options
Changing Column Type

Creating Classes

If we connect a Data Table widget to the output of Create Class, we can see a new column called Region.

Visualizing Results: Box Plot

Now, lets connect the Box Plot widget

We can visualize our results by double clicking the Box Plot widget. For example, we can compare the average number of neurons for each region by choosing Total Hu as the Variable and Region as the Subgroup.

Choosing Experiment for `Subgroups` will show Total Hu per experiment.

Number of neighbours: Distribution

Example workflow for frequency vs number of neighbours around each neuron (not normalised). Data used: Merged_Analysis_Neighbour_count_Hu.csv

For data analysis, I often use as its an interactive and freely available software. It uses visual programming, where you drag and drop 'widgets' to create analysis workflows. Its written in Python and has loads of tutorials, both and on . I will use Orange to demonstrate some of the analysis you could do with the Summary data from above. is an example of another similar software but with way more options.

the software and install it on your machine.

Once installed, double click and start a New Project. I won't go into too many details on how the software works. Basically, the widgets on the left are like building blocks of a data analysis workflow. Widgets are grouped into classes according to their function. For more details, I highly recommend the.

Once the table is imported, if you want to visualize it, you can click and drag from the CSV File Import Widget. If you release the mouse click a list of widgets will appear. Select Data Table. For more info on how to create workflows, look at this . Double clicking on the data table will reveal a table corresponding to the data imported.

Now, we would like to group the data into distal and proximal regions of the colon. To do this, we use the widget. The column Experiment has experiment names, where the suffix DC for distal colon and PC for proximal colon. We use this information to create classes so data can be analyzed based on each region.

💻
Orange
written
Youtube
Knime
Download
introductory tutorials
tutorial
Create Class
Hamnett 2022 et al.
Zenodo
Merge Results
Merge Results multiple csvs
Import CSV widget
Import Files
Data Table Widget
Create Classes
New column with Regions
Workflow with box plot widget
Average number of neurons for distal vs proximal colon
Visualizing number of neighbours