Skip to content

Commit

Permalink
Merge pull request #94 from Meredith-Lab/release
Browse files Browse the repository at this point in the history
release prep
  • Loading branch information
Aariq authored Dec 15, 2023
2 parents 46005bb + f1e4251 commit 7483799
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 56 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Authors@R: c(
)
Description: Use this package to calculate estimated relative volatility
index values for organic compounds based on functional group
contributions. Calculation uses the SIMPOL method (Prankow and Asher,
2008).
contributions. Calculation uses the SIMPOL.1 method (Prankow and Asher,
2008) or modified SIMPOL.1 method as in Meredith et al. (2023).
License: MIT + file LICENSE
URL: https://meredith-lab.github.io/volcalc/
BugReports: https://github.com/Meredith-Lab/volcalc/issues
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# volcalc (development version)

* The manuscript associated with `volcalc` is now published in Frontiers in Microbiology 🎉. DOI: 10.3389/fmicb.2023.1267234
* There are now two vignettes available which can be viewed with `browseVignettes("volcalc")` or on the package website

## Miscelanous changes

Expand Down
7 changes: 3 additions & 4 deletions R/calc_vol.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
#'
#' @references Donahue, N.M., Robinson, A.L., Stanier, C.O., Pandis, S.N., 2006.
#' Coupled Partitioning, Dilution, and Chemical Aging of Semivolatile Organics.
#' Environ. Sci. Technol. 40, 2635–2643. <https://doi.org/10.1021/es052297c>
#' Environ. Sci. Technol. 40, 2635–2643. \doi{10.1021/es052297c}
#'
#' Meredith L, Ledford S, Riemer K, Geffre P, Graves K, Honeker L, LeBauer D,
#' Tfaily M, Krechmer J. 2023. Automating methods for estimating metabolite
#' volatility. Frontiers in Microbiology.
#' <https://doi.org/10.3389/fmicb.2023.1267234>.
#' volatility. Frontiers in Microbiology. \doi{10.3389/fmicb.2023.1267234}
#'
#' @return A tibble with relative volatility index (`rvi`) and volatility
#' @returns A tibble with relative volatility index (`rvi`) and volatility
#' category (`category`).
#'
#' @seealso [get_fx_groups()], [simpol1()]
Expand Down
2 changes: 1 addition & 1 deletion R/get_fx_groups.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#' @param compound_sdf a [ChemmineR::SDFset] object returned by
#' [ChemmineR::read.SDFset()] or [ChemmineR::smiles2sdf()], for example.
#'
#' @return A tibble with columns of basic compound info and functional group
#' @returns A tibble with columns of basic compound info and functional group
#' counts.
#' @seealso [calc_vol()]
#' @examples
Expand Down
2 changes: 1 addition & 1 deletion R/get_mol_kegg.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ utils::globalVariables(".data")
#' @param force Logical; by default (`FALSE`), .mol files will not be downloaded
#' if they are found in `dir`. Set this to `TRUE` to download and overwrite
#' existing files.
#'
#'
#' @returns A tibble with the columns `compound_ids`, `pathway_ids` (if used),
#' and `mol_paths` (paths to downloaded .mol files).
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/mol_example.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' - C16181: beta-2,3,4,5,6-Pentachlorocyclohexanol
#' - C16286: Geosmin
#' - C16521: Isoprene
#' @return File paths to installed example .mol files.
#' @returns File paths to installed example .mol files.
#' @export
#'
#' @examples
Expand Down
7 changes: 3 additions & 4 deletions R/simpol1.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,17 @@
#' @param meredith Logical; `FALSE`: use the original SIMPOL.1 method. `TRUE`:
#' use the modified version in Meredith et al. (2023).
#'
#' @return The `fx_groups` tibble with the additional `log10_P` column.
#' @returns The `fx_groups` tibble with the additional `log10_P` column.
#'
#' @references
#' Meredith L, Ledford S, Riemer K, Geffre P, Graves K, Honeker L, LeBauer D,
#' Tfaily M, Krechmer J. 2023. Automating methods for estimating metabolite
#' volatility. Frontiers in Microbiology.
#' <https://doi.org/10.3389/fmicb.2023.1267234>.
#' volatility. Frontiers in Microbiology. \doi{10.3389/fmicb.2023.1267234}
#'
#' Pankow, J.F., Asher, W.E. 2008. SIMPOL.1: a simple group
#' contribution method for predicting vapor pressures and enthalpies of
#' vaporization of multifunctional organic compounds. Atmos. Chem. Phys.
#' <https://doi.org/10.5194/acp-8-2773-2008>
#' \doi{10.5194/acp-8-2773-2008}
#'
#' @seealso [calc_vol()]
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ zzz <- function() {
#'
#' @param atomcount output of ChemmineR::atomcount()
#'
#' @return a tibble
#' @returns a tibble
#' @noRd
#'
atomcount2tibble <- function(atomcount) {
Expand Down
15 changes: 4 additions & 11 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,15 @@ knitr::opts_chunk$set(

<!-- badges: start -->

[![R-CMD-check](https://github.com/Meredith-Lab/volcalc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Meredith-Lab/volcalc/actions/workflows/R-CMD-check.yaml) [![latest-DOI](https://zenodo.org/badge/425022983.svg)](https://zenodo.org/badge/latestdoi/425022983) [![manuscript-DOI](https://img.shields.io/badge/DOI-10.3389/fmicb.2023.1267234-32a859.svg)](https://doi.org/10.3389/fmicb.2023.1267234) [![Project Status: WIP -- Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip) [![Codecov test coverage](https://codecov.io/gh/Meredith-Lab/volcalc/branch/master/graph/badge.svg)](https://app.codecov.io/gh/Meredith-Lab/volcalc?branch=master) [![volcalc status badge](https://cct-datascience.r-universe.dev/badges/volcalc)](https://cct-datascience.r-universe.dev/volcalc)
[![R-CMD-check](https://github.com/Meredith-Lab/volcalc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Meredith-Lab/volcalc/actions/workflows/R-CMD-check.yaml) [![latest-DOI](https://zenodo.org/badge/425022983.svg)](https://zenodo.org/badge/latestdoi/425022983) [![manuscript-DOI](https://img.shields.io/badge/DOI-10.3389/fmicb.2023.1267234-32a859.svg)](https://doi.org/10.3389/fmicb.2023.1267234) [![Project Status: Active -- The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) [![Codecov test coverage](https://codecov.io/gh/Meredith-Lab/volcalc/branch/master/graph/badge.svg)](https://app.codecov.io/gh/Meredith-Lab/volcalc?branch=master) [![volcalc status badge](https://cct-datascience.r-universe.dev/badges/volcalc)](https://cct-datascience.r-universe.dev/volcalc)

<!-- badges: end -->

## Overview

The `volcalc` package allows you to automate calculating estimates of volatility for chemical compounds.

```{=html}
> [!WARNING]
> `volcalc` is a work in progress---use at your own risk!
```
For a bit of a road map of where development is headed, see our [proposal](https://cct-datascience.github.io/volcalc-isc-proposal/) for the R Consortium grant.

`volcalc` is designed to support "group contribution" methods for estimating volatility that rely on molecular properties such as molecular weight, numbers of certain atoms, and counts of certain functional groups.
`volcalc` supports "group contribution" methods for estimating volatility that rely on molecular properties such as molecular weight, numbers of certain atoms, and counts of certain functional groups.
Currently, the only methods implemented are SIMPOL.1 (Pankow & Asher 2008) and a modified version used in Meredith et al. (2023).

`volcalc` works with either .mol files or [SMILES](https://en.wikipedia.org/wiki/Simplified_molecular-input_line-entry_system) strings as input, and supports downloading .mol files directly from [KEGG](https://www.kegg.jp/).
Expand All @@ -58,7 +51,7 @@ You can install the 'legacy' version used in Meredith et al. (2023) with
pak::pkg_install("Meredith-Lab/volcalc@v1.0.2")
```

Installation of `volcalc` requires the system libraries [OpenBabel](https://openbabel.org/wiki/Main_Page) and Eigen3 (requirements of the `ChemmineOB` package, which `volcalc` depends on).
Installation of `volcalc` requires the system libraries [OpenBabel](https://open-babel.readthedocs.io/) and Eigen3 (requirements of the `ChemmineOB` package, which `volcalc` depends on).
`pak` will take care of the installation of these libraries for you on some systems, but you may need to install them manually on some operating systems.

For macOS, they can be installed via homebrew by running the following shell command:
Expand All @@ -76,7 +69,7 @@ sudo apt-get install libeigen3-dev

For windows, `OpenBabel` is included in the `ChemmineOB` binary and does not need to be installed separately.

For other installation options see the [OpenBabel documentation](https://openbabel.org/docs/dev/Installation/install.html) and `ChemmineOB` [install guide](https://github.com/girke-lab/ChemmineOB/blob/master/INSTALL)
For other installation options see the [OpenBabel documentation](https://open-babel.readthedocs.io/en/latest/Installation/install.html) and `ChemmineOB` [install guide](https://github.com/girke-lab/ChemmineOB/blob/master/INSTALL)

## Basic Usage

Expand Down
36 changes: 14 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
[![R-CMD-check](https://github.com/Meredith-Lab/volcalc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/Meredith-Lab/volcalc/actions/workflows/R-CMD-check.yaml)
[![latest-DOI](https://zenodo.org/badge/425022983.svg)](https://zenodo.org/badge/latestdoi/425022983)
[![manuscript-DOI](https://img.shields.io/badge/DOI-10.3389/fmicb.2023.1267234-32a859.svg)](https://doi.org/10.3389/fmicb.2023.1267234)
[![Project Status: WIPInitial development is in progress, but there
has not yet been a stable, usable release suitable for the
public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![Project Status: ActiveThe project has reached a stable, usable
state and is being actively
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Codecov test
coverage](https://codecov.io/gh/Meredith-Lab/volcalc/branch/master/graph/badge.svg)](https://app.codecov.io/gh/Meredith-Lab/volcalc?branch=master)
[![volcalc status
Expand All @@ -23,19 +23,11 @@ badge](https://cct-datascience.r-universe.dev/badges/volcalc)](https://cct-datas
The `volcalc` package allows you to automate calculating estimates of
volatility for chemical compounds.

> [!WARNING]
> `volcalc` is a work in progress---use at your own risk!
For a bit of a road map of where development is headed, see our
[proposal](https://cct-datascience.github.io/volcalc-isc-proposal/) for
the R Consortium grant.

`volcalc` is designed to support “group contribution” methods for
estimating volatility that rely on molecular properties such as
molecular weight, numbers of certain atoms, and counts of certain
functional groups. Currently, the only methods implemented are SIMPOL.1
(Pankow & Asher 2008) and a modified version used in Meredith et
al. (2023).
`volcalc` supports “group contribution” methods for estimating
volatility that rely on molecular properties such as molecular weight,
numbers of certain atoms, and counts of certain functional groups.
Currently, the only methods implemented are SIMPOL.1 (Pankow & Asher
2008) and a modified version used in Meredith et al. (2023).

`volcalc` works with either .mol files or
[SMILES](https://en.wikipedia.org/wiki/Simplified_molecular-input_line-entry_system)
Expand Down Expand Up @@ -64,11 +56,11 @@ pak::pkg_install("Meredith-Lab/volcalc@v1.0.2")
```

Installation of `volcalc` requires the system libraries
[OpenBabel](https://openbabel.org/wiki/Main_Page) and Eigen3
(requirements of the `ChemmineOB` package, which `volcalc` depends on).
`pak` will take care of the installation of these libraries for you on
some systems, but you may need to install them manually on some
operating systems.
[OpenBabel](https://open-babel.readthedocs.io/) and Eigen3 (requirements
of the `ChemmineOB` package, which `volcalc` depends on). `pak` will
take care of the installation of these libraries for you on some
systems, but you may need to install them manually on some operating
systems.

For macOS, they can be installed via homebrew by running the following
shell command:
Expand All @@ -88,7 +80,7 @@ For windows, `OpenBabel` is included in the `ChemmineOB` binary and does
not need to be installed separately.

For other installation options see the [OpenBabel
documentation](https://openbabel.org/docs/dev/Installation/install.html)
documentation](https://open-babel.readthedocs.io/en/latest/Installation/install.html)
and `ChemmineOB` [install
guide](https://github.com/girke-lab/ChemmineOB/blob/master/INSTALL)

Expand Down
5 changes: 2 additions & 3 deletions man/calc_vol.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions man/simpol1.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/volcalc-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vignettes/volcalc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ calc_vol("CC/C=C\\C[C@@H]1[C@H](CCC1=O)CC(=O)O", from = "smiles")

### References

Donahue, N.M., Robinson, A.L., Stanier, C.O., Pandis, S.N., 2006. Coupled Partitioning, Dilution, and Chemical Aging of Semivolatile Organics. Environ. Sci. Technol. 40, 2635–2643. <https://doi.org/10.1021/es052297c>
Donahue, N.M., Robinson, A.L., Stanier, C.O., Pandis, S.N., 2006. Coupled Partitioning, Dilution, and Chemical Aging of Semivolatile Organics. Environ. Sci. Technol. 40, 2635–2643. DOI: 10.1021/es052297c

Meredith L, Ledford S, Riemer K, Geffre P, Graves K, Honeker L, LeBauer D, Tfaily M, Krechmer J, 2023. Automating methods for estimating metabolite volatility. Frontiers in Microbiology. <https://doi.org/10.3389/fmicb.2023.1267234>.
Meredith L, Ledford S, Riemer K, Geffre P, Graves K, Honeker L, LeBauer D, Tfaily M, Krechmer J, 2023. Automating methods for estimating metabolite volatility. Frontiers in Microbiology. DOI: 10.3389/fmicb.2023.1267234

0 comments on commit 7483799

Please sign in to comment.