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

Utility function to list available Ensembl versions for species #21

Merged
merged 10 commits into from
Apr 27, 2023

Conversation

emdann
Copy link
Member

@emdann emdann commented Apr 27, 2023

Closes #17 and #16

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2023

Codecov Report

Merging #21 (cb17ef0) into main (abad9e6) will decrease coverage by 4.59%.
The diff coverage is 88.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
- Coverage   95.65%   91.07%   -4.59%     
==========================================
  Files           4        4              
  Lines          23       56      +33     
==========================================
+ Hits           22       51      +29     
- Misses          1        5       +4     
Impacted Files Coverage Δ
src/genomic_features/ensembl/ensembldb.py 89.36% <88.23%> (-3.50%) ⬇️
src/genomic_features/ensembl/__init__.py 100.00% <100.00%> (ø)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@emdann emdann requested a review from ivirshup April 27, 2023 11:31
src/genomic_features/ensembl/ensembldb.py Outdated Show resolved Hide resolved
Comment on lines 90 to 97
version_table = version_table[
version_table["rdatapath"].str.contains(f"EnsDb.{species}.v")
]
# check that species exists
if version_table.shape[0] == 0:
raise ValueError(
f"No Ensembl database found for {species}. Check species name."
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to get a list of available species as well. We could remove filtering by species and just return the full table?

@emdann emdann requested a review from ivirshup April 27, 2023 15:57
@ivirshup ivirshup merged commit c55c359 into main Apr 27, 2023
@ivirshup ivirshup mentioned this pull request May 3, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

List available dbs
3 participants