UNAGI.perturbations.analysis_perturbation.perturbationAnalysis.main_analysis

perturbationAnalysis.main_analysis(track_to_analysis, all, score=None, items=None)[source]

The main function to analyse the perturbation results.

Parameters:
  • track_to_analysis (list) – A list of tracks to calculate the perturbation scores.

  • all (bool) – If all is True, the perturbation scores will be calculated for the whole dataset. Otherwise, the perturbation scores will be calculated for each track.

  • score (str) – The type of the perturbation score.

  • items (list) – A list of perturbation objects (pathways or compounds).

Returns:

results (dict) – The perturbation scores.