-
Notifications
You must be signed in to change notification settings - Fork 29
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
Clean up URL parsing in extract_species()
#1416
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1416 +/- ##
==========================================
+ Coverage 88.53% 88.61% +0.07%
==========================================
Files 77 77
Lines 10527 10528 +1
==========================================
+ Hits 9320 9329 +9
+ Misses 1207 1199 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
since otherwise while looking at the use not clear what that index is. May be later it would be even some other level (but still the same template) than species so best to just mention that it is NCBITAXON URL === Do not change lines below === { "chain": [], "cmd": "git-sedi SPECIES_URI_TEMPLATE NCBITAXON_URI_TEMPLATE", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
@@ -329,66 +329,68 @@ def extract_cellLine(metadata: dict) -> str | None: | |||
return None | |||
|
|||
|
|||
NCBITAXON_URI_TEMPLATE = "http://purl.obolibrary.org/obo/NCBITaxon_{}" |
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.
pushed a renaming for that template variable. If really don't like it -- revert, but I think that it is better when more specific like this
🚀 PR was released in |
yarl doesn't really seem like it would help with this bit, but I came up with a different way to make the code arguably cleaner.