Replies: 3 comments 1 reply
-
In terms of functions, here's what I'm imagining. All of the KEGG related functionality gets put in I think this means that |
Beta Was this translation helpful? Give feedback.
-
Sketch of functions and their arguments (I'm sure I'm missing some things, but this is the rough idea) #' @param input a vector of either 1) file paths to .mol files, SMILES strings, InChI strings
#' @param from indicates which type `input` is
#' @param return_fx_groups should the functional groups be in the output?
#' @param return_calc_steps should the intermediate calculations be in the output?
#' @returns tibble with one row for each element of `input`
calc_vol <- function(input,
from = c("mol_path", "smiles", "inchi"),
return_fx_groups = FALSE,
return_calc_steps = FALSE) {
#1 if from == mol_path read in mol_path to SDFset object
# else translate from `from` to SDFset
#2 call get_fx_groups()
#3 call calc_simpol()
#4 wrangle output according to optional args
}
#' @param SDFset object created by ChemmineR::read.SDFset()
#' @returns tibble of functional group counts
get_fx_groups <- function(SDFset) {
}
#' @param fx_groups tibble output by get_fx_groups()
#' @returns `fx_groups` appended with columns for volatility calculations
calc_simpol <- function(fx_groups) {
}
#' @param compound_ids character vector of compound IDs
#' @param pathway_ids character vector of KEGG pathway IDs
#' @param path where to put the output
#' @details You can only supply either `compound_ids` OR `pathway_ids`, not both
#'
#' @returns a tibble with 2 or 3 columns: `compound_ids`, `pathway_ids`, and
#' `mol_path` containing file paths to downloaded .mol files
#'
get_mol_kegg <- function(compound_ids, pathway_ids, path){
}
|
Beta Was this translation helpful? Give feedback.
-
This is a thread to discuss what the eventual user interface of
volcalc
should look like. How many functions should be available to the user? What should their names be? What arguments should they have? What should the defaults be for those arguments (if any)?Beta Was this translation helpful? Give feedback.
All reactions