oist / optinist

calcium imaging pipeline tool
GNU General Public License v3.0
33 stars 13 forks source link

CCA should take any 2 matrices #594

Open milesOIST opened 7 months ago

milesOIST commented 7 months ago

The current implementation of CCA requires the input of neural_data, IscellData and BehaviorData. However, this algorithm can be used on an two data matrices with same number of time points (number of observations). This would be useful as some data has 2 channels and it would be useful to do CCA comparing 2 imaging data sets.

Suggested solution:

  1. Neural_data and IscellData are combined with an extra module to give ROIdata output.
  2. CCA accepts any 2 matrices of the same length. e.g CCA(ROIdata_1, ROIdata_2) or CCA(ROIdata_1, BehaviorData)