Skip to main content

parse_compounds_tsv

Function parse_compounds_tsv 

Source
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

§Cancellation

When cancel is set, returns ParseError::Cancelled at the next non-empty data-line boundary (header is still validated first).