AMP-SCZ / lochness

Download your data to a data lake.
Other
3 stars 1 forks source link

Rename PRESCIENT run sheets and surveys with timepoint information #102

Closed tashrifbillah closed 2 years ago

tashrifbillah commented 2 years ago

ProNET run sheets are named as follows:

Pronet/PHOENIX/PROTECTED/PronetYA/raw/YA00037/
├── actigraphy
│   ├── YA00037_80129_20220503.cwa
│   └── YA00037.Pronet.Run_sheet_actigraphy_1.csv
├── eeg
│   ├── YA00037_eeg_20220503_1.zip
│   ├── YA00037_eeg_20220503.zip
│   └── YA00037.Pronet.Run_sheet_eeg_1.csv
├── interviews
│   └── YA00037.Pronet.Run_sheet_interviews_1.csv
├── mri
│   ├── YA00037_MR_2022_05_03_1
│   └── YA00037.Pronet.Run_sheet_mri_1.csv

But PRESCIENT run sheets do not have the _1 like strings:

Prescient/PHOENIX/PROTECTED/PrescientME/raw/ME57953/
├── actigraphy
│   ├── ME57953_71474_20220511.cwa
│   └── ME57953.Prescient.Run_sheet_actigraphy.csv
├── eeg
│   └── ME57953.Prescient.Run_sheet_eeg.csv
├── mri
│   └── ME57953.Prescient.Run_sheet_mri.csv
└── surveys
    ├── ME57953_Actigraphy.csv
    ├── ME57953_BPRS.csv
    ├── ME57953_EEG.csv
    ├── ME57953_EMA.csv
    ├── ME57953_LifetimeAP.csv
    ├── ME57953_MRI.csv
    ├── ME57953_PennCNB.csv
    ├── ME57953_PGIS.csv
    ├── ME57953.Prescient.Run_sheet_PennCNB.csv
    ├── ME57953_SOFAS.csv
    └── ME57953_SpeechSampling.csv

I think change needs to happen in the following places: https://github.com/AMP-SCZ/lochness/blob/1d8be0f1849e6d168c12c68c96477c34b4d9916c/lochness/rpms/__init__.py#L279

https://github.com/AMP-SCZ/lochness/blob/1d8be0f1849e6d168c12c68c96477c34b4d9916c/lochness/rpms/__init__.py#L112-L117

tashrifbillah commented 2 years ago

I can probably help too, but I need an example all_df_dict: https://github.com/AMP-SCZ/lochness/blob/1d8be0f1849e6d168c12c68c96477c34b4d9916c/lochness/rpms/__init__.py#L268

This all_df_dict fuels the other two functions: https://github.com/AMP-SCZ/lochness/blob/1d8be0f1849e6d168c12c68c96477c34b4d9916c/lochness/rpms/__init__.py#L269

https://github.com/AMP-SCZ/lochness/blob/1d8be0f1849e6d168c12c68c96477c34b4d9916c/lochness/rpms/__init__.py#L314

kcho commented 2 years ago

PR https://github.com/AMP-SCZ/lochness/pull/103