heteromotility/hmio module

Heteromotility input/output functions

heteromotility.hmio.import_tracksXY(tracksX_path, tracksY_path, verbose=False)

Imports cell tracks from (N, T) CSVs of X and Y coordinates.

Parameters:
  • tracksX_path (string.) – location of N x T CSV of sequential X locations
  • tracksY_path (string.) – location of N x T CSV of sequential Y locations
  • verbose (bool) – print notices if empty CSVs are imported.
Returns:

tracksX, tracksY – N x T arrays of X and Y locations respectively

Return type:

ndarray.

heteromotility.hmio.write_motility_stats(output_dir, output_name, gf, rwf, merged_list)

Aggregates and exports statistics from heteromotility measurement modules to an N x M feature matrix.

Parameters:
  • output_dir (string.) – path to output directory.
  • output_name (string.) – name of the output file.
  • gf (hmstats.GeneralFeatures object.) –
  • rwf (hmstats.RWFeatures object.) –
  • merged_list (list.) – list of merged feature values from hmtools.make_merged_list.
heteromotility.hmio.import_centroids(input_dir)

Legacy function. Imports centroids from CSV files.