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
pipby,
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. ​
import pandas
A = pandas.read_csv('dir/file.csv')
​ Then execute ARCU using
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
Metadata
Release files for arcu 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arcu-0.1.1.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arcu-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / arcu-0.1.1.tar.gz
| Download URL | arcu-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb9177a58a2752acc29e1b9ce916c9809c17ea6e9664e24f61bbb69ac267eacd
|
|
BLAKE2b-256 checksum How to use checksums |
d0d25970a4ef15861e3b863fd840c2c2ed15311635c2c6fd07c6eac92144f841
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|
Release files / arcu-0.1.1-py3-none-any.whl
| Download URL | arcu-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4003b7cc169f0aa6ec5be26553fd69f068a82af202c696c318928717c6023b8
|
|
BLAKE2b-256 checksum How to use checksums |
687ebb89daf34cb175b360f3fc2115fb375b2c8d1fbd7c33ca2df91b7befb8e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|