Class BrainKeywordMatcher
java.lang.Object
ubic.gemma.core.geoscrape.BrainKeywordMatcher
- All Implemented Interfaces:
GeoRecordMatcher
Cheesy v1 brain-related keyword matcher. Cross-checks the curated keyword
set against title / summary / sample details / MeSH headings.
If the supplied UberonOntologyService is loaded at first
evaluation, descendant term labels of UBERON:0000955 (brain) are folded
into the keyword set. Otherwise the curated set alone is used — Uberon
isn't loaded in unit-test contexts.
v2 will replace this with a curation-agent pass + gene-set-fetch skill
output; see GeoRecordMatcher javadoc.
-
Nested Class Summary
Nested classes/interfaces inherited from interface GeoRecordMatcher
GeoRecordMatcher.MatchResult -
Constructor Summary
ConstructorsConstructorDescriptionTest seam: no-arg constructor uses the curated set only. -
Method Summary
Modifier and TypeMethodDescriptionDecide whether this matcher flags the given record.name()Short, stable identifier — surfaces in REST request bodies (thecriteriaselector), the watermark'scriteriaAppliedcolumn, and the preboarded'smatchedCriteriaJSON.
-
Constructor Details
-
BrainKeywordMatcher
-
BrainKeywordMatcher
public BrainKeywordMatcher()Test seam: no-arg constructor uses the curated set only.
-
-
Method Details
-
name
Description copied from interface:GeoRecordMatcherShort, stable identifier — surfaces in REST request bodies (thecriteriaselector), the watermark'scriteriaAppliedcolumn, and the preboarded'smatchedCriteriaJSON. Lowercase, no whitespace (e.g."brain","tfperturb").- Specified by:
namein interfaceGeoRecordMatcher
-
evaluate
Description copied from interface:GeoRecordMatcherDecide whether this matcher flags the given record.- Specified by:
evaluatein interfaceGeoRecordMatcher
-