Skip to content

Commit a569a2c

Browse files
committed
Temporarily disable the requirement that phenotypic assay mechanism keywords have a Gene Ontology code.
We are populating curated pillar project metadata, and the curated data set uses other codes. Initially, terms in this vocabulary will not have codes, but we will soon revise the vocabulary items to add GO codes or others as appropriate.
1 parent fe06b4a commit a569a2c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/mavedb/lib/validation/keywords.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66

77

88
def validate_code(key: str, label: str, code: Optional[str]):
9-
if key.lower() == "phenotypic assay mechanism" and label.lower() != "other":
10-
# The Gene Ontology accession is a unique seven digit identifier prefixed by GO:.
11-
# e.g. GO:0005739, GO:1904659, or GO:0016597.
12-
if code is None or not re.match(r"^GO:\d{7}$", code):
13-
raise ValidationError("Invalid Gene Ontology accession.")
9+
# TODO Re-enable this when we have GO codes for all phenotypic assay mechanisms.
10+
pass
11+
# if key.lower() == "phenotypic assay mechanism" and label.lower() != "other":
12+
# # The Gene Ontology accession is a unique seven digit identifier prefixed by GO:.
13+
# # e.g. GO:0005739, GO:1904659, or GO:0016597.
14+
# if code is None or not re.match(r"^GO:\d{7}$", code):
15+
# raise ValidationError("Invalid Gene Ontology accession.")
1416

1517

1618
# TODO: label will not be Optional when we confirm the final controlled keyword list.

0 commit comments

Comments
 (0)