View source: R/helperfunctions.R
orientCells | R Documentation |
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.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.
orientCells(dataTurn, cellData, removeNonOriented = FALSE)
dataTurn |
has to be a |
cellData |
a list of corresponding datasets that need to be turned as well. can be 1 dataset (for instance |
removeNonOriented |
default is FALSE - if set to TRUE, in all datasets only the oriented cells will be kept. |
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.
## Not run:
output <- orientCells(dataTurn = myData$spots_relative, cellData = list(myData$mesh, myData$object_relative))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.