MCPcopy Index your code
hub / github.com/openai/plugins / first_present

Function first_present

plugins/ngs-analysis/scripts/run_amplicon_microbiome.py:117–122  ·  view source on GitHub ↗
(row: dict[str, str], names: list[str])

Source from the content-addressed store, hash-verified

115
116
117def first_present(row: dict[str, str], names: list[str]) -> str | None:
118 for name in names:
119 value = row.get(name)
120 if value:
121 return value
122 return None
123
124
125def build_qiime2_plan(

Callers 1

validate_inputsFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected