post:matlab_to_df.r

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
post:matlab_to_df.r [2019/08/21 15:02] – pseudomoanerpost:matlab_to_df.r [2020/12/17 01:15] (current) – pseudomoaner
Line 1: Line 1:
 ====== matlab_to_df.R ====== ====== matlab_to_df.R ======
  
-Description: Converts the Matlab-based procTracks structure into an R-based dataframe.+**Class:** Script 
 + 
 +**Description:** Converts the Matlab-based procTracks structure into an R-based dataframe.
  
 Note that variable names may need to be edited in this script to match your version of procTracks. Note that variable names may need to be edited in this script to match your version of procTracks.
  
-Author: Elisa Granato+If you are using the Matlab-based version of FAST, you will also need to re-save your track data in v6 .mat format for this script to work. Input the following commands to the Matlab command line to do this: 
 + 
 +<code matlab> 
 +clear all 
 +load('C:/Path/To/Target/Mat/Tracks.mat') 
 +save('C:/Path/To/Resaved/Mat/Tracks.mat','procTracks','rawFromMappings','rawToMappings','rawTracks',... 
 +    'trackTimes','toMappings','fromMappings','trackSettings','trackableData','linkStats','-v6') 
 +</code>  
 + 
 +Track .mat files for the stand-alone version of FAST are natively output in -v6 format. 
 + 
 +**Dependencies:** 
 + 
 +  * [[https://cran.r-project.org/web/packages/R.matlab/index.html|R.matlab]] 
 +  * [[https://cran.r-project.org/web/packages/data.table/vignettes/datatable-intro.html|data.table]] 
 + 
 +**Author:** Elisa Granato
  
 <code rsplus matlab_to_df.R> <code rsplus matlab_to_df.R>
  • post/matlab_to_df.r.1566396177.txt.gz
  • Last modified: 2019/08/21 15:02
  • by pseudomoaner