nadeemlab / SPT

Spatial profiling toolbox for spatial characterization of tumor immune microenvironment in multiplex images
https://oncopathtk.org
Other
21 stars 2 forks source link

Support normalized case for study names #317

Closed jimmymathews closed 1 month ago

jimmymathews commented 6 months ago

For better flexibility on the frontend side, let's make the API handlers support lower-cased normalized versions of the study names throughout. This is probably as simple as updating the _retrieve_study_database method to look for a match rather than an exact match (as is done now).

jimmymathews commented 6 months ago

This will also fix the errors associated with the occasional unexplained lowercasing. As seen by the API server recently, e.g.:

ValueError: Study name invalid: "head and neck mpif ..."