[CHNOSZ-commits] r171 - in pkg/CHNOSZ: . data inst inst/extdata/OBIGT man vignettes

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Feb 23 12:45:39 CET 2017


Author: jedick
Date: 2017-02-23 12:45:38 +0100 (Thu, 23 Feb 2017)
New Revision: 171

Modified:
   pkg/CHNOSZ/DESCRIPTION
   pkg/CHNOSZ/data/refs.csv
   pkg/CHNOSZ/inst/NEWS
   pkg/CHNOSZ/inst/extdata/OBIGT/Dick_aq.csv
   pkg/CHNOSZ/man/CHNOSZ-package.Rd
   pkg/CHNOSZ/man/protein.Rd
   pkg/CHNOSZ/man/util.data.Rd
   pkg/CHNOSZ/vignettes/anintro.Rmd
Log:
add (methyl)phenanthrene data from Dick et al., 2013


Modified: pkg/CHNOSZ/DESCRIPTION
===================================================================
--- pkg/CHNOSZ/DESCRIPTION	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/DESCRIPTION	2017-02-23 11:45:38 UTC (rev 171)
@@ -1,6 +1,6 @@
-Date: 2017-02-22
+Date: 2017-02-23
 Package: CHNOSZ
-Version: 1.0.8-60
+Version: 1.0.8-61
 Title: Chemical Thermodynamics and Activity Diagrams
 Author: Jeffrey Dick
 Maintainer: Jeffrey Dick <j3ffdick at gmail.com>

Modified: pkg/CHNOSZ/data/refs.csv
===================================================================
--- pkg/CHNOSZ/data/refs.csv	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/data/refs.csv	2017-02-23 11:45:38 UTC (rev 171)
@@ -11,9 +11,10 @@
 CHNOSZ,"J. M. Dick",2007,"CHNOSZ package documentation",http://chnosz.net
 CS16,"P. A. Canovas III and E. L. Shock",2016,"Geochim. Cosmochim. Acta 195, 293-322",http://dx.doi.org/10.1016/j.gca.2016.08.028
 CWM89,"J. D. Cox, D. D. Wagman and V. A. Medvedev, eds.",1989,"CODATA Key Values for Thermodynamics",http://www.worldcat.org/oclc/18559968
-Dic07,"J. M. Dick",2007,"Ph.D. Dissertation, U.C. Berkeley",
+DEH+13,"J. M. Dick, K. A. Evans et al.",2013,"Geochim. Cosmochim. Acta 122, 247-266",http://dx.doi.org/10.1016/j.gca.2013.08.020
 DLH06,"J. M. Dick, D. E. LaRowe and H. C. Helgeson",2006,"Biogeosciences 3, 311-336",http://dx.doi.org/10.5194/bg-3-311-2006
 DSM+97,"J. D. Dale, E. L. Shock et al.",1997,"Geochim. Cosmochim. Acta 61, 4017-4024",http://dx.doi.org/10.1016/S0016-7037(97)00212-3
+Dic07,"J. M. Dick",2007,"Ph.D. Dissertation, U.C. Berkeley",
 FDK+04,"P. M. B. Fernandes, T. Domitrovic et al.",2004,"FEBS Lett. 556, 153-160",http://dx.doi.org/10.1016/S0014-5793(03)01396-6
 GLL+98,"C. Godon, G. Lagniel et al.",1998,"J. Biol. Chem. 273, 22480-22489",http://dx.doi.org/10.1074/jbc.273.35.22480
 GM09,"K.-D. Grevel and J. Majzlan",2009,"Geochim. Cosmochim. Acta 73, 6805 - 6815",http://dx.doi.org/10.1016/j.gca.2009.08.005

Modified: pkg/CHNOSZ/inst/NEWS
===================================================================
--- pkg/CHNOSZ/inst/NEWS	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/inst/NEWS	2017-02-23 11:45:38 UTC (rev 171)
@@ -1,4 +1,4 @@
-CHANGES IN CHNOSZ 1.0.8-60 (2017-02-22)
+CHANGES IN CHNOSZ 1.0.8-61 (2017-02-23)
 ---------------------------------------
 
 DOCUMENTATION:
@@ -87,6 +87,9 @@
 - CHNOSZ_aq.csv: Add H4SiO4 pseudospecies (pseudo-H4SiO4); see calculations
   in eos-regress.Rmd.
 
+- Dick_aq.csv: Add data for aqueous phenanthrene and methylphenanthrene
+  from Dick et al., 2013.
+
 - Remove superseded data previously in OBIGT-2.csv: citric acid cycle
   metabolites from Dalla-Betta and Schulte, 2009.
 
@@ -99,8 +102,8 @@
   used in tests, examples, or vignettes, from OBIGT-2.csv to
   extdata/thermo (Ste01.csv and BZA10.csv).
 
-- Remove other conflicting datasets previously in OBIGT-2.csv, including
-  aluminum species from Tagirov and Schott, 2001.
+- Remove other conflicting datasets previously in OBIGT-2.csv (21
+  sources).
 
 - extdata: Add fasta/rubisco.fasta and cpetc/*.csv files SS98_Fig5a,
   SS98_Fig5b, PM90 (all used by anintro.Rmd).

Modified: pkg/CHNOSZ/inst/extdata/OBIGT/Dick_aq.csv
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/Dick_aq.csv	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/Dick_aq.csv	2017-02-23 11:45:38 UTC (rev 171)
@@ -93,3 +93,9 @@
 Gly-Tyr-Gly,GYG,C13H17N3O5,aq,DLH06,NA,10.Sep.11,NA,NA,NA,107.2,194.9,0,0,0,0,126.8,-17.2,-1.68,0
 Gly-Val-Gly,GVG,C9H17N3O4,aq,DLH06,NA,10.Sep.11,NA,NA,NA,104.9,160.3,0,0,0,0,111.8,-10.8,-1.65,0
 [GXGBB],NA,C6H10N3O4,aq,DLH06,NA,10.Sep.11,NA,NA,NA,30.9,103.2,0,0,0,0,52.6,-17.6,-1.54,0
+phenanthrene,NA,C14H10,aq,DEH+13,NA,13.Dec.12,300730,155570,246.9,447.3,161.6,NA,NA,NA,NA,NA,NA,NA,0
+1-methylphenanthrene,NA,C15H12,aq,DEH+13,NA,13.Dec.12,299310,128600,297.6,549.4,165.6,NA,NA,NA,NA,NA,NA,NA,0
+2-methylphenanthrene,NA,C15H12,aq,DEH+13,NA,13.Dec.12,293740,120150,287.9,539.8,171.1,NA,NA,NA,NA,NA,NA,NA,0
+3-methylphenanthrene,NA,C15H12,aq,DEH+13,NA,13.Dec.12,294290,120610,287.7,539.8,171.1,NA,NA,NA,NA,NA,NA,NA,0
+4-methylphenanthrene,NA,C15H12,aq,DEH+13,NA,13.Dec.12,330230,152660,274.6,569.2,177.6,NA,NA,NA,NA,NA,NA,NA,0
+9-methylphenanthrene,NA,C15H12,aq,DEH+13,NA,13.Dec.12,298090,126760,295.5,549.4,165.6,NA,NA,NA,NA,NA,NA,NA,0

Modified: pkg/CHNOSZ/man/CHNOSZ-package.Rd
===================================================================
--- pkg/CHNOSZ/man/CHNOSZ-package.Rd	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/man/CHNOSZ-package.Rd	2017-02-23 11:45:38 UTC (rev 171)
@@ -3,9 +3,8 @@
 \docType{package}
 \title{Chemical Thermodynamics and Activity Diagrams}
 \description{
-CHNOSZ is a package for thermodynamic calculations, primarily with applications in geochemistry and biochemistry.
+CHNOSZ is a package for thermodynamic calculations, primarily with applications in geochemistry and compositional biology.
 It can be used to calculate the standard molal thermodynamic properties and chemical affinities of reactions relevant to geobiochemical processes, and to visualize the equilibrium activities of species on chemical speciation and predominance diagrams.
-The package can be used interactively and in batch mode, through the use of R source files containing a sequence of commands.
 }
 
 \section{Getting Help}{
@@ -23,10 +22,7 @@
 It is up to you to check not only the accuracy of the data, but also the \emph{suitability of the data AND computational techniques} for your problem.
 By combining data taken from different sources, it is possible to build an inconsistent and/or nonsensical calculation.
 An attempt has been made to provide a primary database (OBIGT) that is internally consistent, but no guarantee can be made.
-If there is any doubt about the accuracy or suitability of data for a particular problem, please \emph{consult the primary sources} (see \code{\link{thermo.refs}}).
-Do not assume that by adding any species to your calculation (or to any of the examples), you will necessarily obtain a reasonable answer.
-Do not assume that the examples are correct, or that they can be applied to your problem.
-As with the data, please \emph{compare the construction and output of the examples to the primary sources}, cited in the reference list in each help page.
+If there is any doubt about the accuracy or suitability of data for a particular problem, please consult the primary sources (see \code{\link{thermo.refs}}).
 Examples without a reference (and some with references) demonstrate experimental features of CHNOSZ.
 }
 
@@ -58,7 +54,7 @@
 
   \item Activity statistics (\bold{experimental}) - calculate summary statistics for equilibrium activities of species (\code{\link{revisit}}).
 
-  \item Multidimensional optimization (new in 0.9-3) (\bold{experimental}) - using an iterative gridded optimization, find a combination of chemical activities of basis species, temperature and/or pressure that maximize or minimize the value of a target statistic (\code{\link{findit}}).
+  \item Multidimensional optimization (\bold{experimental}) - using an iterative gridded optimization, find a combination of chemical activities of basis species, temperature and/or pressure that maximize or minimize the value of a target statistic (\code{\link{findit}}).
 
   \item Mass transfer calculations (\bold{experimental}) - calculate changes in solution composition and formation of secondary species as a function of incremental reaction of a mineral (or protein) (\code{\link{transfer}}).
 
@@ -67,38 +63,23 @@
   Here are some tips for new users:
 
   \itemize{
-    \item Install the package from CRAN using \code{\link{install.packages}} or its GUI menu equivalent. 
-    \item To begin working with the package after installation, type \code{\link{library}(CHNOSZ)} at the command line (or select the name of the package from the GUI menu).
-    \item Running the examples shown in the various help topics is a great way to become more familiar with the usage of the functions. From \code{\link{help.start}}, select \sQuote{Packages} then \sQuote{CHNOSZ} and then select a function of interest. Individual examples can be run by pasting the example block directly into the R console.
+    \item Running the examples shown in the various help topics is a good way to become more familiar with the usage of the functions. From \code{\link{help.start}}, select \sQuote{Packages} then \sQuote{CHNOSZ} and then select a function of interest. Individual examples can be run by pasting the example block directly into the R console.
     \item Type the command \code{\link{examples}()} to run all of the examples provided in CHNOSZ. This takes a few minutes depending on your system. If things go as expected, the entire set will run without any warnings or errors.
-    \item Some of the examples require internet or file access or user intervention, or are intentionally written to demonstrate conditions that lead to errors. This code is hidden from \R's package checking mechanism using the \code{dontrun} tag. You can experiment with \code{dontrun} examples by pasting the code to the R console.
-    \item A couple of other things to note about the examples: 1) There are some \code{\link{stopifnot}} statements that represent expected outcomes of the calculations; if the expectation is not met, the \code{stopifnot} statement causes an error. These tests are useful for checking the code during package development cycles, but are usually not of critical importance for the set-up of the problem (though they do sometimes employ useful programming tricks). 2) Commands written with an enclosing pair of parentheses \code{(z <- "like this one")} are used to display the result of an assignment operation (\code{\link{<-}}), the value of which is needed later in the calculation. In interactive use, the outermost pair of enclosing parentheses is generally not needed.
-    \item Also try out \code{\link{demos}()} to run the demos (some of these are longer running examples that are not part of the main help pages).
-    \item To learn how to update the thermodynamic database, look at its documentation in \code{\link{thermo}}.
+    \item Also try out \code{\link{demos}()} to run the demos (longer examples that are not part of the main help pages).
+    \item To learn how to update the thermodynamic database, look at \code{\link{add.obigt}}.
   }
 
 }
 
-
-\section{Compatibility}{
-  Starting with version 1.0.5-1, the package depends on \R version 3.1.0 or greater (for \code{extendInt} argument of \code{\link{uniroot}}, used in code{\link{rho.IAPWS95}}).
-  As of version 1.0.4 (release 1.0.5 on CRAN), the package depends on \R version 3.0.0 or greater (previous versions use \code{\link{Stangle}} to extract R code from vignettes when installing the source package, leading to failure processing hotspring.Rnw, which now uses knitr instead of Sweave).
-  Before version 1.0.4, the recommended version of \R was 2.14.0 or greater (to find vignettes in the \code{vignettes} directory, and for availability of \pkg{parallel} in the standard library).
-  As of version 0.9-9, the package depends on \R version 2.12.0 or greater (so useDynLib in the NAMESPACE can find the shared library on Windows).
-  Starting with version 0.9-6 of the package, the dependency was given as \R version 2.10.0 or greater (to read compressed data files).
-  Before version 0.9-6 of the package, the dependency was given as \R version 2.7.0 or greater (major update of the X11 device in 2.7.0).
-  Without accessing the compressed data files in \code{extdata} it should be possible to run CHNOSZ on Unix-alikes under \R versions 2.4.0 or greater (availability of the \samp{stringsAsFactors} argument of \code{\link{data.frame}}). 
-}
-
 \section{Acknowledgements}{
   This package would not exist without the leadership and encouragement of Professor Harold C. Helgeson.
-  Hal and his associates are in some way responsible for many of the equations and data contained in this package.
-  A direct contribution of code is the file \code{H2O92D.f}, taken from the SUPCRT92 distribution, with minor modifications (masking of WRITE and STOP statements) made for compatibility with an \R environment.
+  Hal and his students and collaborators are in some way responsible for many of the equations and data contained in this package.
+  A direct contribution of code is the file \code{H2O92D.f}, taken from the SUPCRT92 distribution, with minor modifications (masking of WRITE and STOP statements) made for compatibility with an \R environment and for allowing sub-zero degrees C calculations (keep valTP flag TRUE).
   The revised Helgeson-Kirkham-Flowers equations of state are used in this package, together with the thermodynamic properties and parameters for many species taken from numerous papers coauthored by Helgeson.
 
   Work on this package at U.C. Berkeley from ~2003--2008 was supported by research grants to HCH from the U.S. National Science Foundation and Department of Energy.
   In 2009--2011, development of this package was based upon work supported by the National Science Foundation under grant EAR-0847616.
-  The files in \code{extdata/bison} are excerpts of results of BLAST calculations made on the Saguaro high performance computer at ASU. 
+  The files in \code{extdata/bison} are derived from BLAST calculations made on the Saguaro high performance computer at Arizona State University. 
 }
 
 \section{Known Bugs}{
@@ -106,9 +87,8 @@
 
   The values generated by \code{\link{buffer}} may not be applied correctly by \code{\link{affinity}} in calculating the affinities of the formation reactions. (The values returned by \code{affinity(..., return.buffer=TRUE)} do appear to be correct in the examples).
 
-  There is an unidentified inconsistency in \code{\link{transfer}} causing the reaction boundaries in one of the examples (\code{apc("closed")}) to be offset from the stability diagram. OTOH, \code{feldspar("closed")} appears to work correctly.
-
-  Values of activity coefficients may be affected by an unidentified bug in \code{\link{nonideal}}.
+  There is an unidentified inconsistency in \code{\link{transfer}} causing the reaction boundaries in one of the examples (\code{apc("closed")}) to be offset from the stability diagram.
+  On the other hand, \code{feldspar("closed")} appears to work correctly.
 }
 
 \keyword{package}

Modified: pkg/CHNOSZ/man/protein.Rd
===================================================================
--- pkg/CHNOSZ/man/protein.Rd	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/man/protein.Rd	2017-02-23 11:45:38 UTC (rev 171)
@@ -2,7 +2,7 @@
 \alias{protein}
 \title{Examples of Calculations for Proteins}
 \description{
-  This page contains some examples of using the functions in CHNOSZ to calculate thermodynamic properties and relative stabilities of proteins.
+  This page contains some examples of using the functions in CHNOSZ to calculate thermodynamic properties of and make diagrams for proteins.
 }
 
 \examples{\dontshow{data(thermo)}
@@ -78,9 +78,4 @@
 title(main="Bovine proteins, GSH/GSSG redox buffer")
 }
 
-\seealso{
-  For accessing, updating, and downloading amino acid compositions of proteins, see \code{\link{pinfo}}. 
-For more examples of metastable equilibrium calculations for proteins, see \code{\link{read.expr}}, \code{\link{more.aa}}, \code{\link{ionize.aa}}, and \code{\link{apc}} for reaction-path calculations.
-}
-
 \concept{Protein thermodynamic modeling}

Modified: pkg/CHNOSZ/man/util.data.Rd
===================================================================
--- pkg/CHNOSZ/man/util.data.Rd	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/man/util.data.Rd	2017-02-23 11:45:38 UTC (rev 171)
@@ -92,9 +92,7 @@
   The values returned (\code{\link{invisible}}-y) by \code{mod.obigt} are the rownumbers of the affected species.
 }
 
-\seealso{
-  \code{\link{mod.buffer}}
-}
+\seealso{ \code{\link{thermo}}, \code{\link{mod.buffer}} }
 
 \examples{\dontshow{data(thermo)}
 ## modify an existing species with fake properties

Modified: pkg/CHNOSZ/vignettes/anintro.Rmd
===================================================================
--- pkg/CHNOSZ/vignettes/anintro.Rmd	2017-02-22 16:46:33 UTC (rev 170)
+++ pkg/CHNOSZ/vignettes/anintro.Rmd	2017-02-23 11:45:38 UTC (rev 171)
@@ -22,7 +22,7 @@
 link-citations: yes
 # The custom CSL file gives a build error on R-Forge (20170212):
 #   pandoc-citeproc: error while parsing the XML string
-csl: elementa.csl
+#csl: elementa.csl
 ---
 
 ```{r options, include=FALSE}
@@ -99,7 +99,7 @@
 This document introduces the usage of CHNOSZ, a package for the [R software environment](http://r-project.org).
 For more information on R, see "[An Introduction to R](http://cran.r-project.org/manuals.html)" and the [contributed documentation](https://cran.r-project.org/other-docs.html) for R.
 
-CHNOSZ has been developed since 2006 to support research projects in geochemistry and compositional biology.
+CHNOSZ has been developed since 2006 as a tool for thermodynamic calculations in geochemistry and compositional biology.
 The package provides functions and a thermodynamic database that can be used to calculate the stoichiometric and energetic properties of reactions involving minerals and inorganic and/or organic aqueous species.
 These functions also enable calculations of chemical affinities and metastable equilibrium distributions of proteins.
 A major feature of the package is the production of diagrams to visualize the effects of changing temperature, pressure, and activities of basis species on the potential for reactions among various species.



More information about the CHNOSZ-commits mailing list