Imports raw SMETANA --detailed output (one TSV file per
consortium) into a ConsortiumMetabolism (single
file/data.frame) or ConsortiumMetabolismSet (directory of
files). The raw format has columns community, medium,
receiver, donor, compound, scs, mus, mps,
smetana, where each row describes a cross-feeding
interaction: donor produces compound, receiver
consumes it. This function collapses those directed
interactions into ramen's (species, metabolite, flux)
edge-list representation.
Arguments
- data
Either a file path to a single SMETANA TSV, a directory path containing multiple SMETANA TSVs, or a pre-loaded data.frame with the required columns (
receiver,donor,compound, andsmetanaifuse_scores = TRUE).- name
Consortium (or set) name as a length-1 character scalar. If
NULL(default), names are derived from the input filename(s) by stripping the.tsv_detailed.tsvsuffix. Required whendatais a data.frame. Ifdatais a directory,nameis passed through toConsortiumMetabolismSet().- use_scores
If
FALSE, flux is binary (+1 for production, -1 for consumption). IfTRUE(default), flux magnitude is the SMETANA score, aggregated bymax()when the same (species, compound) pair appears across multiple interaction partners.- normalize_ids
If
TRUE(default), normalize compound IDs via.normalizeBiggIds()(stripsM_prefix and_ecompartment suffix).- verbose
If
TRUE(default), emit progress messages via cli progress messages.