NOAA-Omics / noaa-omics-templates

Documentation for study data templates developed by NOAA Omics
https://noaa-omics-templates.readthedocs.io
GNU Affero General Public License v3.0
2 stars 1 forks source link

How to handle units in MIMARKS template for Opal integration? #5

Open lukenoaa opened 7 months ago

lukenoaa commented 7 months ago

Current idea is:

@Zenith2198 @ksilnoaa

ksilnoaa commented 7 months ago

I like this strategy, as it allows flexibility in how users use the template. Bullet point 3 could be done with regex or something similar in Opal.

Zenith2198 commented 7 months ago

Where would the recommended units be listed? Potentially can be in a separate info page, but I wouldn't want to flood our UI with it where you'd normally go to upload.

I think converting to a standardized unit is a solid choice. I will definitely need more information on what unit we want to use for each field, and (potentially) how to convert certain unique units.

Also, verifying that the given units are valid will be a nightmare if we allow users to use arbitrary units. Not impossible, just will either have to be hardcoded or utilize some library.