thermo$obigt) or in the buffer definition table (thermo$buffer).add.obigt(file="obigt.csv", force = FALSE)
mod.obigt(species, ..., missingvalues = NA)
add.protein(file="protein.csv")
change(name, ...)
danger()obigt, protein and buffer dataframes in the global thermo list.add.protein and add.obigt read data from the specified file and add it to either thermo$protein or thermo$obigt, as appropriate. Set force to true to replace species that exist in the thermodynamic database (each unique combination of a name and a state in the database is considered to be a unique species). mod.obigt changes one or more of the properties of one or more species or adds species to the thermodynamic database. These changes are lost if you reload the database by calling data(thermo) or if you quit the Rsession without saving it. To modify the properties of species, give the names in the species argument and supply other arguments: if one of these arguments is state, species in those states will be updated. Additional arguments refer to the name of the property(s) to be updated and correspond to the column names of thermo$obigt (the names of the properties are matched to any part of compound column names, such as z.T). The values provided should be in the units specifed in the documentation for the thermo data object. To add species, supply the new names in species and provide an argument named formula with the corresponding chemical formulas. Additional arguments refer to any of the properties you wish to specify. Properties that are not specified are assigned the value of missingvalues which is NA by default (however if state is missing it is set to the value of thermo$opt$state). The values returned (invisible-y) by mod.obigt are the rownumbers of the affected species.
change is a wrapper function to mod.obigt and mod.buffer. The name provided in the argument refers to the name or numeric index of the species to update or add using mod.obigt, unless the name begins with an underscore character, in which case the remaining part of the name (after the underscore) is passed to mod.buffer. The arguments in ... are sent without change to the subordinate function.
danger is used to load the supplementary thermodynamic database in OBIGT-2.csv. These data entries are from unpublished material (e.g., the crystalline protein group contributions) and/or are possibly inconsistent with the primary thermodynamic database. Some of the entries in OBIGT-2.csv actually replace those in the default database. Loading the supplementary species with danger permits them to be used in any subsequent calculations with diagram.
mod.buffer for updated the list of available buffers.data(thermo)
## modify/add species
info(t <- info("alanine","cr"))
mod.obigt("alanine",state="cr",G=0,H=0,S=0)
# now the values of G, H, and S are inconsistent
# with the elemental composition of alanine
info(t)
# add a species
mod.obigt("myspecies",formula="CHNOSZ",G=0,H=0)
info(t <- info("myspecies"))Run the code above in your browser using DataLab