load_feature_csv

daart.data.load_feature_csv(filepath: str) tuple[source]

Load markers from csv file assuming the following format.

name | <f1> | <f2> | <f3> | <f4> | …

0 | 34.5 | 125.4 | 0.921 | 98.4 | … . | . | . | . | . | … . | . | . | . | . | … . | . | . | . | . | …

param filepath:

absolute path of csv file

type filepath:

str

returns:
  • x coordinates (np.ndarray): shape (n_t, n_bodyparts)

  • y coordinates (np.ndarray): shape (n_t, n_bodyparts)

  • likelihoods (np.ndarray): shape (n_t,)

  • marker names (list): name for each column of x and y matrices

rtype:

tuple