merge track lists in a list into one

mergeTracks(folder, trackll)

Arguments

folder

Full path to the output files.

trackll

A list of track lists.

Value

modified trackll

Details

IMPORTANT: Once a trackll has been merged, it cannot be masked using maskTracks().

Merging creates the following data structure: (1) first level is the folder name, (2) second level is a list of data.frames/tracks from all output files merged into one.

If not merged, track lists takes the name of individual files in the folder. If merged, the single merged track list takes the folder name.

Examples

#Basic masking with folder path with image masks folder = system.file('extdata', 'SWR1', package = 'sojourner') trackll=createTrackll(folder=folder, input=3)
#> #> Reading ParticleTracker file: SWR1_WT_140mW_image6.csv ... #> #> mage6 read and processed. #> #> Process complete.
trackll.merged <- mergeTracks(folder = folder, trackll = trackll)
#> #> Merging of folder SWR1 complete.