Description Usage Arguments Details Examples
take in a list of track lists (trackll) and export it into row-wise (ImageJ/MOSAIC) .csv files in the working directory
1 2 3 | exportTrackll(trackll, cores = 1)
.exportRowWise(track.list)
|
track.list |
A track list (a list of trajectory data frames). |
trackll |
A list of track lists. |
cores |
Number of cores used for parallel computation. This can be the cores on a workstation, or on a cluster. Tip: each core will be assigned to read in a file when paralleled. |
The reason why ImageJ/MOSAIC style .csv export was chosen is because it fully preserves track frame data, while maintaining short computation time and easy readability in Excel/etc.
In order to import this .csv export back into a trackll at any point (while preserving all information), select input = 3 in createTrackll.
If the track list does not have a fourth frame record column (not recommended), it will just output the start frame of each track instead and will take noticeably longer.
It is not recommended that exportTrackll be run on merged list of track lists (trackll). Also, ensure that the input trackll is a list of track lists and not just a track list.
The naming scheme for each export is as follows:
[yy-MM-dd]_[HH-mm-ss]_[Last five characters of the file name].csv
1 2 3 4 5 6 7 8 9 10 11 | #Basic function call to exportTrackll with 2 cores into current directory
exportTrackll(trackll, cores = 2)
#Export one track list
.exportRowWise(trackl)
#Get current working directory
getwd()
#Import export save back into a trackll
trackll.2 <- createTrackll(folder = getwd(), input = 3, cores = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.