Skip to content

exactly how to conert UKB data, using example_ukb_to_bin.ipynb ❓ #14

Description

@jielab

Hi, there:

Below are the first few lines of example_ukb_to_bin.ipynb.

labels_file = 'labels.csv'
ukb_field_to_icd10_map_file = 'icd10_codes_mod.tsv'
ubk_basket_tab_file = 'ukb_basket.tab' # file path to ukb basket download .tab format

The first 14 lines for the labels.csv are as below. I wrote them in one line to save space.
Padding, No event, Female, Male, BMI_low, BMI_mid, BMI_high, Smoking_low, Smoking_mid, Smoking_high, Alcohol_low, Alcohol_mid, Alcohol_high, A00 (cholera), A01 (typhoid and paratyphoid fevers).

My own ukb_basket.tab file looks like below. It has all variables including age, sex, bmi, ICD10, etc.
The previous version uses f. as variable names while the current version uses p as prefix.
Image

I did not find the icd10_codes_mod.tsv file.

So, can you please let me know how to run your example_ukb_to_bin.ipynb with my own ukb_basket.tab file?

Thank you & best regards,
Jie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions