All Projects → ropensci → colocr

ropensci / colocr

Licence: GPL-3.0 license
An R package for conducting co-localization analysis. Edit

Programming Languages

r
7636 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to colocr

ggimg
ggimg: Graphics Layers for Plotting Image Data with ggplot2
Stars: ✭ 51 (+131.82%)
Mutual labels:  r-package, image-analysis
MAnorm2
MAnorm2 for Normalizing and Comparing ChIP-seq Samples
Stars: ✭ 15 (-31.82%)
Mutual labels:  r-package
netrankr
An R package for network centrality
Stars: ✭ 39 (+77.27%)
Mutual labels:  r-package
OAD
Collection of tools and scripts useful to automate microscopy workflows in ZEN Blue using Python and Open Application Development tools and AI tools.
Stars: ✭ 90 (+309.09%)
Mutual labels:  image-analysis
irace
Iterated Racing for Automatic Algorithm Configuration
Stars: ✭ 26 (+18.18%)
Mutual labels:  r-package
jsonvalidate
✔️⁉️ Validate JSON
Stars: ✭ 43 (+95.45%)
Mutual labels:  r-package
fastenloc
Colocalization analysis of genetic association signals
Stars: ✭ 25 (+13.64%)
Mutual labels:  colocalization
rodev
⛔ ARCHIVED ⛔ Helper for rOpenSci Package Developpers
Stars: ✭ 24 (+9.09%)
Mutual labels:  r-package
linguisticsdown
Easy Linguistics Document Writing with R Markdown
Stars: ✭ 24 (+9.09%)
Mutual labels:  r-package
rreddit
𝐫⟋ Get Reddit data
Stars: ✭ 49 (+122.73%)
Mutual labels:  r-package
nflfastR
A Set of Functions to Efficiently Scrape NFL Play by Play Data
Stars: ✭ 268 (+1118.18%)
Mutual labels:  r-package
weathercan
R package for downloading weather data from Environment and Climate Change Canada
Stars: ✭ 83 (+277.27%)
Mutual labels:  r-package
tsmp
R Functions implementing UCR Matrix Profile Algorithm
Stars: ✭ 63 (+186.36%)
Mutual labels:  r-package
RNeXML
Implementing semantically rich NeXML I/O in R
Stars: ✭ 12 (-45.45%)
Mutual labels:  r-package
BAS
BAS R package https://merliseclyde.github.io/BAS/
Stars: ✭ 36 (+63.64%)
Mutual labels:  r-package
tidygenomics
Tidy Verbs for Dealing with Genomic Data Frames https://const-ae.github.io/tidygenomics/
Stars: ✭ 97 (+340.91%)
Mutual labels:  r-package
gm
R Package for Music Score and Audio Generation
Stars: ✭ 116 (+427.27%)
Mutual labels:  r-package
pyLattice
A python library for advanced lattice light-sheet image analysis
Stars: ✭ 16 (-27.27%)
Mutual labels:  image-analysis
TDAstats
R pipeline for computing persistent homology in topological data analysis. See https://doi.org/10.21105/joss.00860 for more details.
Stars: ✭ 26 (+18.18%)
Mutual labels:  r-package
opencage
🌐 R package for the OpenCage API -- both forward and reverse geocoding 🌐
Stars: ✭ 82 (+272.73%)
Mutual labels:  r-package

Build Status AppVeyor Build Status codecov Build Status status

colocr

An R package for conducting co-localization analysis.

Overview

A few R packages are available for conducting image analysis, which is a very wide topic. As a result, some of us might feel at a loss when all they want to do is a simple co-localization calculations on a small number of microscopy images. This package provides a simple straight forward workflow for loading images, choosing regions of interest (ROIs) and calculating co-localization statistics. Included in the package, is a shiny app that can be invoked locally to interactively select the regions of interest in a semi-automatic way. The package is based on the R package imager.

Installing colocr

colocr is available on CRAN and can be installed using

# install from cran
install.packages('colocr')

The package development version is available at github.

# install from github
devtools::install_github('ropensci/colocr')

This package depends on imager which has some external dependencies. The instructions for installing imager can be found here.

Getting started

To get started, load the required packages and the images. The images below are from DU145 cell line and were stained for two proteins; RKIP and LC3. Then, apply the appropriate parameters for choosing the regions of interest using the roi_select. Finally, check the appropriateness of the parameters by highlighting the ROIs on the image.

# load libraries
library(colocr)

# load images
fl <- system.file('extdata', 'Image0001_.jpg', package = 'colocr')
img <- image_load(fl)

# select ROI and show the results
par(mfrow = c(2,2), mar = rep(1, 4))

img %>%
  roi_select(threshold = 90) %>%
  roi_show()

The same can be achieved interactively using an accompanying shiny app. To launch the app run.

run_app()

The reset of the analysis depends on the particular kind of images. Now, colocr implements two simple co-localization statistics; Pearson's Coefficient Correlation (PCC) and the Manders Overlap Coefficient (MOC).

To apply both measures of correlation, we first get the pixel intensities and call roi_test on the merge image.

# calculate co-localization statistics
img %>%
  roi_select(threshold = 90) %>%
  roi_test(type = 'both')

The same analysis and more can be conducted using a web interface for the package available here

Acknowledgement

Citation

citation('colocr')

ropensci_footer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].