Skip to content

Commit

Permalink
Merge pull request #626 from microbiomedata/issue-574-samp-taxon
Browse files Browse the repository at this point in the history
add `samp_taxon_id` slot to MIxS schema
  • Loading branch information
sujaypatil96 committed Jan 23, 2023
2 parents 3449ae1 + 7f9d2c2 commit e1f3c73
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/schema/mixs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ notes:
prefixes:
nmdc: https://w3id.org/nmdc/
mixs: https://w3id.org/mixs/

NCBITaxon: https://ontobee.org/ontology/NCBITaxon

default_prefix: nmdc

Expand Down Expand Up @@ -7335,6 +7335,10 @@ slots:
slot_uri: mixs:0000813
multivalued: false
range: TextValue
investigation field:
abstract: true
description: field describing aspect of the investigation/study to which the sample
belongs
iw_bt_date_well:
name: iw_bt_date_well
aliases:
Expand Down Expand Up @@ -10882,6 +10886,24 @@ slots:
slot_uri: mixs:0000999
multivalued: false
range: TextValue
samp_taxon_id:
is_a: investigation field
title: Taxonomy ID of DNA sample
description: NCBI taxon id of the sample. May be a single taxon or mixed taxa
sample. Use 'synthetic metagenome' for mock community/positive controls,
or 'blank sample' for negative controls.
range: string
multivalued: false
examples:
- value: soil metagenome [NCBITaxon:410658]
comments: []
todos:
- "structured pattern: {text} [NCBITaxon:{integer}]"
aliases:
- Taxonomy ID of DNA sample
annotations:
expected_value: Taxonomy ID
slot_uri: mixs:0001320
samp_time_out:
name: samp_time_out
aliases:
Expand Down
1 change: 1 addition & 0 deletions src/schema/nmdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ classes:
- samp_mat_process
- samp_store_dur
- samp_store_loc
- samp_taxon_id
- samp_store_temp
- samp_vol_we_dna_ext
- season_temp
Expand Down
4 changes: 4 additions & 0 deletions test/data/biosample_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"location": "from the Lithgow State Coal Mine, New South Wales, Australia",
"mod_date": "26-AUG-16 01.50.27.000000000 PM",
"ncbi_taxonomy_name": "coal metagenome",
"samp_taxon_id": "coal metagenome [NCBITaxon:1260732]",
"sample_collection_site": "Lithgow State Coal Mine"
},
{
Expand Down Expand Up @@ -102,6 +103,7 @@
"location": "from the Lithgow State Coal Mine, New South Wales, Australia",
"mod_date": "26-AUG-16 01.50.27.000000000 PM",
"ncbi_taxonomy_name": "coal metagenome",
"samp_taxon_id": "coal metagenome [NCBITaxon:1260732]",
"sample_collection_site": "Lithgow State Coal Mine"
},
{
Expand Down Expand Up @@ -152,6 +154,7 @@
"location": "from the Lithgow State Coal Mine, New South Wales, Australia",
"mod_date": "26-AUG-16 01.50.27.000000000 PM",
"ncbi_taxonomy_name": "coal metagenome",
"samp_taxon_id": "coal metagenome [NCBITaxon:1260732]",
"sample_collection_site": "Lithgow State Coal Mine"
},
{
Expand Down Expand Up @@ -202,6 +205,7 @@
"location": "from the Lithgow State Coal Mine, New South Wales, Australia",
"mod_date": "26-AUG-16 01.50.27.000000000 PM",
"ncbi_taxonomy_name": "coal metagenome",
"samp_taxon_id": "coal metagenome [NCBITaxon:1260732]",
"sample_collection_site": "Lithgow State Coal Mine"
}
]
Expand Down

0 comments on commit e1f3c73

Please sign in to comment.