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

Function read_table

plugins/ngs-analysis/scripts/run_fastq_assay_package.py:141–145  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

139
140
141def read_table(path: Path) -> tuple[list[dict[str, str]], list[str]]:
142 with path.open(newline="", encoding="utf-8") as handle:
143 reader = csv.DictReader(handle, delimiter=detect_delimiter(path))
144 rows = [{key: (value or "").strip() for key, value in row.items()} for row in reader]
145 return rows, list(reader.fieldnames or [])
146
147
148def first_present(row: dict[str, str], names: list[str]) -> str:

Callers 7

normalize_samplesFunction · 0.70
read_seqkit_stats_fileFunction · 0.70
read_multiqc_tableFunction · 0.70
read_feature_count_tableFunction · 0.70
read_taxonomy_mapFunction · 0.70
read_bracken_tableFunction · 0.70

Calls 1

detect_delimiterFunction · 0.70

Tested by

no test coverage detected