cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
91 stars 23 forks source link

Schema not loading in DataHarmonizer (only Chrome and Edge; Firefox working) #402

Closed jannikseidelQBiC closed 1 year ago

jannikseidelQBiC commented 1 year ago

Dear developers of the DataHarmonizer, first of all, thank you for your great work!

I have an issue with loading my self-developed schema with Chrome and Edge (tested on MacOS (ARM) and Windows 11(Intel)). The schema does not load with the mentioned browsers (except Firefox, there everything is working). The yaml-file is approx. 39 MB and the schema.json approx. 44 MB, so quiet large. I put a few ontologies (the largest is ChEBI, where I only used leaf nodes of the obo graph) into the DataHarmonizer schema as controlled vocabulary.

Could you tell me if someone has the same problem and possible solutions? (And if it is a DataHarmonizer problem or a browser issue)

Thanks in advance

jannikseidelQBiC commented 1 year ago

The large ontology as controlled vocabulary was the problem. Might be of interest for others :)

ddooley commented 1 year ago

Ok, thanks for this update. So you were able to load a smaller version of your schema? It sounds like to a small schema with "larger" enumerations to work we would need to implement dynamic lookup of terms for enumeration selection lists?

jannikseidelQBiC commented 1 year ago

Right, I threw out the validation of chemicals and it worked just fine. It could be that dynamic lookup would solve the problem, I think it would make the insertion of terms smoother (it took up to 15 seconds to load the dialog in firefox). This is also an interesting point: Why did it work with firefox but not with chrome/edge/safari? I didn't find an answer to that point.