Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Refactor taxon/location information. #52

Open
mycrobe opened this issue Jun 2, 2016 · 0 comments
Open

Proposal: Refactor taxon/location information. #52

mycrobe opened this issue Jun 2, 2016 · 0 comments

Comments

@mycrobe
Copy link
Collaborator

mycrobe commented Jun 2, 2016

Refactor taxon and location information in gene document. (This is motivated by how hard it is to get the species name in gramene search at the moment.)

Currently, taxon information is at the root level, a location subdocument, and an annotation:

{
    "name": "F775_23607",
    "taxon_id": 37682,
    "system_name": "aegilops_tauschii",
    "location": {
        "region": "Scaffold20028",
        "start": 1817,
        "end": 5219,
        "strand": 1,
        "map": "GCA_000347335.1"
    },
    "annotations": {
            "taxonomy": {
                "entries": [
                    {
                        "_id": 37682,
                        "name": "Aegilops tauschii"
                    }
                ],
                "ancestors": [
                    1,
                    2759,
                    3193,
                    …
                ]
            },
            …
        }
    …
}

Instead I propose we should create a taxon subdocument for taxon id and species name, and change the location document, with additional information about map and region pulled in from maps core. The annotations doc should be kept for ancestor information that we use in SOLR.

{
        "name": "F775_23607",
        "taxon": {
            "taxon_id": 37682,
            "name": "Aegilops tauschii"
        },
        "location": {
            "map": {
                "id": "GCA_000347335.1",
                "assembled_length": 0,
                "full_length": 3313764331,
                "genes": 37035,
                "regions": 1,
                "system_name": "aegilops_tauschii"
            },
            "region": {
                "id": "Scaffold20028",
                "idx": 0,
                "length": 3313764331
            },
            "strand": 1,
            "start": 1817,
            "end": 5219
        },
        "annotations": {
            "taxonomy": {
                "ancestors": [
                    1,
                    2759,
                    3193,
                    …
                ]
            },
            …
        },
        …
    },
    …
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant