exportTrackll {sojourner} | R Documentation

## exportTrackll

### Description

take in a list of track lists (trackll) and export it into row-wise (ImageJ Particle Tracker style) .csv files in the working directory

### Usage

    exportTrackll(trackll, cores = 1)

### Arguments

`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.

### Details

The reason why ImageJ particle Tracker 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:

[Last five characters of the file name]_[yy-MM-dd]_[HH-mm-ss].csv

### Value

.csv file output

### Examples

    folder=system.file('extdata','SWR1',package='sojourner')
    trackll=createTrackll(folder=folder, input=3)

    # Basic function call to exportTrackll into current directory
    exportTrackll(trackll)

    # Import export save back into a trackll
    # Get current working directory
    getwd()
    trackll.2 <- createTrackll(folder = getwd(), input = 3)

[Package sojourner version 1.4.2 Index]