Skip to content

Commit

Permalink
Add example for using Manifest class
Browse files Browse the repository at this point in the history
  • Loading branch information
kheal committed Oct 23, 2024
1 parent b6813a1 commit ea872c8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/data/valid/Database-mass_spectrometry_gc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@ data_generation_set:
analyte_category: metabolome
associated_studies:
- nmdc:sty-00-555xxx
in_manifest:
- nmdc:manif-99-krhtest #defined below
- id: nmdc:dgms-99-oW43DzG2
type: nmdc:MassSpectrometry
has_input:
- nmdc:procsm-11-9gjxns62 #random example process sample
has_output:
- nmdc:dobj-11-9n9n91 #randome example data object
has_mass_spectrometry_configuration: nmdc:mscon-99-oW43DzG0 #defined below
has_chromatography_configuration: nmdc:chrcon-99-oW43DzG1 #defined below
eluent_introduction_category: gas_chromatography
has_calibration: nmdc:calib-99-zUCd5Q #defined below
analyte_category: metabolome
associated_studies:
- nmdc:sty-00-555xxx
in_manifest:
- nmdc:manif-99-krhtest #defined below
manifest_set:
- id: nmdc:manif-99-krhtest
type: nmdc:Manifest
collection_type: instrument_run

calibration_set:
- id: nmdc:calib-99-zUCd5Q
Expand Down Expand Up @@ -53,4 +74,8 @@ data_object_set:
url: https://emsl_site/example_gcms_emsl_run.raw #example url, not real
name: example_gcms_emsl_run.raw #example name
description: GCMS data file
file_size_bytes: 9208349052
file_size_bytes: 9208349052
#manifest_set:
# - id: nmdc:manif-99-krhtest
# type: nmdc:Manifest
# collection_type: instrument_run
7 changes: 7 additions & 0 deletions src/schema/nmdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ classes:
- functional_annotation_set
- genome_feature_set
- instrument_set
- manifest_set
- material_processing_set
- processed_sample_set
- protocol_execution_set
Expand Down Expand Up @@ -1136,6 +1137,12 @@ slots:
range: Configuration
description: This property links a database object to the set of configurations within it.

manifest_set:
#TODO KRH: Do I need a mix in here?
mixins: object_set
range: Manifest
description: This property links a database object to the set of manifests within it.

protocol_execution_set:
mixins: object_set
range: ProtocolExecution
Expand Down

0 comments on commit ea872c8

Please sign in to comment.