orientCells: Orient your cells by the side in which your spots or objects...

View source: R/helperfunctions.R

orientCellsR Documentation

Orient your cells by the side in which your spots or objects (predominantly) are located orientCells() takes a spots_relative or object_relative dataset and uses the relative localization of each spot or mid-point of each object to flip all related cells & content to one side based on this localization.

Description

Orient your cells by the side in which your spots or objects (predominantly) are located

orientCells() takes a spots_relative or object_relative dataset and uses the relative localization of each spot or mid-point of each object to flip all related cells & content to one side based on this localization.

Usage

orientCells(dataTurn, cellData, removeNonOriented = FALSE)

Arguments

dataTurn

has to be a spots_relative or object_relative dataset

cellData

a list of corresponding datasets that need to be turned as well. can be 1 dataset (for instance mesh) or a list of datasets (like list(mesh, object_relative))

removeNonOriented

default is FALSE - if set to TRUE, in all datasets only the oriented cells will be kept.

Value

the function will return a list of the datasets, where the relative X/Y coordinates of the cells and internal features are all oriented to one side.

Examples

## Not run: 

output <- orientCells(dataTurn = myData$spots_relative, cellData = list(myData$mesh, myData$object_relative))

## End(Not run)


vrrenske/shinyspots documentation built on Oct. 28, 2023, 12:26 p.m.