Skip to content

Adding a relationship between two terms #84

Closed
@neobernad

Description

@neobernad

Hi,

According to the docs I can see how I could create a relationship, however I do not manage to link two terms with a relationship. I would like to achieve something like:

ms: Ontology = pronto.Ontology.from_obo_library("ms.obo")
rel_is_a: Relationship = ms.get_relationship("is_a")
ms['MS:1000031'].relationships.set(rel_is_a, ms['MS:1001792'])

Is this possible somehow?

Thanks,
José Antonio

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn issue to request an enhancement, or a pull request implementing one.implementedEnhancement requests that were implemented in subsequent commits.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions