dnanexus / UKB_RAP

Access share reviewed code & Jupyter Notebooks for use on the UK Biobank (UKBB) Research Application Platform. Includes resources from DNAnexus webinars, online trainings and workshops.
MIT License
106 stars 45 forks source link

No return for 'eid'. #13

Open raminsalmas opened 1 year ago

raminsalmas commented 1 year ago

Hi, The command below doesn't work:

df_qced['FID'] = df_qced['IID']

I think there's a bug:

Bug:

fields = [fields_for_id(f)[0] for f in field_ids] + [participant.find_field(name='p20160_i0')]

Debugged:

fields = [fields_for_id(f)[0] for f in field_ids] + [participant.find_field(name='p20160_i0')] + [participant.find_field(name='eid')]

anastazie-dnanexus commented 1 year ago

Thank you for catching this. Feel free to make PR.

mkoohim commented 10 months ago

Thanks @raminsalmas for your help. I had the same issue and your comment helped me to solve it!