-
Notifications
You must be signed in to change notification settings - Fork 2
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
eQTL catalog IDs are not URL-safe #3619
Comments
At the moment, this is not a bug in the PPP preview. The error happens in our local development environment; we cannot directly navigate to these pages because the development dev server responds with an error "bad URL provided." As I can understand from the dev error and quick research, the cause is when there are double |
When using standard urllib method in Python the the URL safe ids look like this:
Problematic characters are converted to their URL encoded form. eg |
Update: After review-ing the resulting dataset after applying Python's built-in URL sanitser, it was clear that this approach would cause more pain in the long run, so decided to remove all non-alphanumeric characters (and |
As reported by @carcruz, some study identifiers derived from the eQTL catalogue are not URL-safe.
For example:
https://ot-platform-partner.netlify.app/study/Sun_2018_aptamer_plasma_TNFRSF1A.2654.19.1..1
Currently, this is causing some processes to crash in localhost, but it's not a problem when deployed. Therefore, it's not a critical priority, but turning these IDs into URL-safe would be beneficial to avoid future surprises.
@carcruz can you confirm the
.
are the offending characters?The text was updated successfully, but these errors were encountered: