Menu

#15 Too small ITI due to DCM session splitting

4.2.0
open
pspm_dcm (1)
2019-07-01
2019-07-01
No

Summary

When DCM splits a session into two sessions due to large block of NaNs, last inter trial interval (ITI) of the first splitted session is calculated much shorter than expected ITI value.

Steps to Reproduce

  1. Run pspm_dcm with an input signal containing a long block of NaN values so that session is split into two.

Expected Results

Last ITI value should be similar to the other ITI values calculated for the splitted session.

Actual Results

Last ITI value ends up being much smaller than the other values.

(Optional) Possible Cause and Solutions

The reason for this is that last ITI value is calculated using the length of the data for that session. When the splitting procedure gets rid of NaNs, it decreases the length of data for the session. The specific code is on lines 527-528:

sbs_iti{sbs_id} = [sbs_trlstart{sbs_id}(2:end); ...
    numel(sbs_data{sbs_id, 1})/model.sr] - sbs_trlstop{sbs_id};

(Optional) Screenshots if Graphical User Interface is Used

Technical Info

  • PsPM revision ID: 776
  • MATLAB version: 2018b

Discussion

  • Eshref Yozdemir

    Eshref Yozdemir - 2019-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -11,7 +11,12 @@
     Last `ITI` value ends up being much smaller than the other values.
    
     ### (Optional) Possible Cause and Solutions
    -The reason for this is that last ITI value is calculated using the length of the `data` for that session. When the splitting procedure gets rid of `NaN`s, it decreases the length of `data` for the session.
    +The reason for this is that last ITI value is calculated using the length of the `data` for that session. When the splitting procedure gets rid of `NaN`s, it decreases the length of `data` for the session. The specific code is on lines 527-528:
    +```MATLAB
    +sbs_iti{sbs_id} = [sbs_trlstart{sbs_id}(2:end); ...
    +numel(sbs_data{sbs_id, 1})/model.sr] - sbs_trlstop{sbs_id};
    +
    +```
    
     ### (Optional) Screenshots if Graphical User Interface is Used
    
     
  • Eshref Yozdemir

    Eshref Yozdemir - 2019-07-01
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -14,7 +14,7 @@
     The reason for this is that last ITI value is calculated using the length of the `data` for that session. When the splitting procedure gets rid of `NaN`s, it decreases the length of `data` for the session. The specific code is on lines 527-528:
     ```MATLAB
     sbs_iti{sbs_id} = [sbs_trlstart{sbs_id}(2:end); ...
    -numel(sbs_data{sbs_id, 1})/model.sr] - sbs_trlstop{sbs_id};
    +    numel(sbs_data{sbs_id, 1})/model.sr] - sbs_trlstop{sbs_id};
    
     ```
    
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.