knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
mdftracks reads and writes MTrackJ Data Files (.mdf
).
Supports clusters, 2D data, and channel information. If desired, generates
unique track identifiers based on cluster and id data from the .mdf
file.
install.packages('mdftracks')
To get a bug fix or to use a feature from the development version, you can install the development version from GitHub.
# install.packages("remotes") remotes::install_github("burgerga/mdftracks")
First load the package with
library(mdftracks)
mdf.file <- system.file("extdata", "example.mdf", package = 'mdftracks') data <- read.mdf(mdf.file) head(data, 10)
data <- read.mdf(mdf.file, drop.Z = T) head(data, 10)
(id, t, x, y, z)
format (e.g., from celltrackR)library('celltrackR') tracks.df <- as.data.frame(TCells)
head(tracks.df, 10) write.mdf(head(tracks.df, 10), pos.columns = c(3,4))
print(mdftracks.example.data) write.mdf(mdftracks.example.data, cluster.column = 'cl', id.column = 'id', pos.columns = letters[24:26], channel.column = 'ch', point.column = "p")
For more information, please consult the package documentation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.