Biomass reaction table importer
Import file to Biomass reaction table
BiomassReactionTableImporter class
Allows to import a csv
or xls
file and create a BiomassReactionTable
resource object.
The BiomassReactionTable
is a stoichiometry table describing the composition of a cell (or organism) biomass.
Input
Output
Configuration
file_format
File format
string
auto
xlsx
xls
csv
tsv
tab
txt
auto
delimiter
Delimiter character. Only for parsing CSV files
string
auto
tab
space
,
;
auto
header
Row to use as the column names. By default the first row is used (i.e. header=0). Set header=-1 to not read column names.
int
format_header_names
If true, the column and row names are formatted to remove special characters and spaces (only '_' are allowed).
bool
index_column
Column to use as the row names. By default no index is used (i.e. index_column=-1).
int
-1
decimal
Character to recognize as decimal point (e.g. use ‘,’ for European/French data).
string
.
nrows
Number of rows to import. Useful to read piece of data.
int
comment
Character used to comment lines. Set empty to disable comment lines.
string
#
encoding
Encoding of the file, 'auto' for automatic detection.
string
auto
metadata_columns
Columns data to use to tag the rows of the table
List
-1
column
Metadata column to use to tag rows
string
keep_in_table
Set True to keep the column in the final table; False otherwise
bool
entity_column
The name of the column containing the entities
string
entity
chebi_column
The name of the column containing CheBI ID of the entities. Not all entities have CheBI IDs
string
chebi_id
biomass_column
The name of the column containing the coefficients of the biomass equation
string
biomass