IJROI_subset: ImageJ ROI subset localizations file

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
IJROI_subset(x, file, pxsize = 5)

Arguments

x

A data.frame or list of data.frames with single molecule localizations, can be generated using SMOLR_IMPORT

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.

Value

Returns a list with for every ROI a data.frame.

Author(s)

Optical Imaging Centre ErasmusMC Rotterdam

See Also

read.ijroi read.ijzip

Examples

 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)

maartenpaul/SMoLR documentation built on May 21, 2019, 10:14 a.m.