reconstruction.ecoli.scripts.metabolite_concentrations.merge_files

Merge two or more concentration flat files with a single row for each metabolite and empty entries for missing concentration data.

Usage with paths to tsv files to merge:

./merge_files [TSV1 TSV2 …]

reconstruction.ecoli.scripts.metabolite_concentrations.merge_files.load_conc(filename)[source]

Load concentration data from a tsv file. First column should be metabolite ID and second column should be concentration. Does not handle more than one concentration column at this point.

Parameters:

filename (str) – path to concentration tsv file

Returns:

header describing the concentration data conc: metabolite ID to concentration

Return type:

label

reconstruction.ecoli.scripts.metabolite_concentrations.merge_files.save_conc(conc)[source]

Save combined concentration data with blank entries for metabolites with unknown concentrations.

Parameters:

conc (List[Tuple[str, Dict[str, str]]]) – entries with header description and metabolite ID to concentration mapping

Return type:

None