Output¶
write_cytoscape(predictions: list, path: str | Path) -> None
¶
Write Cytoscape-compatible SIF format.
Writes rows as: source \t pp \t target where pp indicates a phosphorylation interaction. Weighted by NetworKIN score.
Source code in src/pynetworkin/output.py
write_output(predictions: list, path: str | Path, fmt: str = 'tsv') -> None
¶
Dispatcher — call write_tsv or write_cytoscape based on fmt.
Source code in src/pynetworkin/output.py
write_tsv(predictions: list, path: str | Path) -> None
¶
Write predictions to a tab-separated file.
Columns follow STANDARD_COLUMNS order. Missing optional fields are filled with None.