Repository navigation
Quantification Script
The Quantification Script is designed to process and quantify single-cell data. It allows you to apply various transformations and save histograms or quantified data as CSV files. The scripts expects two files as input, a 'setup.csv' file and a 'standards.csv' file. This manual guides you through the scripts usage and the expected content of the files.
To run the script, navigate to the directory containing the script or enter its absolute location and execute the following command:
python quantification_script.py \
--data_directory path/to/data/ \
--standards_csv path/to/standards.csv \
--setup_csv path/to/setup.csvpython quantification_script.py ^
--data_directory path\to\data\ ^
--standards_csv path\to\standards.csv ^
--setup_csv path\to\setup.csv- All the
.csvfiles to be analyzed should be in the--data_directory. - The
--standards_csvand--setup_csvfiles should be formatted as described in the Configuration Files section.
-
Purpose: Specifies the directory containing the
.csvfiles to be processed. -
Example:
--data_directory path/to/data/(Linux) or--folder path\to\data(Windows) - Default: None
-
Purpose: Specifies the path to the
standards.csvfile. -
Example:
--standards_csv path/to/standards.csv(Linux) or--folder path\to\standards.csv(Windows) - Default: None
-
Purpose: Specifies the path to the
setup.csvfile. -
Example:
--setup_csv path/to/setup.csv(Linux) or--folder path\to\setup.csv(Windows) - Default: None
-
Purpose: When set, saves histograms for each channel specified in
setup.csv. -
Example:
--save_histograms - Default: False
- Purpose: When set, saves quantified data for each channel as a separate .csv file.
-
Example:
--save_channel_data - Default: False
- Purpose: When set, saves all quantified data into a single .csv file.
-
Example:
--save_combined_data - Default: False
This file specifies which channels should be quantified and whether histograms should be created for each channel.
| channel | standard | quantify | histogram |
|---|---|---|---|
| Channel_1 | Standard_1 | 1 | 1 |
| Channel_2 | Standard_2 | 1 | 1 |
| Channel_3 | Standard_3 | 0 | 0 |
- channel: The name of the channel.
-
standard: The name of the standard used for quantification. This should match an entry in
standards.csv. - quantify: 1 for 'Yes' and 0 for 'No'.
- histogram: 1 for 'Yes' and 0 for 'No'.
This file contains the standards used for quantifying the channels, specifying the slope and y-axis values.
| standard | slope | y-axis |
|---|---|---|
| Standard_1 | 1.52 | 11.69 |
| Standard_2 | 2.68 | 0.70 |
- standard: The name of the standard.
- slope: The factor by which to divide for quantification.
- y-axis: This field is currently not used but will be integrated in a future update.
To run the script and save histograms:
python quantification_script.py \
--data_directory path/to/data/ \
--standards_csv path/to/standards.csv \
--setup_csv path/to/setup.csv \
--save_histogramspython quantification_script.py ^
--data_directory path\to\data\ ^
--standards_csv path\to\standards.csv ^
--setup_csv path\to\setup.csv ^
--save_histogramsReplace placeholders like path/to/data or C:\path\to\data with your actual paths and adjust the values as needed.