extractImages: Extract data for images from Data objects

Description Usage Arguments Value Examples

View source: R/extractImages.R

Description

Given a Data object and a vector of image indices (either in 1:6 or in 1:9) return only the data belonging to the selected images. If this extraction is performed on well level, either a well with only a subset of images is returned or a single ImageData object (or a list of ImageData) objects is/are returned.

Usage

1

Arguments

x

The original Data object, holding the superset of images.

images

A vector of integers, specifying image indices of the images to keep.

keep.well

(Only at WellData level) A boolean indicating whether to keep the WellData object intact or return ImageData object(s).

wells

(Only at PlateData level) A list of wells (see extractWells), to further limit the returned data set.

keep.plate

(Only at PlateData level) A boolean indicating whether to keep the PlateData object intact or return a (nested) list.

Value

Either a PlateData, WellData or ImageData object, or a possibly nested list, holding only the data corresponding to the specified subset of images.

Examples

1
2
3
plate  <- PlateData(PlateLocation("J101-2C"))
img_11 <- extractImages(plate, 1)
imgs   <- extractImages(plate, c(5, 6), c("A15", "P2"))

nbenn/singleCellFeatures documentation built on May 23, 2019, 12:24 p.m.