Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fruit fly to species #282

Merged
merged 2 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion pyensembl/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def normalize_species_name(name):
def find_species_by_name(species_name):
latin_name = normalize_species_name(species_name)
if latin_name not in Species._latin_names_to_species:
raise ValueError("Species not found: %s" % species_name)
raise ValueError("Species not found: %s, for non-Ensembl data see https://github.com/openvax/pyensembl#non-ensembl-data" % (species_name,))
return Species._latin_names_to_species[latin_name]


Expand Down Expand Up @@ -264,3 +264,14 @@ def check_species_object(species_name_or_object):
latin_name="sus_scrofa",
synonyms=["pig"],
reference_assemblies={"Sscrofa11.1": (75, MAX_ENSEMBL_RELEASE)})

fly = Species.register(
latin_name="drosophila_melanogaster",
synonyms=["drosophila", "fruit fly", "fly"],
reference_assemblies={
"BDGP5": (75, 78),
"BDGP6": (79, 95),
"BDGP6.22": (96, 98),
"BDGP6.28": (99, 102),
"BDGP6.32": (103, MAX_ENSEMBL_RELEASE)
})
2 changes: 1 addition & 1 deletion pyensembl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.2.6'
__version__ = '2.2.7'