compareFolder {sojourner} | R Documentation

## compareFolder

### Description

compare folders with Diatrack output files. merge track files in each folder into one item of a track list. This list can then be fed into other functions for comparison. It keeps folder information as names of the resulting list.

### Usage

    compareFolder(folders,input=1,ab.track=FALSE,cores=1)

### Arguments

`folders` | a vector storing paths to the folders location.'...' indicates multiple (unlimited) folders can be added into the function.
`input` | Input file type (Diatrack .txt file = 1; Diatrack .mat session file = 2; ImageJ .csv file = 3; SlimFast .txt file = 4).
`ab.track` | a Logical indicating if absolute coordinates should be used.
`cores` | Number of cores used for parallel computation. This can be the cores on a workstation, or on a cluster.

### Value

- trackll A list of tracks, each item of a track list correspond to a folder. This list can then be fed into other functions for comparison.

### Examples

    folder1=system.file('extdata','SWR1',package='sojourner')
    folder2=system.file('extdata','HTZ1',package='sojourner')
    trackll=compareFolder(folders=c(folder1,folder2), input=3)
    str(trackll,max.level=1)

[Package sojourner version 1.8.0 Index]