from openbiolink.graph_creation.metadata_db_file.edge.dbMetadataEdge import DbMetadataEdge
from openbiolink.graph_creation.types.dbType import DbType


class DbMetaEdgeHpoDis(DbMetadataEdge):
    NAME = "Edge - HPO - Disease Phenotype"
    URL = "http://purl.obolibrary.org/obo/hp/hpoa/phenotype_annotation.tab"
    OFILE_NAME = "HPO_disease_phenotype.tab"
    COLS = [
        "DB",
        "DOI",
        "DBname",
        "qulifier",
        "HPO_ID",
        "DB_ref",
        "evidence_code",
        "onsetMod",
        "freq",
        "sex",
        "mod",
        "aspect",
        "date",
        "assigned_by",
    ]
    FILTER_COLS = ["DB", "DOI", "HPO_ID", "evidence_code"]
    HEADER = 0
    DB_TYPE = DbType.DB_EDGE_HPO_DIS

    def __init__(self):
        super().__init__(
            url=DbMetaEdgeHpoDis.URL, ofile_name=DbMetaEdgeHpoDis.OFILE_NAME, dbType=DbMetaEdgeHpoDis.DB_TYPE
        )
