Skip to content

Commit

Permalink
Merge pull request #1276 from dandi/c_elegans
Browse files Browse the repository at this point in the history
C elegans
  • Loading branch information
bendichter authored Apr 17, 2023
2 parents f03e3eb + 30da484 commit c23c4ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dandi/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,12 @@ def extract_cellLine(metadata: dict) -> Optional[str]:
"http://purl.obolibrary.org/obo/NCBITaxon_7955",
"Danio rerio - Zebra fish",
),
(
["c. elegans", "caenorhabditis elegans"],
"caenorhabditis",
"http://purl.obolibrary.org/obo/NCBITaxon_6239",
"Caenorhabditis elegans",
),
]


Expand Down
8 changes: 8 additions & 0 deletions dandi/tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
parse_purlobourl,
prepare_metadata,
process_ndtypes,
species_map,
timedelta2duration,
)
from ..misctypes import DUMMY_DANDI_ETAG
Expand Down Expand Up @@ -497,6 +498,13 @@ def test_species():
}


def test_species_map():
# all alternative names should be lower case
for common_names, *_ in species_map:
for key in common_names:
assert key.lower() == key


@pytest.mark.parametrize(
"ndtypes,asset_dict",
[
Expand Down

0 comments on commit c23c4ce

Please sign in to comment.