Closed turbomam closed 2 years ago
But these are the only lost MIxS slots that the current nmdc-schema associates with biosamples:
['env_package', 'tot_nitro_content_meth', 'water_content_soil_meth']
And none of those even appear in the mongodb biosample_set!
See https://github.com/microbiomedata/nmdc-schema/blob/issue-291-mixs-submod/util/reconsititute_mixs.py
https://github.com/GenomicsStandardsConsortium/mixs/issues/84 suggests replacements for two of thsoe
tot_nitro_cont_meth
water_cont_soil_meth
I have requested the re-addition of env_package
:
We can add it directly to the nmdc-schema in the meantime: https://github.com/GenomicsStandardsConsortium/mixs/issues/387
Here's a starting point for discussing a new MIxS 6 dynamic import into the nmdc-schema:
src/schema/mixs_6_for_nmdc.yaml
, in the issue-291-mixs-submod
branch
It's built by https://github.com/microbiomedata/nmdc-schema/blob/issue-291-mixs-submod/util/reconsititute_mixs.py, which needs refactoring
Filenames, schema names and IDs etc can all be changed.
Is this sufficient for declaring that a slot comes from MIxS?
slots:
SLOTNAME:
from_schema: http://w3id.org/mixs/terms
get rid of empty examples etc.
compare ranges between old MIxS 5 and new MIxS 6 files, especially looking for things like quantity value
deepdiff?
funny looking wall_texture_enum
PVs
wall_texture_enum:
name: wall_texture_enum
from_schema: http://w3id.org/mixs/terms
permissible_values:
crows feet:
text: crows feet
crows-foot stomp:
text: crows-foot stomp
? ''
: text: ''
also
host_specificity_enum
env_package
from MIxS 5-based src/schema/mixs.yaml
sure looks like an enum
range: text value
pattern: '[air|built environment|host\-associated|human\-associated|human\-skin|human\-oral|human\-gut|human\-vaginal|hydrocarbon
resources\-cores|hydrocarbon resources\-fluids\/swabs|microbial mat\/biofilm|misc
environment|plant\-associated|sediment|soil|wastewater\/sludge|water]'
nmdc-schema
namespaces, prefixes etc are a mess. element URLs are unsolvable.
from_schema
for env_package
from (MIxS 5-based) src/schema/mixs.yaml
: https://microbiomedata/schema/mixs
for moving away from the old static-ish MIxS 5 mixs.yaml
MIxS isn't available through w3id yet, and the LinkML YAML files aren't bundled with the PyPI package yet: