This package provides:
magick
-based functions to prepare tiled images of single cells, over imaging channels and time frames.- It requires ImageMagick in your system.
- Shiny apps to filter and annotate cytometry datasets graphically, with live image previews of the cells.
rcell2's full functionality is split into four packages:
- The main rcell2 package offers functions to load Cell-ID's output to data.frames, and image manipulation based on EBImage. A development version of this package is available in the
rcell.dev
branch. - Cell-ID, the image segmentation software, has been wrapped in the
rcell.cellid
package. It offers functions to run CellID from R, and an rmarkdown template showcasing advanced functionality. - The cell tiling and graphic filtering apps, built on R-Shiny and magick, are available in the
rcell.magick
package. - The
rcell2.examples
package contains notebooks on general usage, and on several classification and analysis methods.
This package suite is very well tested in baker's yeast data, and R version 4+.
Brief description of what the package does, and how to use it.
An Rmd notebook with minimal and detailed usage examples is available.
It is included as an Rmarkdown template, and can also be opened in Rstudio with a convenience function:
get_workflow_template_magick()
This will either copy or download and open a Rmarkdown notebook, with usage examples and brief explanations.
The magick functions display single cell images from microscopy datasets. See:
rcell2.magick::magickCell()
: main image tile generator.rcell2.magick::cellStrip()
andrcell2.magick::cellStrips()
: multichannel image strips of single cells (example below).rcell2.magick::square_tile()
: square image tile of single cells (example below).rcell2.magick::cellSpread()
andrcell2.magick::cellSpreadPlot()
: square tile or ggplot object, showing samples images of cells, 2D-binned over custom variables.
Cell strip.
Spread plot.
rcell2.magick::shinyCell()
: An R-Shiny app will help users filter data graphically, with live image previews. This app is general purpose (i.e. useful in standard cell cytometry).rcell2.magick::tagCell()
: app to "tag" single cells in the dataset with user defined options.rcell2.magick::plotApp()
: a small app to filter a dataframe graphically.
shinyCell
tagCell
Most of the dependencies are listed in the DESCRIPTION
file, and should install automatically.
In a Mac OS computer, the binary magick
package may fail to annotate images, with the following error message:
Error: rsession-arm64: NonconformingDrawingPrimitiveDefinition `text' @ error/draw.c/RenderMVGContent/4456
To fix this, re-install the magick
package "from source". This requires the ImageMagick library to be installed in your system, as described below.
Install imagemagick
on your system; this is required by R's magick
package. All the major operating systems are supported by ImageMagick. See: https://imagemagick.org/script/download.php
To install ImageMagick in macOS you will need to:
- Install the
brew
package manager: https://brew.sh/ - Use brew to install the
imagemagick@6
package: https://github.com/ropensci/magick#installation
More information at: https://imagemagick.org/script/download.php
For Ubuntu and Arch Linux these commands may come in handy:
# Aptitude
sudo apt install imagemagick libmagick++-dev
# Pacman
sudo pacman -S imagemagick
Install the package using remotes
. This will fetch the latest version directly from its GitHub repository:
remotes::install_github("darksideoftheshmoo/rcell2-magick")