lynx.test_assoc.get_test_associations

lynx.test_assoc.get_test_associations(df, dof=5, degree=3, alpha=0.05, likelihood='gaussian')[source]

Get test statistics for both trajectory & sex across features

Parameters:
  • df (pd.DataFrame) – DataFrame with features, sample_id, sex, and t columns

  • dof (int) – Degrees of freedom for B-spline basis

  • degree (int) – Degree of B-spline

  • alpha (float) – Significance level for FDR correction

  • likelihood (str) – ‘gaussian’ for mixed linear models (default) ‘gamma’ for Gamma GLM