Learn R Programming

celltrackR (version 1.2.2)

Motion Trajectory Analysis

Description

Methods for analyzing (cell) motion in two or three dimensions. Available measures include displacement, confinement ratio, autocorrelation, straightness, turning angle, and fractal dimension. Measures can be applied to entire tracks, steps, or subtracks with varying length. While the methodology has been developed for cell trajectory analysis, it is applicable to anything that moves including animals, people, or vehicles. Some of the methodology implemented in this packages was described by: Beauchemin, Dixit, and Perelson (2007) , Beltman, Maree, and de Boer (2009) , Gneiting and Schlather (2004) , Mokhtari, Mech, Zitzmann, Hasenberg, Gunzer, and Figge (2013) , Moreau, Lemaitre, Terriac, Azar, Piel, Lennon-Dumenil, and Bousso (2012) , Textor, Peixoto, Henrickson, Sinn, von Andrian, and Westermann (2011) , Textor, Sinn, and de Boer (2013) , Textor, Henrickson, Mandl, von Andrian, Westermann, de Boer, and Beltman (2014) .

Copy Link

Version

Install

install.packages('celltrackR')

Monthly Downloads

263

Version

1.2.2

License

GPL-2

Maintainer

Johannes Textor

Last Published

September 19th, 2025

Functions in celltrackR (1.2.2)

analyzeCellPairs

Find Distances and Angles for all Pairs of Tracks
angleCells

Angle between Two Tracks
ReadImmuneMap

Read tracks from ImmuneMap
distanceCells

Minimum Distance between Two Cells
TCells

Two-Photon Data: T Cells in a Lymph Node
BCells

Two-Photon Data: B Cells in a Lymph Node
distanceSteps

Distance between Two Steps
as.data.frame.tracks

Convert Tracks to Data Frame
TrackMeasures

Track Measures
applyStaggered

Compute a Measure on a Track in a Staggered Fashion
angleSteps

Angle between Two Steps
interpolateTrack

Interpolate Track Positions
maxTrackLength

Length of Longest Track
beaucheminTrack

Simulate a 3D Cell Track Using the Beauchemin Model
selectSteps

Get Single Steps Starting at a Specific Time from a Subset of Tracks
selectTracks

Select Tracks by Measure Values
as.tracks.data.frame

Convert from Data Frame to Tracks
as.list.tracks

Convert from Tracks to List
cellPairs

Find Pairs of Tracks
celltrackR

celltrackR: Quantitative analysis of motion.
bootstrapTrack

Simulate Tracks via Bootstrapping of Speed and Turning Angle from a Real Track Dataset
brownianTrack

Simulate an Uncorrelated Random Walk
normalizeToDuration

Normalize a Measure to Track Duration
boundingBox

Bounding Box of a Tracks Object
subtracks

Decompose Track(s) into Subtracks
subtracksByTime

Extract Subtracks Starting at a Specific Time
hotellingsTest

Test Unbiasedness of Motion
projectDimensions

Extract Spatial Dimensions
prefixes

Get Track Prefixes
getFeatureMatrix

Obtaining A Feature Matrix
cheatsheet

Open the package cheat sheet
timeStep

Compute Time Step of Tracks
timePoints

Find All Unique Time Points in a Track Dataset
normalizeTracks

Normalize Tracks
repairGaps

Process Tracks Containing Gaps
splitTrack

Split Track into Multiple Tracks
read.tracks.csv

Read Tracks from Text File
angleToDir

Angle with a Reference Direction
plot3d

Plot Tracks in 3D
plotTrackMeasures

Bivariate Scatterplot of Track Measures
clusterTracks

Cluster Tracks
angleToPlane

Angle with a Reference Plane
distanceToPlane

Distance to a Reference Plane
distanceToPoint

Distance to a Reference Point
angleToPoint

Angle with a Reference Point
simulateTracks

Generate Tracks by Simulation
filterTracks

Filter Tracks
get.immap.metadata

Get Track Metadata from ImmuneMap
pairsByTime

Distance between pairs of tracks at every timepoint
sort.tracks

Sort Track Positions by Time
plot.tracks

Plot Tracks in 2D
tracks

Tracks Objects
trackFeatureMap

Dimensionality Reduction on Track Features
stepPairs

Find Pairs of Steps Occurring at the Same Time
subsample

Subsample Track by Constant Factor
vecAngle

Angle Between Two Vectors
staggered

Staggered Version of a Function
wrapTrack

Create Track Object from Single Track
analyzeStepPairs

Find Distances and Angles for all Pairs of Steps
Neutrophils

Two-Photon Data: Neutrophils responding to an infection in the ear
aggregate.tracks

Compute Summary Statistics of Subtracks
AngleAnalysis

Angle Analysis