Skip to content

Commit

Permalink
fix port for plants
Browse files Browse the repository at this point in the history
  • Loading branch information
mossjacob committed Nov 12, 2024
1 parent e75518c commit a1d2d6a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bionty/base/entities/_gene.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ def __init__(self, organism: str, version: str, kingdom: Literal['vertibrates',
self._organism = (
Organism(version=version, organism=kingdom).lookup().dict().get(organism) # type:ignore
)
port = 3306
if kingdom == "plants":
port = 4157
self._url = (
f"mysql+mysqldb://anonymous:@ensembldb.ensembl.org/{self._organism.core_db}"
f"mysql+mysqldb://anonymous:@ensembldb.ensembl.org:{port}/{self._organism.core_db}"
)
self._engine = create_engine(url=self._url)

Expand Down

0 comments on commit a1d2d6a

Please sign in to comment.