-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build/create PED files #5
Comments
Hi, this should work, i will look into it. |
I should always script in iPython Notebook... Well, well: >>> from ped_parser import Individual
>>> individual = Individual('ADM995A1', family='112', mother='ADM995A2', father='ADM995A3', sex='1', phenotype='2')
>>> individual.extra_info['Capture_kit'] = 'Agilent_SureSelect.V5'
>>> individual.get_json()
{u'family_id': '112',
u'father': 'ADM995A3',
u'id': 'ADM995A1',
u'mother': 'ADM995A2',
u'phenotype': '2',
u'sex': '1'} |
Would you like to have to_ped in the Individual class? |
I would probably create the |
Yes but i'm thinking about making it possible on all levels, don't really know what is most reasonable |
To me serializing to JSON would be nice on all levels. But serializing to PED on individual level is less interesting. Perhaps just make it a private method that is called by Family? |
Following up: |
Is it possible to use the package to create pedigree files from scratch?
When I try to create
Individual
objects and call e.g.get_json
it only includes mandatory information and skips stuff inextra_info
. I would like for this information to also be serialized - is this supported?The text was updated successfully, but these errors were encountered: