althonos / althonos/pronto

How to delete terms in ontology?

Offen
#137 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Python
Sterne
267
Forks
48
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hi,
I've read the documentation quite extensively, yet I haven't found any method or function to delete a term from an ontology.
For example:
```python
from pronto import Ontology
go = Ontology("http://purl.obolibrary.org/obo/go.obo")
```
If I try
```python
del go['GO:0000001']
```
I get:
```python
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in
----> 1 del go['GO:0000001']

TypeError: 'Ontology' object does not support item deletion
```

Is there any way to achieve item deletion?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.