corr_coeff problem

38 views
Skip to first unread message

Joey Gao

unread,
Dec 5, 2023, 1:04:39 PM12/5/23
to TVB Users
Hello TVB developer,
      I am trying to model brain dynamics in brain tumor patients. I found a demo named educase_TVB_braintumor but the version is too old. At the top, there's a command to import to corr_coeff, "import tvb.analyzers. correlation_coefficient as corr_coeff". But the correlation_correlation module seems have been removed. I try to use correlationcoefficients in the graph. But it seems for other aims.
       So how can I use this function in latest version of tvb? Can you give me a demo to settle thes problem to replace these code?

   # Compute the functional connectivity with the corrcoef analyzer
    corrcoeff_analyser = corr_coeff.CorrelationCoefficient(time_series=tsr)
    corrcoeff_data = corrcoeff_analyser.evaluate()
    corrcoeff_data.configure()
    FC = corrcoeff_data.array_data[..., 0, 0]

Thanks!

Lia Domide

unread,
Dec 6, 2023, 3:54:19 AM12/6/23
to TVB Users
Hi,


Indeed, we removed (in 2019) the CorrelationCoefficient class from tvb.analyzers; it was only a wrapper over the numpy.corrcoef.

Best,
Lia.


Reply all
Reply to author
Forward
0 new messages