MCPcopy Create free account
hub / github.com/openai/plugins / write_tsv

Function write_tsv

plugins/ngs-analysis/scripts/ngs_planner_utils.py:36–43  ·  view source on GitHub ↗
(path: Path, rows: list[dict[str, Any]], fieldnames: list[str])

Source from the content-addressed store, hash-verified

34
35
36def write_tsv(path: Path, rows: list[dict[str, Any]], fieldnames: list[str]) -> None:
37 path.parent.mkdir(parents=True, exist_ok=True)
38 with path.open("w", newline="", encoding="utf-8") as handle:
39 writer = csv.DictWriter(
40 handle, fieldnames=fieldnames, delimiter="\t", extrasaction="ignore"
41 )
42 writer.writeheader()
43 writer.writerows(rows)
44
45
46def shell_join(cmd: list[str | Path]) -> str:

Callers 15

write_outputsFunction · 0.90
write_outputsFunction · 0.90
write_matrixFunction · 0.90
write_humann_matrixFunction · 0.90
write_top_rowsFunction · 0.90
write_outputsFunction · 0.90
write_outputsFunction · 0.90
write_qiime2_manifestFunction · 0.90
write_track_outputsFunction · 0.90
summarize_motif_outputsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected