UNAGI.perturbations.speedup_perturbation.perturbation.startAutoPerturbation

perturbation.startAutoPerturbation(lastCluster, bound, mode, CUDA=True, random_genes=None, random_times=None, written=True, device='cpu')[source]

Start the perturbation analysis.

Parameters:
  • lastCluster (int) – The cluster id of the last cluster in the track

  • bound (float) – The perturbation bound

  • mode (str) – The perturbation mode, can be ‘drug’, ‘pathway’, ‘perfect’, ‘random_background’, ‘online_random_background’

  • CUDA (bool) – Whether to use GPU

  • random_genes (list) – A list of random genes

  • random_times (int) – The number of random genes

  • written (bool) – Whether to write the results to disk

Returns:

None