biothings / mygene.info

MyGene.info: A BioThings API for gene annotations
http://mygene.info
Other
113 stars 20 forks source link

Restructure MyGene.info Homolog field #49

Open kevinxin90 opened 5 years ago

kevinxin90 commented 5 years ago

Is this something of interest to restructure the homolog field in MyGene.info? Current structure:

"homologene": {
    "genes": [
        [
            9606,
            1017
        ],
        [
            10090,
            12566
        ],
        [
            10116,
            362817
        ]
    ]
}

This is less intuitive and no compatible with JSON-LD.

Proposed structure:

"homologene": {
    "genes": [
        {
            "taxid": 9606,
            "geneid": 1017
        },
        {
            "taxid": 10090,
            "geneid": 12566
        },
        {
            "taxid": 10116,
            "geneid": 362817
        }
    ]
}