imcrtools

An R package for handling and analysing imaging mass cytometry data

https://github.com/bodenmillergroup/imcrtools

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: nature.com
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary

Keywords

imc r single-cell spatial

Keywords from Contributors

bioconductor bioconductor-packages imaging shiny
Last synced: 6 months ago · JSON representation

Repository

An R package for handling and analysing imaging mass cytometry data

Basic Info
Statistics
  • Stars: 27
  • Watchers: 12
  • Forks: 12
  • Open Issues: 9
  • Releases: 1
Topics
imc r single-cell spatial
Created over 6 years ago · Last pushed 8 months ago
Metadata Files
Readme Changelog

README.md

imcRtools

codecov docs <!-- badges: end -->

This R/Bioconductor package contains helper functions to analyse IMC (or other multiplexed imaging) data.

Its official package page can be found here: https://bioconductor.org/packages/imcRtools

Bug notice: we discovered and fixed a bug in the testInteractions function in version below 1.5.5 which affected SingleCellExperiment or SpatialExperiment objects in which cells were not grouped by image. Please install the newest version of imcRtools directly from Github as explained below.

Check status

| Bioc branch | Checks | |:-----------:|:------:| | Release |build-check-release| | Devel |build-check-devel|

Introduction

Highly multiplexed imaging techniques such as imaging mass cytometry (IMC), multiplexed ion beam imaging (MIBI) and cyclic immunofluorescence techniques acquire read-outs of the expression of tens of protein in a spatially resolved manner.

This R package supports the handling and analysis of imaging mass cytometry and other highly multiplexed imaging data. The main functionality includes reading in single-cell data after image segmentation and measurement, data formatting to perform channel spillover correction and a number of spatial analysis approaches. First, cell-cell interactions are detected via spatial graph construction; these graphs can be visualized with cells representing nodes and interactions representing edges. Furthermore, per cell, its direct neighbours are summarized to allow spatial clustering. Per image/grouping level, interactions between types of cells are counted, averaged and compared against random permutations. In that way, types of cells that interact more (attraction) or less (avoidance) frequently than expected by chance are detected.

Installation

The imcRtools package can be installed from Bioconductor via:

```r if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")

BiocManager::install("imcRtools") ```

The development version of imcRtools can be installed from Github via:

```r if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")

remotes::install_github("BodenmillerGroup/imcRtools") ```

Getting help

The analysis of highly multiplexed imaging data requires multiple pre-processing and diverse analysis steps.

  1. Processing of raw data and segmentation: The ImcSegmentationPipeline and the steinbock library can be used to process and segment IMC data. The imcRtools package provides reader functions for outputs generated by these approaches.

  2. Single-cell analysis using the Bioconductor framework: The Orchestrating Single-Cell Analysis with Bioconductor book is an excellent resource for beginners and advanced analysis concerning single-cell data. Common analysis steps include dimensionality reduction, unsupervised clustering for cell type detection and data visualization. The imcRtools package supports data structures that fully integrate with the analysis presented in the OSCA book.

  3. Handling multiplexed images in R: the cytomapper Bioconductor package provides functions and data structure to handle and analyse highly multiplexed imaging data (images, masks and single-cell data) natively in R.

Citation

Please cite the following paper when using imcRtools in your research:

Windhager, J., Zanotelli, V.R.T., Schulz, D. et al. An end-to-end workflow for multiplexed image processing and analysis. Nat Protoc (2023). https://doi.org/10.1038/s41596-023-00881-0

@article{Windhager2023,
    author = {Windhager, Jonas and Zanotelli, Vito R.T. and Schulz, Daniel and Meyer, Lasse and Daniel, Michelle and Bodenmiller, Bernd and Eling, Nils},
    title = {An end-to-end workflow for multiplexed image processing and analysis},
    year = {2023},
    doi = {10.1038/s41596-023-00881-0},
    URL = {https://www.nature.com/articles/s41596-023-00881-0},
    journal = {Nature Protocols}
}

Contributing

For feature requests, please open an issue here.

Alternatively, you can fork the repository, add your change and issue a pull request.

Maintainer

Daniel Schulz

Owner

  • Name: BodenmillerGroup
  • Login: BodenmillerGroup
  • Kind: organization

GitHub Events

Total
  • Create event: 3
  • Issues event: 9
  • Watch event: 6
  • Delete event: 1
  • Member event: 1
  • Issue comment event: 9
  • Push event: 16
  • Pull request review comment event: 5
  • Pull request review event: 10
  • Pull request event: 7
  • Fork event: 3
Last Year
  • Create event: 3
  • Issues event: 9
  • Watch event: 6
  • Delete event: 1
  • Member event: 1
  • Issue comment event: 9
  • Push event: 16
  • Pull request review comment event: 5
  • Pull request review event: 10
  • Pull request event: 7
  • Fork event: 3

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 421
  • Total Committers: 6
  • Avg Commits per committer: 70.167
  • Development Distribution Score (DDS): 0.176
Past Year
  • Commits: 9
  • Committers: 2
  • Avg Commits per committer: 4.5
  • Development Distribution Score (DDS): 0.333
Top Committers
Name Email Commits
nilseling n****g@g****e 347
lassedochreden l****r@u****h 28
SchulzDan s****z@g****e 28
J Wokaty j****y 8
toobiwankenobi t****h@b****h 6
Nitesh Turaga n****a@g****m 4
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 70
  • Total pull requests: 46
  • Average time to close issues: 5 months
  • Average time to close pull requests: 9 days
  • Total issue authors: 24
  • Total pull request authors: 8
  • Average comments per issue: 2.23
  • Average comments per pull request: 0.93
  • Merged pull requests: 40
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 7
  • Average time to close issues: 18 days
  • Average time to close pull requests: about 2 months
  • Issue authors: 6
  • Pull request authors: 4
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • nilseling (39)
  • SchulzDan (5)
  • jwindhager (3)
  • lassedochreden (3)
  • sailseem (2)
  • jweis3 (1)
  • SamWell16 (1)
  • mohamadmilad (1)
  • erikgerdtsson (1)
  • LazDaria (1)
  • paulrbuckley-kcl (1)
  • aleixrius (1)
  • l2baeriswyl (1)
  • tryggest (1)
  • jonhsussman (1)
Pull Request Authors
  • nilseling (32)
  • SchulzDan (7)
  • lassedochreden (5)
  • marlenelutz1 (2)
  • brunopalau (1)
  • PierreBSC (1)
  • ajxa (1)
  • chiarasch (1)
  • dktanwar (1)
Top Labels
Issue Labels
enhancement (5) to be discussed (1)
Pull Request Labels

Dependencies

.github/workflows/build-checks-devel.yml actions
  • actions/checkout v2 composite
.github/workflows/build-checks-release.yml actions
  • actions/checkout v2 composite
.github/workflows/docs.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
DESCRIPTION cran
  • R >= 4.1 depends
  • SpatialExperiment * depends
  • BiocNeighbors * imports
  • BiocParallel * imports
  • DT * imports
  • EBImage * imports
  • MatrixGenerics * imports
  • RTriangle * imports
  • S4Vectors * imports
  • SingleCellExperiment * imports
  • SummarizedExperiment * imports
  • abind * imports
  • concaveman * imports
  • cytomapper * imports
  • data.table * imports
  • distances * imports
  • dplyr * imports
  • ggplot2 * imports
  • ggraph * imports
  • igraph * imports
  • magrittr * imports
  • methods * imports
  • pheatmap * imports
  • readr * imports
  • scuttle * imports
  • sf * imports
  • stats * imports
  • stringr * imports
  • tidygraph * imports
  • tidyselect * imports
  • utils * imports
  • viridis * imports
  • vroom * imports
  • BiocStyle * suggests
  • CATALYST * suggests
  • grid * suggests
  • knitr * suggests
  • markdown * suggests
  • rmarkdown * suggests
  • testthat * suggests