related-sciences / gwas-analysis

GWAS data analysis experiments
Apache License 2.0
24 stars 6 forks source link

Use of pydantic for PyData prototype? #28

Open hammer opened 4 years ago

hammer commented 4 years ago

Hey @eric-czech do you think pydantic would be useful for our IO and configuration approach?

eric-czech commented 4 years ago

That looks great, good find! I was playing around with it and found a few reasonable ways to attach documentation for more interactive configuration.

I've been wondering what the closest python equivalent to pureconfig is (which I loved) -- looks like that's pretty close.

hammer commented 4 years ago

Nice! What do you think about using it for providing schema-specific diagnostics for failed IO? I did not look closely at it but that use case is the one that jumped out at me given how often bioinformatics scripts fail on badly formatted inputs.

eric-czech commented 4 years ago

Hm maybe? Some thoughts:

If it doesn't JIT compile, then it's probably a nonstarter for IO though. My guess is that it won't.