View source: R/IJROI_statistics.R
IJROI_subset | R Documentation |
This function can be used to subset a localization file based on ROIs (Region of Interest) defined by ImageJ. This can be one or multiple ROIs.
IJROI_subset(x, file, pxsize = 5)
x |
A data.frame or list of data.frames with single molecule localizations, can be generated using |
file |
The file location on the ROI file to be processd, either a single ROI (.roi) or multiple ROIs (.zip) can be a vector of file locations equal to the number of localizations files in a list. |
pxsize |
The pixel size used to create the ROI files in ImageJ defined in nanometer, default = 5 nm. |
Returns a list with for every ROI a data.frame.
Optical Imaging Centre ErasmusMC Rotterdam
read.ijroi
read.ijzip
#see for example files SMoLR_data github
#https://github.com/ErasmusOIC/SMoLR_data/raw/master/IJROI_data.zip
download.file("https://github.com/ErasmusOIC/SMoLR_data/raw/master/IJROI_data.zip","IJROI_data.zip")
unzip("IJROI_data.zip")
#subset one roi
data <- IJROI_subset(smolrdata,file = "IJROI_data/IJROI.roi")
#subset to multiple ROIs
data <- IJROI_subset(smolrdata,file = "IJROI_data/RoiSet.zip")
#plot(SMOLR(data[[1]]),rgb=T)
#plot(SMOLR(data[[2]]),rgb=T)
#plot(SMOLR(data[[3]]),rgb=T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.