This Python-based CyTOF Image Analysis package enables the analysis of CyTOF images automatically, multiple data sources accepted, without the engagement of MCD Viewer or other external tools.
Main functionalities include preprocessing raw CyTOF data, visualization, nuclei and cells segmentation,
single-cell feature extraction, exploration of individual cell phenotypes, cell-cell interactions, etc.
This package can be used as a stand-alone python toolbox, a web-based tool, as well as a CLI.
1. If you are using a Windows machine, Git Bash is highly recommended as a command line tool.
2. Direct yourself to this directory, i.e. image_cytof.
$ git clone [email protected]:QBRC/deep-learning/development/image_cytof.git
$ cd image_cytof $ conda create -n "image_cytof" python=3.8
$ conda activate image_cytof $ pip install -r requirements.txt $ pip install image_cytofTo use the CLI, input files with specific file content structure need to be prepared.
$ cd .CLIscripts/
$ python single_roi.py path_to_input_fileslideID/
|---roiID/
| |---channel_images/ # png files, single channel images or all channels in one image
| |---cytof_img.pkl
| |---readme.txt # channels and markers information
| |---feature/ # extracted feature (raw, and w/ normalization)
| |---feature_summary.csv
| |---feature_summary_75normed.csv
| |---feature_summary_99normed.csv
| |---downstream analysis/ # downstream analysis
| |---phenograph/ # PhenoGraph clustering related analysis, different parameter sets result in different subfolders
| |---75normed_scaled_all_50_all-9/
| |---cluster_scatter_cohort_cohort.png
| |---protein_expression_cohort_cell_ave_cohort.png
| |---protein_expression_cohort_cell_sum_cohort.png
| |---marker positive/ # Marker positive analysis, different parameter sets result in different subfolders
| |---75normed_sum/
| |---cell_count.csv
| |---marker_pos.csv
| |---cytof_img_cohort.pkl
The structure of saved processing output:
cohort/
|---slide1/
| |---roi1/
| |---channel_images/ # png files, single channel images or all channels in one image
| |---cytof_img.pkl
| |---readme.txt # channels and markers information
| |---feature/ # extracted feature (raw, and w/ normalization)
| |---feature_summary.csv
| |---feature_summary_75normed.csv
| |---feature_summary_99normed.csv
| |---roi2/
| |--...
|---slide2/
| |---roi1/
| |---channel_images/ # png files, single channel images or all channels in one image
| |---cytof_img.pkl
| |---readme.txt # channels and markers information
| |---feature/ # extracted feature (raw, and w/ normalization)
| |---feature_summary.csv
| |---feature_summary_75normed.csv
| |---feature_summary_99normed.csv
|---cytof_cohort.pkl # the pickle file of the CytofCohort object
|---downstream analysis/ # downstream analysis
| |---phenograph/ # PhenoGraph clustering related analysis, different parameter sets result in different subfolders
| |---marker/
|---readme.txt # channels and markers information
$ python3 -m venv env # Linux or macOS $ python -m venv env # Windowsenv to desired name for the environment.
$ . env/bin/activate # Linux or macOS $ env\Scripts\activate # Windows $ . env/Scripts/activate # Windows with Git Bash $ (env) $ deactivate(env) $ pip install flaskimage_cytof python package
(env) $ pip install -r requirements.txtenv activated, type
(env) $ flask runpip install -r requirement.pip install --upgrade pip setuptools wheel --userpip install -r requirementContent type
Image
Digest
sha256:afd80df94…
Size
2.1 GB
Last updated
over 3 years ago
docker pull utsw1qbrc/cytof-image