Network Centrality#

CPAC.network_centrality.convert_pvalue_to_r(datafile, p_value, two_tailed=False)[source]#

Method to calculate correlation threshold from p_value

Parameters
  • datafile (string) – filepath to dataset to extract number of time pts from

  • p_value (float) – significance threshold p-value

  • two_tailed (boolean (optional); default=False) – flag to indicate whether to calculate the two-tailed t-test threshold for the returned correlation value

Returns

r_value – correlation threshold value

Return type

float