How to use the pyensembl.species.find_species_by_name function in pyensembl

To help you get started, we’ve selected a few pyensembl examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openvax / pyensembl / pyensembl / ensembl_url_templates.py View on Github external
def normalize_release_properties(ensembl_release, species):
    """
    Make sure a given release is valid, normalize it to be an integer,
    normalize the species name, and get its associated reference.
    """
    ensembl_release = check_release_number(ensembl_release)
    if not isinstance(species, Species):
        species = find_species_by_name(species)
    reference_name = species.which_reference(ensembl_release)
    return ensembl_release, species.latin_name, reference_name
github openvax / pyensembl / pyensembl / reference_name.py View on Github external
def which_reference(species_name, ensembl_release):
    return find_species_by_name(species_name).which_reference(ensembl_release)