Skip to content

Commit

Permalink
Patched Fu feces workflow to prefix sample ID with compounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Klorator committed Oct 8, 2023
1 parent 55c60ff commit dba2b48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions R/Fic_workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ ras.Fic_workflow <- function(source = c("Waters","Sciex"),
#' @param stab RegEx to filter by for stability values
#' @param czero RegEx to filter by for C zero values values
#' @param D Numeric value for D
#' @param .compound Column name for compounds to prefix Sample_ID,
#' `NULL` => "Analyte Peak Name"
#'
#' @return Dataframe with all variables, used & calculated
#' @export
Expand All @@ -218,7 +220,8 @@ ras.Fu_feces_workflow <- function(source = c("Sciex", "Waters"),
Dilution_factor = 4.8,
stab = "Stab",
czero = "Czero",
D = 4.8
D = 4.8,
.compound = NULL
) {
# Set output directory
output_dir <- tcltk::tk_choose.dir(caption = "Select output directory")
Expand All @@ -235,7 +238,7 @@ ras.Fu_feces_workflow <- function(source = c("Sciex", "Waters"),
multi = FALSE)
df <- readr::read_delim(path.df,
delim = "\t")
.compound <- NULL
if (is.null(.compound)) { .compound <- "Analyte Peak Name" }
}

# Clean data ----
Expand Down
6 changes: 5 additions & 1 deletion man/ras.Fu_feces_workflow.Rd

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

0 comments on commit dba2b48

Please sign in to comment.