# ARCU
Find representative subpopulations in single cell imaging data.
​
## Introduction
ARCU is a simple algorithm for finding coordinates in single-cell imaging data where measured features are relatively variable. This is a useful task for finding representative images for publication that illustrate difference in cell types. ARCU finds regions in an image where cells are different; in other words, it finds regions where at least one cell is above a threshold and at least one cell is below a threshold for features of interest. Thresholds are given by:
mu + u*sig
mu - u*sig
where
```
mu = mean expression for feature across whole population
sig = standard deviation for feature across whole population
u = a scaling coefficent
```
​​
## Installation
Dependencies
* Python >= 3.6, numpy >= 1.22.4, pandas >= 1.3.2
​
You can install the package and necessary dependencies with `pip` by,
```
pip install arcu
```
​
## Example use
To find regions of interest using ARCU, first read in a pandas dataframe formatted such that the first column is numeric labels, the second is x-coordinates, the third is y-coordinates, and columns 4 through n are features of interest. Rows should be interpretable as "cells" profiled from segmented images with single-cell resolution.
​
```python
import pandas
A = pandas.read_csv('dir/file.csv')
```
​
Then execute ARCU using
```python
import arcu
centroids = arcu.arcu(A,r,c,u)
```
where
```
Inputs:
A = dataframe of single cell location and feature data
r = radius, in pixels, of regions in which to search for subpopulations
c = the minimum number of cells a region of interest can contain to be considered for reporting
u = the scaling coefficient on standard deviation for a cell to be considered interesting
Returns:
a dataframe containing the x,y coordinates of groupings that meet feature expression criteria
```
Raw data
{
"_id": null,
"home_page": "https://github.com/harrismdavis/arcu",
"name": "arcu",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "image analysis,single-cell bioinformatics,computational biology",
"author": "Harris Davis",
"author_email": "harris.davis@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/d0/d2/5970a4ef15861e3b863fd840c2c2ed15311635c2c6fd07c6eac92144f841/arcu-0.1.1.tar.gz",
"platform": null,
"description": "# ARCU\nFind representative subpopulations in single cell imaging data. \n\u00e2\u20ac\u2039\n## Introduction\nARCU is a simple algorithm for finding coordinates in single-cell imaging data where measured features are relatively variable. This is a useful task for finding representative images for publication that illustrate difference in cell types. ARCU finds regions in an image where cells are different; in other words, it finds regions where at least one cell is above a threshold and at least one cell is below a threshold for features of interest. Thresholds are given by:\n\n mu + u*sig\n mu - u*sig\n\nwhere \n```\nmu = mean expression for feature across whole population\nsig = standard deviation for feature across whole population\nu = a scaling coefficent\n```\n\u00e2\u20ac\u2039\u00e2\u20ac\u2039\n## Installation\nDependencies \n* Python >= 3.6, numpy >= 1.22.4, pandas >= 1.3.2\n\u00e2\u20ac\u2039\nYou can install the package and necessary dependencies with `pip` by,\n```\npip install arcu\n```\n\u00e2\u20ac\u2039\n## Example use\nTo find regions of interest using ARCU, first read in a pandas dataframe formatted such that the first column is numeric labels, the second is x-coordinates, the third is y-coordinates, and columns 4 through n are features of interest. Rows should be interpretable as \"cells\" profiled from segmented images with single-cell resolution. \n\u00e2\u20ac\u2039\n```python\nimport pandas\nA = pandas.read_csv('dir/file.csv')\n```\n\u00e2\u20ac\u2039\nThen execute ARCU using\n\n```python\nimport arcu\ncentroids = arcu.arcu(A,r,c,u)\n```\n\nwhere \n```\nInputs:\n A = dataframe of single cell location and feature data\n r = radius, in pixels, of regions in which to search for subpopulations\n c = the minimum number of cells a region of interest can contain to be considered for reporting\n u = the scaling coefficient on standard deviation for a cell to be considered interesting\n\nReturns:\n a dataframe containing the x,y coordinates of groupings that meet feature expression criteria\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Find representative subpopulations in single cell imaging data.",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/harrismdavis/arcu"
},
"split_keywords": [
"image analysis",
"single-cell bioinformatics",
"computational biology"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "687ebb89daf34cb175b360f3fc2115fb375b2c8d1fbd7c33ca2df91b7befb8e6",
"md5": "6b8a255617723abeceafefc82f3ec606",
"sha256": "e4003b7cc169f0aa6ec5be26553fd69f068a82af202c696c318928717c6023b8"
},
"downloads": -1,
"filename": "arcu-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6b8a255617723abeceafefc82f3ec606",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4661,
"upload_time": "2023-08-02T16:00:43",
"upload_time_iso_8601": "2023-08-02T16:00:43.273930Z",
"url": "https://files.pythonhosted.org/packages/68/7e/bb89daf34cb175b360f3fc2115fb375b2c8d1fbd7c33ca2df91b7befb8e6/arcu-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d0d25970a4ef15861e3b863fd840c2c2ed15311635c2c6fd07c6eac92144f841",
"md5": "d6525fdea0f445ae13e7aa6606257d86",
"sha256": "bb9177a58a2752acc29e1b9ce916c9809c17ea6e9664e24f61bbb69ac267eacd"
},
"downloads": -1,
"filename": "arcu-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "d6525fdea0f445ae13e7aa6606257d86",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3963,
"upload_time": "2023-08-02T16:00:44",
"upload_time_iso_8601": "2023-08-02T16:00:44.423006Z",
"url": "https://files.pythonhosted.org/packages/d0/d2/5970a4ef15861e3b863fd840c2c2ed15311635c2c6fd07c6eac92144f841/arcu-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-02 16:00:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "harrismdavis",
"github_project": "arcu",
"github_not_found": true,
"lcname": "arcu"
}