Skip to content

Description accidentally moved to root #345

@gaurav

Description

@gaurav

Until PR #339, a single description would be chosen for each clique and placed in id, e.g.:

{
  "NCBIGene:73": {
    "id": {
      "identifier": "NCBIGene:73",
      "label": "ACTG1P1",
      "description": "actin gamma 1 pseudogene 1"
    },
    "equivalent_identifiers": [
      {
        "identifier": "NCBIGene:73",
        "label": "ACTG1P1",
        "description": "actin gamma 1 pseudogene 1"
      },
      {
        "identifier": "HGNC:146",
        "label": "ACTG1P1"
      },
      {
        "identifier": "UMLS:C2829478",
        "label": "ACTG1P1 gene"
      }
    ],
    "type": [
      "biolink:Gene",
      "biolink:GeneOrGeneProduct",
      "biolink:GenomicEntity",
      "biolink:ChemicalEntityOrGeneOrGeneProduct",
      "biolink:PhysicalEssence",
      "biolink:OntologyClass",
      "biolink:BiologicalEntity",
      "biolink:ThingWithTaxon",
      "biolink:NamedThing",
      "biolink:PhysicalEssenceOrOccurrent",
      "biolink:MacromolecularMachineMixin"
    ]
  },

However, in PR #339 (released in NodeNorm 2.3.27) I inadvertently changed this so that the description now appears on the root object, i.e.:

{
  "NCBIGene:73": {
    "id": {
      "identifier": "NCBIGene:73",
      "label": "ACTG1P1"
    },
    "equivalent_identifiers": [
      {
        "identifier": "NCBIGene:73",
        "label": "ACTG1P1",
        "description": "actin gamma 1 pseudogene 1",
        "taxa": [
          "NCBITaxon:9606"
        ]
      },
      {
        "identifier": "HGNC:146",
        "label": "ACTG1P1"
      },
      {
        "identifier": "UMLS:C2829478",
        "label": "ACTG1P1 gene"
      }
    ],
    "description": "actin gamma 1 pseudogene 1",
    "taxa": [
      "NCBITaxon:9606"
    ],
    "type": [
      "biolink:Gene",
      "biolink:GeneOrGeneProduct",
      "biolink:GenomicEntity",
      "biolink:ChemicalEntityOrGeneOrGeneProduct",
      "biolink:PhysicalEssence",
      "biolink:OntologyClass",
      "biolink:BiologicalEntity",
      "biolink:ThingWithTaxon",
      "biolink:NamedThing",
      "biolink:PhysicalEssenceOrOccurrent",
      "biolink:MacromolecularMachineMixin"
    ]
  }
}

This was an unintentional change! I will fix this in the next version, by making two changes:

  1. Moving description back into id.
  2. Renaming the overall description to descriptions, and keeping that as a list of all the descriptions known for this clique.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions