diff --git a/bionty/sources/sources.yaml b/bionty/sources/sources.yaml index bada0388..8ab3a7f2 100644 --- a/bionty/sources/sources.yaml +++ b/bionty/sources/sources.yaml @@ -1,13 +1,25 @@ -version: "0.2.2" +version: "0.2.3" Species: ensembl: - vertebrate: + vertebrates: release-110: url: https://ftp.ensembl.org/pub/release-110/species_EnsemblVertebrates.txt release-109: url: https://ftp.ensembl.org/pub/release-109/species_EnsemblVertebrates.txt release-108: url: https://ftp.ensembl.org/pub/release-108/species_EnsemblVertebrates.txt + bacteria: + release-57: + url: https://ftp.ensemblgenomes.ebi.ac.uk/pub/bacteria/release-57/species_EnsemblBacteria.txt + fungi: + release-57: + url: http://ftp.ensemblgenomes.org/pub/fungi/release-57/species_EnsemblFungi.txt + metazoa: + release-57: + url: http://ftp.ensemblgenomes.org/pub/metazoa/release-57/species_EnsemblMetazoa.txt + plants: + release-57: + url: https://ftp.ensemblgenomes.ebi.ac.uk/pub/plants/release-57/species_EnsemblPlants.txt name: Ensembl website: https://www.ensembl.org Gene: diff --git a/tests/entities/test_species.py b/tests/entities/test_species.py index 139799b0..cee9ab29 100644 --- a/tests/entities/test_species.py +++ b/tests/entities/test_species.py @@ -3,7 +3,7 @@ import bionty as bt -def test_ensemble_species_inspect_name(): +def test_ensembl_species_inspect_name(): df = pd.DataFrame( index=[ "spiny chromis", @@ -21,3 +21,9 @@ def test_ensemble_species_inspect_name(): expected_series = pd.Series([True, True, True, True, False]) assert inspect.equals(expected_series) + + +def test_ensembl_species_species(): + for sp in ["bacteria", "plants", "fungi", "metazoa"]: + df = bt.Species(species=sp).df() + assert df.shape[0] > 10