Giter Club home page Giter Club logo

hpo-toolkit's People

Contributors

ielis avatar iimpulse avatar ldingemans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hpo-toolkit's Issues

loading hpo

It would be nice to have a convenience function for loading the hpo that would look if the HPO is already downloaded and if not pull in the latest version from GitHub, i.e., internally it would do somethinglike this

if os.path.isfile('hpo_data/hp.json'):
    hpo_ontology = load_ontology('hpo_data/hp.json')
else:
    hpo_ontology = load_ontology('https://raw.githubusercontent.com/obophenotype/human-phenotype-ontology/master/hp.json')

and client code would look like this

load_ontology()
# or if you want to make sure you have the latest version
load_ontology(overwrite=True)

Contribute to PyHPO

Hi,

I have just stumbled upon your hpo-toolkit library and see that it has some very nice features. I have been working on a similar library, which is already quite stable, extendable and very well tested: PyHPO (Docs). I was wondering if you think it would make sense to combine our efforts and work on one library together.

definition

It would be useful to be able to get PMIDs that go with term definitions. In the JSON file these are listed as

 {
      "id" : "http://purl.obolibrary.org/obo/HP_0000011",
      "lbl" : "Neurogenic bladder",
      "type" : "CLASS",
      "meta" : {
        "definition" : {
          "val" : "A type of bladder dysfunction caused by neurologic damage. Neurogenic bladder can be flaccid or spastic. Com
mon manifestatios of neurogenic bladder are overflow incontinence, frequency, urgency, urge incontinence, and retention.",
          "xrefs" : [ "https://orcid.org/0000-0002-0736-9199", "PMID:18095004", "PMID:22400020" ]
        },
(...)

There are different ways we could model this in HPOTK; I do not think it is necessary to make them explicitly part of the definition, but they could be or each term could get a list of PMID_xref or something like that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.