monarch-initiative / phenopacket-store

Collections of GA4GH phenopackets that represent individuals with Mendelian diseases.
https://monarch-initiative.github.io/phenopacket-store/
BSD 3-Clause "New" or "Revised" License
15 stars 4 forks source link

Wip/gen md table #75

Closed pnrobinson closed 7 months ago

pnrobinson commented 7 months ago

@tudorgroza
This looks good - I altered to API slightly and made a limit of 20 for the number of diseases to display. I did not know the md package, it is cool!

For some reason I cannot get the imports to work in a script. I am thinking it would be good to have a script that looks like this

from ppktstore import PPKtListing
notebook_dir = "notebooks"
outfile = "TEST.md"
plisting = PPKtListing(notebook_dir=notebook_dir)
plisting.createMDFile(outFile=outfile)

and to put the script in a new directory called scripts (where it would be out of the way, but we could use it to update the MD page witth each release). Does this ring a bell?

pnrobinson commented 7 months ago

I am going to merge this now so I can easily use the function to finish a release today. We could polish with anoter PR if needed!