Skip to content

Commit

Permalink
Update species.py
Browse files Browse the repository at this point in the history
Commit message: Change pig synonym to pork to avoid error

In the Species.register function call, replace the 'pig' synonym with 'pork' to prevent the ValueError raised due to synonym conflict.
  • Loading branch information
pamonlan authored Apr 8, 2024
1 parent ad206e3 commit b23a423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyensembl/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def check_species_object(species_name_or_object):

pig = Species.register(
latin_name="sus_scrofa",
synonyms=["pig"],
synonyms=["pok",],
reference_assemblies={"Sscrofa11.1": (75, MAX_ENSEMBL_RELEASE)},
)

Expand Down Expand Up @@ -369,4 +369,4 @@ def check_species_object(species_name_or_object):
"IRGSP-1.0": (40, MAX_PLANTS_ENSEMBL_RELEASE),
},
is_plant=True
)
)

0 comments on commit b23a423

Please sign in to comment.