{ "cells": [ { "attachments": {}, "cell_type": "markdown", "id": "3c3a41da", "metadata": {}, "source": [ "# Cell Correction" ] }, { "attachments": {}, "cell_type": "markdown", "id": "4dd6b54c", "metadata": {}, "source": [ "This part shows how to correct cells in Stereopy. Optionally, there are two kinds of input to complete it:\n", "\n", " correcting from BGEF and mask;\n", "\n", " correcting from GEM and mask." ] }, { "attachments": {}, "cell_type": "markdown", "id": "ec9191b8", "metadata": {}, "source": [ "Provided with three algorithmic methods, you could determine which one to perform by setting the parameter `method`.\n", "\n", "1. `method=GMM` is based on GMM (Gaussian Mixture Model) algorithm, which performs cell correction using both gene expression matrix and spatial information, with much time and memory consumption. Multi-processing would be used if set `process_count` to more than 1.\n", "2. `method=FAST` performs correction based on the distance between spot and centroid of the cell, when the distance is less than adjusting threshold, the spot is considered to belong to the cell. It only supports single process and single threading.\n", "3. `method=EDM` is based on EDM (Euclidean Distance Map) algorithm, which performs correction using mask image, out of cell segmentation. We highly recommnend EDM method that is used by default. Multithreading would be on if set `process_count` to more than 1.\n", "\n", "More details refer to [API](../content/stereo.tools.cell_correct.cell_correct.html)." ] }, { "cell_type": "markdown", "id": "d0a816c0", "metadata": {}, "source": [ "