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.
compareFolder(folders,input=1,ab.track=FALSE,cores=1)
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. |
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.
folder1=system.file('extdata','SWR1',package='sojourner') folder2=system.file('extdata','HTZ1',package='sojourner') trackll=compareFolder(folders=c(folder1,folder2), input=3)#> #> Reading ParticleTracker file: SWR1_WT_140mW_image6.csv ... #> #> mage6 read and processed. #> #> Process complete. #> #> Merging of folder SWR1 complete. #> #> ... #> #> Reading ParticleTracker file: HTZ1_140mW_WT.csv ... #> #> mW_WT read and processed. #> #> Process complete. #> #> Merging of folder HTZ1 complete. #> #> ...#> List of 2 #> $ SWR1:List of 207 #> $ HTZ1:List of 512