-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
Codecov Report
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
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
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." | ||
) |
There was a problem hiding this comment.
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?
Co-authored-by: Isaac Virshup <[email protected]>
Closes #17 and #16