SMLMData.jl

Data types and utilities for SMLM coordinate data.
Author JuliaSMLM
Popularity
1 Star
Updated Last
1 Year Ago
Started In
October 2021

SMLMData

Data types and utilities for SMLM coordinate data.

Stable Dev Build Status Coverage

Overview

SMLMData provides a type for storing SMLM data as well as visualization tools and utilty functions. SMLMData Types should inherit from SMLD. The 2D data type is:

mutable struct SMLD2D <: SMLD
    connectID::Vector{Int}
    x::Vector{Float64}
    y::Vector{Float64}
    σ_x::Vector{Float64}
    σ_y::Vector{Float64}
    photons::Vector{Float64}
    σ_photons::Vector{Float64}
    bg::Vector{Float64}
    σ_bg::Vector{Float64}
    framenum::Vector{Int}
    datasetnum::Vector{Int}
    datasize::Vector{Int}
    nframes::Int
    ndatasets::Int
    datafields::NTuple{11, Symbol}
    SMLD2D() = new()
end

Visualization Tools

Utilities

A sub-Region Of Interest (ROI) can be extracted from an smld using SMLMData.isolateROI() as follows:

roi = [1.0; 1.0; 16.0; 16.0] # [YStart; XStart; YEnd; XEnd], same units as smld.x and smld.y
smld_sub = SMLMData.isolateROI(smld, roi)