microbiomedata / submission-schema

https://microbiomedata.github.io/submission-schema/
MIT License
1 stars 1 forks source link

test instantiating biosamples from NCBI #149

Open turbomam opened 10 months ago

turbomam commented 10 months ago

Instantiating against submission-schema instead of nmdc-schema because submission-schema is already flat, like NCBI Biosample attributes.

turbomam commented 10 months ago

@pkalita-lbl have you worked on anything like this yet?

I'm getting the Attributes for one NCBI Biosample here from the efetch API. We also have a Postgres version of the NCBI Biosample database on SPIN.

turbomam commented 10 months ago

There's some code in https://github.com/INCATools/biosample-analysis that tries to clean up some NCBI Biosample attributes. I don't think it uses nmdc-chema or submission-schema classes as its target.

It was some of the earliest and worst code I wrote for BBOP.

Maybe in https://github.com/INCATools/biosample-analysis/blob/mam-envo-mapping/src/mixs-envo-mapping/biosample-triad-mapping.py?

It might not be much use doing any more research in there.

turbomam commented 10 months ago

I don't know why the actions are saying

Because nmdc-submission-schema depends on xmltodict (^0.13.0) which doesn't match any versions, version solving failed. Error: Process completed with exit code 1.

https://pypi.org/project/xmltodict/0.13.0/