User Tools

Site Tools


analysis:amplipex

Differences

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

Link to this comparison view

Next revision
Previous revision
analysis:amplipex [2014/01/08 10:59]
mvdm created
analysis:amplipex [2018/07/07 10:19] (current)
Line 2: Line 2:
  
 Note: as of Jan/2014, make sure you use the APX_devel branch on GitHub to get the latest version. At some point this will be merged back into master. Note: as of Jan/2014, make sure you use the APX_devel branch on GitHub to get the latest version. At some point this will be merged back into master.
 +
 +Eric's Note (Jan 12/​2014): ​ Use session R041-2013-08-06 as a test since it contains an events file within the directory. If you are using another session be sure to run the AMPX_getEvetns script in the util/​amplipex/​loading folder.  ​
  
 To load data: To load data:
Line 23: Line 25:
 cfg.trialfun = '​ft_trialfun_AMPXsquareTrack';​ cfg.trialfun = '​ft_trialfun_AMPXsquareTrack';​
 cfg.trialdef.hdr = data.hdr; cfg.trialdef.hdr = data.hdr;
-cfg.trialdef.pre = 2; +cfg.trialdef.pre = 2;    % time before the event to be included (It would take roughly 3 seconds to get from one feeder to the next) 
-cfg.trialdef.post = 3;+cfg.trialdef.post = 3;   % time after the event to be included (The rats would typically stay for at least 2 seconds while eating)
    
-cfg.trialdef.eventtype = '​nose_in_nofires';​ % could be 'nosepoke', 'reward', 'cue'+cfg.trialdef.eventtype = '​nose_in_nofires';​ % could be 'fires', 'no_fires', 'nose_in_fires',​ '​nose_in_nofires'
    
 [trl, event] = ft_trialfun_AMPXsquareTrack(cfg);​ [trl, event] = ft_trialfun_AMPXsquareTrack(cfg);​
analysis/amplipex.1389196793.txt.gz · Last modified: 2018/07/07 10:19 (external edit)