Load and return the ID mapping dataset (PHI).
Returns:
Name | Type |
Description |
data |
Bunch
|
Dictionary-like object, with the following attributes.
- data : pandas DataFrame
The data matrix.
|
Examples
| from msk_cdm.datasets import connect_to_db
from msk_cdm.datasets.impact import load_data_id_mapping_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_id_mapping = load_data_id_mapping_phi()
df = df_id_mapping['data']
print(df.head())
|
Source code in msk_cdm/datasets/phi/impact/datasets_phi_impact.py
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452 | def load_data_id_mapping_phi() -> Bunch:
"""Load and return the ID mapping dataset (PHI).
Returns:
data: Dictionary-like object, with the following attributes.
- **data** : pandas DataFrame
The data matrix.
Examples
--------
```python
from msk_cdm.datasets import connect_to_db
from msk_cdm.datasets.impact import load_data_id_mapping_phi
auth_file = 'path/to/config.txt'
connect_to_db(auth_file=auth_file)
df_id_mapping = load_data_id_mapping_phi()
df = df_id_mapping['data']
print(df.head())
```
"""
df = _loader._load_phi_impact_id_mapping()
data = Bunch(data=df)
return data
|