createTrackll-methods: createTrackll

Description Usage Arguments Details Examples

Description

take in Diatrack (.txt or .mat), ImageJ (.csv), or SlimFast (.txt) input from a folder to output a list of track lists with the option to record frames and use multiple cores.

Usage

1
createTrackll(interact = F, folder, input = 1, ab.track = F, cores = 1, frameRecord = T)

Arguments

interact

Open interactive menu to choose the desired folder by selecting any file in it and select input type (script will process all files of that type in this folder).

folder

Full path output file folder (if they are .txt, ensure that they are either all Diatrack or all SlimFast).

input

Input file type (Diatrack .txt file = 1; Diatrack .mat session file = 2; ImageJ .csv file = 3; SlimFast .txt file = 4).

ab.track

Use absolute coordinates for tracks.

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.

frameRecord

Add a fourth column to the track list after the xyz-coordinates for the frame that coordinate point was found (especially helpful when linking frames). Highly recommended to leave on.

Details

It is highly advised that the frame record option be left on to preserve the most information, especially when linking frames. If the frame record option is turned on for reading Diatrack .txt files (input = 1), take note that the frame record is artificially created as consecutive frames after the given start frame. Otherwise, all other data types naturally record the frames of every coordinate point.

The pre-censoring of single-frame tracks is dependent on the tracking software. For complete lossless track data, use Diatrack (.mat) session files. If the initial creation of the trackll does not have a frame record, future exports and imports of the trackll will only preserve the start frames.

If the cores are set to the maximum number of cores available on the system, the script may return a error after processing all the files. This error is due to the requirement of some systems to have one core open for system functions. This error will not affect the trackll output, but to avoid it, one can input one less than the maximum number of cores available.

The naming scheme for the list of track list is as follows:

Track List: [full name of input file]

Track: [Last five characters of the file name].[Start frame].[Length].[Track].[Index in overall list (will differ from Track # when merging)]

(Note: The last five characters of the file name, excluding the extension, cannot contain <e2><80><9c>.<e2><80><9d>)

Examples

1
2
3
4
5
6
7
# select track folder interactively and specify using 2 cores
trackll <- createTrackll(interact = T, cores = 2)

# Specify trackll folder path programably, specify the file format to be "2"
(i.e. Diatrack txt files ending with .txt), cores to be 2.
folder=system.file("extdata","SWR1",package="smt")
trackll <- createTrackll(folder=folder, input = 1, cores = 2)

snjy9182/smt documentation built on May 24, 2019, 7:19 a.m.