ConstantColumnMapper
Bases: ColumnMapper
Column mapper for cases in which all patients have an (optionally excluded) HPO term.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
column_name
|
str
|
name of the column in the pandas DataFrame |
required |
hpo_id
|
str
|
HPO id, e.g., HP:0004321 |
None
|
hpo_label
|
str
|
Corresponding term label |
None
|
term_list
|
List[lst]
|
list of lists with [label, hpo_id |
None
|
excluded
|
bool
|
if True, then all individuals had this feature explicitly excluded |
False
|
Source code in pyphetools/creation/constant_column_mapper.py
map_cell(cell_contents)
if this mapper is used, then all individuals in the table have the list of HPO terms
Args: cell_contents (str): not used, can be None or any other value
Returns: List[HpTerm]: list of HPO terms