[CHNOSZ-commits] r193 - in pkg/CHNOSZ: . inst tests/testthat vignettes

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Apr 30 09:06:17 CEST 2017


Author: jedick
Date: 2017-04-30 09:06:16 +0200 (Sun, 30 Apr 2017)
New Revision: 193

Modified:
   pkg/CHNOSZ/DESCRIPTION
   pkg/CHNOSZ/inst/NEWS
   pkg/CHNOSZ/tests/testthat/test-protein.info.R
   pkg/CHNOSZ/vignettes/anintro.Rmd
Log:
comment broken test under development version of testthat


Modified: pkg/CHNOSZ/DESCRIPTION
===================================================================
--- pkg/CHNOSZ/DESCRIPTION	2017-04-30 06:50:01 UTC (rev 192)
+++ pkg/CHNOSZ/DESCRIPTION	2017-04-30 07:06:16 UTC (rev 193)
@@ -1,6 +1,6 @@
 Date: 2017-04-30
 Package: CHNOSZ
-Version: 1.0.8-81
+Version: 1.0.8-82
 Title: Chemical Thermodynamics and Activity Diagrams
 Author: Jeffrey Dick
 Maintainer: Jeffrey Dick <j3ffdick at gmail.com>

Modified: pkg/CHNOSZ/inst/NEWS
===================================================================
--- pkg/CHNOSZ/inst/NEWS	2017-04-30 06:50:01 UTC (rev 192)
+++ pkg/CHNOSZ/inst/NEWS	2017-04-30 07:06:16 UTC (rev 193)
@@ -1,4 +1,4 @@
-CHANGES IN CHNOSZ 1.0.8-81 (2017-04-30)
+CHANGES IN CHNOSZ 1.0.8-82 (2017-04-30)
 ---------------------------------------
 
 DOCUMENTATION:

Modified: pkg/CHNOSZ/tests/testthat/test-protein.info.R
===================================================================
--- pkg/CHNOSZ/tests/testthat/test-protein.info.R	2017-04-30 06:50:01 UTC (rev 192)
+++ pkg/CHNOSZ/tests/testthat/test-protein.info.R	2017-04-30 07:06:16 UTC (rev 193)
@@ -13,21 +13,23 @@
   expect_equal(pinfo(c("LYSC_CHICK", "MYGPHYCA")), c(6, NA))
 })
 
-# test_that somehow affects capture.output so we set up the problem here
-protein <- pinfo(c("CSG_METVO", "CSG_METJA"))
-suppressMessages(mod.obigt("[Met]", G=-35245, H=-59310))
-basis("CHNOS+")
-suppressMessages(swap.basis("O2", "H2"))
-pequil <- capture.output(protein.equil(protein, loga.protein=-3), type="message")
+# 20170430 comment this section becuase `pequil` somehow is just empty
+# using the current development version of testthat (on Github)
+## test_that somehow affects capture.output so we set up the problem here
+#protein <- pinfo(c("CSG_METVO", "CSG_METJA"))
+#suppressMessages(mod.obigt("[Met]", G=-35245, H=-59310))
+#basis("CHNOS+")
+#suppressMessages(swap.basis("O2", "H2"))
+#pequil <- capture.output(protein.equil(protein, loga.protein=-3), type="message")
+#
+#test_that("protein.equil() reports values consistent with Dick and Shock (2011)", {
+#  # the Astar/RT in the paragraph following Eq. 23, p. 6 of DS11
+#  # (truncated because of rounding)
+#  expect_true(any(grepl(c("0\\.435.*1\\.36"), pequil)))
+#  # the log10 activities of the proteins in the left-hand column of the same page
+#  expect_true(any(grepl(c("-3\\.256.*-2\\.834"), pequil)))
+#})
 
-test_that("protein.equil() reports values consistent with Dick and Shock (2011)", {
-  # the Astar/RT in the paragraph following Eq. 23, p. 6 of DS11
-  # (truncated because of rounding)
-  expect_true(any(grepl(c("0\\.435.*1\\.36"), pequil)))
-  # the log10 activities of the proteins in the left-hand column of the same page
-  expect_true(any(grepl(c("-3\\.256.*-2\\.834"), pequil)))
-})
-
 # references
 # Dick, J. M. and Shock, E. L. (2011) Calculation of the relative chemical stabilities of proteins 
 #   as a function of temperature and redox chemistry in a hot spring. 

Modified: pkg/CHNOSZ/vignettes/anintro.Rmd
===================================================================
--- pkg/CHNOSZ/vignettes/anintro.Rmd	2017-04-30 06:50:01 UTC (rev 192)
+++ pkg/CHNOSZ/vignettes/anintro.Rmd	2017-04-30 07:06:16 UTC (rev 193)
@@ -1642,7 +1642,7 @@
 </p>
 
 We have calculated the distribution of ATP species and average binding number of H<sup>+</sup> and Mg<sup>+2</sup> for given pH, pMg, ionic strength, and temperature.
-Accounting for the distribution of chemical species lends itself to thermodynamic models for reactions between reactants that have multiple possibly ionized and bound states.
+Accounting for the distribution of chemical species lends itself to thermodynamic models for reactions between reactants that have multiple ionized and bound states.
 In contrast, Alberty (2003) and others propose models for biochemical reactions where the ionized and complexed species are combined into a single representation.
 Those models invoke Legendre-transformed thermodynamic properties, such as transformed Gibbs energies that are tabulated for specified pH, pMg, and ionic strength.
 Although the conceptual pathways are different, the two approaches lead to equivalent results concerning the energetics of the overall reactions and the conditions for equilibrium [@SVI12].



More information about the CHNOSZ-commits mailing list