Skip to main content

Find representative subpopulations in single cell imaging data.

Project description

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. ​

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcu-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcu-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file arcu-0.1.1.tar.gz.

File metadata

  • Download URL: arcu-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.8

File hashes

Hashes for arcu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bb9177a58a2752acc29e1b9ce916c9809c17ea6e9664e24f61bbb69ac267eacd
MD5 d6525fdea0f445ae13e7aa6606257d86
BLAKE2b-256 d0d25970a4ef15861e3b863fd840c2c2ed15311635c2c6fd07c6eac92144f841

See more details on using hashes here.

File details

Details for the file arcu-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: arcu-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.8

File hashes

Hashes for arcu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4003b7cc169f0aa6ec5be26553fd69f068a82af202c696c318928717c6023b8
MD5 6b8a255617723abeceafefc82f3ec606
BLAKE2b-256 687ebb89daf34cb175b360f3fc2115fb375b2c8d1fbd7c33ca2df91b7befb8e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page