simrunutilsget_fraction_of_landmarkAscii

get_fraction_of_landmarkAscii

simrun.utils.get_fraction_of_landmarkAscii(frac, path)

Sample landmarks (i.e. 3D points) from a landmarkAscii file.

Parameters:
  • frac (float) – Fraction of landmarks to sample.

  • path (str) – The path to the landmarkAscii file.

Returns:

A pandas DataFrame containing the sampled landmarks and the cell type.

Return type:

pd.DataFrame

See also

get_fraction_of_landmarkAscii_dir() to sample landmarks from all landmarkAscii files in a directory.