Description Usage Arguments Value Author(s) See Also Examples
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.
1 | 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #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.