pypmi.load_biospecimen¶
-
pypmi.
load_biospecimen
(path: str = None, measures: List[str] = None) → pandas.core.frame.DataFrame[source]¶ Loads biospecimen data into tidy dataframe
Parameters: - path (str, optional) – Filepath to directory containing PPMI data files. If not specified this function will, in order, look (1) for an environmental variable $PPMI_PATH and (2) in the current directory. Default: None
- measures (list, optional) – Which measures to keep in the final dataframe. There are a number of
biospecimen measures that are missing for large numbers of subjects, so
if not specified only those that are present in at least 80% of entries
are kept. Specifying measures=’all’ will retain everything, but this
will significantly increase load time. It is highly recommended to
specify which measures to keep; available biospecimen measures can be
viewed with
pypmi.available_biospecimen()
. Default: None
Returns: data – Biospecimen data
Return type: See also