Skip to content

Commit 3dee789

Browse files
committed
Add strain field to subject metadata and corresponding test case
1 parent 2827711 commit 3dee789

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

dandi/consts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"genotype",
2828
"sex",
2929
"species",
30+
"strain",
3031
"subject_id",
3132
)
3233

dandi/tests/fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def simple2_nwb(
110110
date_of_birth=datetime(2016, 12, 1, tzinfo=tzutc()),
111111
sex="U",
112112
species="Mus musculus",
113+
strain="C57BL/6J",
113114
),
114115
**simple1_nwb_metadata,
115116
)

dandi/tests/test_metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ def test_nwb2asset(simple2_nwb: Path) -> None:
898898
identifier="http://purl.obolibrary.org/obo/NCBITaxon_10090",
899899
name="Mus musculus - House mouse",
900900
),
901+
strain=StrainType(schemaKey="StrainType", name="C57BL/6J"),
901902
),
902903
],
903904
variableMeasured=[],

0 commit comments

Comments
 (0)