The argument of protein.length
, if it is character, refers to the name of protein(s) (e.g., LYSC_CHICK) for which to calculate the length (number of amino acid residues). If the argument is numeric, it refers to the species index of a protein (value in thermo$species$ispecies
). For a positive numeric argument to work, the protein information must have been previously loaded into the species list (using info
). If the numeric value is negative, it refers to the rownumber of the protein in thermo$protein
.
MP90.cp
takes T
(one or more temperatures in $^{\circ}$C) and protein
(name of protein) and returns the heat capacity of the unfolded protein using values of heat capacities of the residues taken from Makhatadze and Privalov, 1990. Those authors provided values of heat capacity at six points between 5 and 125 $^{\circ}$C; this function interpolates (using splinefun
) values at other temperatures. dPdTtr
returns values of $(dP/dT)_{Ttr}$, where $Ttr$ represents the transition temperature, of the phase transition at the high-$T$ stability limit of the x
th species in thermo$obigt
(no checking is done to verify that the species represents in fact one phase of a mineral with phase transitions). dPdTtr
takes account of the Clapeyron equation, $(dP/dT)_{Ttr}$=${\Delta}S/{\Delta}V$, where ${\Delta}S$ and ${\Delta}V$ represent the changes in entropy and volume of phase transition, and are calculated using subcrt
at Ttr from the standard molal entropies and volumes of the two phases involved. Using values of dPdT
calculated using dPdTtr
or supplied in the arguments, Ttr
returns as a function of P
values of the upper transition temperature of the mineral phase represented by the x
th species.
describe
generates a textual representation of the temperature, pressure, and logarithms of activities of the basis species, given in the arguments by x
(i.e. the dataframe in thermo$basis
) and T
and P
(given in Kelvin and bar and converted by the function to those specified by nuts
). The digits
argument tells to what decimal place the logarithms of activities should be rounded. If any of the supplied arguments is NULL its specification is not printed in the output; T and P, if present, are prepended to the basis summary. If x
instead is a dataframe representing a chemical reaction (as output by subcrt
and identified by having a column named coeff
), the function returns a textual summary of that reaction (i.e., showing reactants on the left, an equal sign, and products on the right; reactants and products are preceded by their reaction coefficient unless it is $1$). However, if only reactants or products can be found, or as.reaction
is set to FALSE, the names or formulas of the species are printed with their coefficients and interceding plus or minus signs, as appropriate. Whether the names or formulas are printed is controlled by use.name
(FALSE
by default), a logical vector the length of which corresponds to the number of rows in x
(but is expanded to the right length if needed).
basis.comp
calculates the composition of the given
nonideal
takes a list of dataframes (in proptable
) containing the standard molal properties of the identified species
. For those species whose charge (determined by the number of Z in their makeup
) is not equal to zero, the values of IS
are combined with Alberty's (2003) equation 3.6-1 (Debye-Huckel equation) and its derivatives, to calculate apparent molal properties at the specified ionic strength(s) and temperature(s). The lengths of IS
and T
supplied in the arguments should be equal to the number of rows of each dataframe in proptable
, or one to use single values throughout. The apparent molal properties that can be calculated include G
, H
, S
and Cp
; any columns in the dataframes of proptable
with other names are left untouched. A column named loggam
(logarithm of gamma, the activity coefficient) is appended to the output dataframe of species properties.
which.balance
returns, in order, which column(s) of species
all have non-zero values. It is used by diagram
and transfer
to determine a conservant (i.e. basis species that are conserved in transformation reactions) if none is supplied by the user.
spearman
calculates Spearman's rank correlation coefficient for a
and b
.
unitize
scales the logarithms of activities given in logact
so that the logarithm of total activity of residues is equal to zero (i.e. total activity of residues is one), or to some other value set in logact.tot
. length
indicates the number of residues in each species. If logact
is NULL, the function takes the logarithms of activities from the current species definition. If any of those species are proteins, the function gets their lengths using protein.length
.
caller.name
returns the name of the calling function n
frames up (i.e., for n
equal to 2, the caller of the function that calls this one). If called interactively, returns character().