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
Allow `getDataObjects` to include data that doesn't conform to column types #352
This adds a strict option to both DataHarmonizer.getDataObjects and the dataArrayToObject utility function in fields.js. If strict is true (the default if not provided) there is no change in behavior. If strict is false column datatypes are not used to parse table values. This means that the value "xyz" will be included even if it was entered in an integer column. Necessarily, all values will be strings if strict is false.
This adds a
strict
option to bothDataHarmonizer.getDataObjects
and thedataArrayToObject
utility function infields.js
. Ifstrict
istrue
(the default if not provided) there is no change in behavior. Ifstrict
isfalse
column datatypes are not used to parse table values. This means that the value "xyz" will be included even if it was entered in an integer column. Necessarily, all values will be strings ifstrict
isfalse
.Fixes #350