laminlabs / bionty-base

Access public biological ontologies.
https://bionty-base.lamin.ai
Apache License 2.0
16 stars 2 forks source link

Implement BiontyField #353

Closed Zethson closed 1 year ago

Zethson commented 1 year ago
class BiontyField():

    def __init__(parent: Entity, name: str):
            self.parent = parent
            self.name = name

    def __repr__():
            return self.name

# rename Entity to Bionty
class Bionty:
        def __init__():
                for col_name in self.df().columns:
                        setattr(self, col_name, BiontyField(self, col_name))