simrun
❭ utils
❭ get_fraction_of_landmarkAscii_dir
get_fraction_of_landmarkAscii_dir¶
-
simrun.utils.get_fraction_of_landmarkAscii_dir(frac, basedir=
None
)¶ Sample landmarks from all landmarkAscii files in a directory.
This method loads all landmarkAscii files in a directory and returns a DataFrame containing the sampled landmarks and the cell type.
- Parameters:¶
frac (float) – Fraction of landmarks to sample.
basedir (str) – The path to the directory containing the landmarkAscii files.
- Returns:¶
A pandas DataFrame containing the sampled landmarks and the cell type.
- Return type:¶
pd.DataFrame
See also
get_fraction_of_landmarkAscii()
to sample landmarks from a single file.