MCPcopy
hub / github.com/openai/plugins / read_table

Function read_table

plugins/ngs-analysis/scripts/ngs_planner_utils.py:20–24  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

18
19
20def read_table(path: Path) -> tuple[list[dict[str, str]], list[str]]:
21 with path.open(newline="", encoding="utf-8") as handle:
22 reader = csv.DictReader(handle, delimiter=detect_delimiter(path))
23 rows = [{key: (value or "").strip() for key, value in row.items()} for row in reader]
24 return rows, list(reader.fieldnames or [])
25
26
27def resolve_path(raw: str | None, base: Path) -> Path | None:

Callers 10

validate_inputsFunction · 0.90
validate_inputsFunction · 0.90
validate_inputsFunction · 0.90
parse_bracken_tableFunction · 0.90
read_abundance_matrixFunction · 0.90
validate_inputsFunction · 0.90
read_feature_matrixFunction · 0.90
taxonomy_label_mapFunction · 0.90
validate_inputsFunction · 0.90
validate_inputsFunction · 0.90

Calls 1

detect_delimiterFunction · 0.70

Tested by

no test coverage detected