pub fn parse_compounds_tsv(
input: &[u8],
budgets: ParseBudgets,
release_label: &str,
cancel: &AtomicBool,
) -> Result<ParseReport, ParseError>Expand description
Parse ChEBI FTP-style compounds.tsv bytes into accepted records and
quarantined rows.
§Format
Tab-separated, header row required:
ID STATUS CHEBI_ACCESSION SOURCE PARENT_ID NAME DEFINITION
(tabs between columns). Optional trailing columns are ignored.
§Budgets
- Whole input larger than
budgets.max_bytes→ParseError::ByteBudgetExceeded. - Any line longer than
budgets.max_line_bytes→ParseError::LineTooLong. - Accepted + quarantined count exceeding
max_records→ParseError::RecordBudgetExceeded.
§Cancellation
When cancel is set, returns ParseError::Cancelled at the next
non-empty data-line boundary (header is still validated first).