Skip to content

Commit

Permalink
Fixed mass balance 10.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Klorator committed Oct 17, 2023
1 parent 5d9540f commit dcc7400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions R/Fic.R
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,11 @@ ras.Fu_feces_mass_balance_10.2.5 <- function(df_calc,
Homogenate = "Hom_Conc._avg",
Dilution_factor = 4.8,
Buffer = "Buffer_Con._avg",
Stab = "Stab_Conc._avg") {
Stab = "Stab_Conc._avg",
mass_factor = 1.75) {
df_calc <- df_calc %>%
dplyr::mutate(Mass_balance_10.2.5 =
(.data[[Homogenate]]*Dilution_factor +.data[[Buffer]]*1.75)
/ .data[[Stab]] )
(.data[[Homogenate]]*Dilution_factor +.data[[Buffer]]*mass_factor)
/ .data[[Stab]] )
return(df_calc)
}
4 changes: 2 additions & 2 deletions R/Fic_workflow.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ ras.Fic_workflow <- function(
Dilution_factor = {{name_dilution}},
Buffer = {{name_buffer}},
Stab = {{name_stab}},
mass_factor = MassBalance_2.5,)
mass_factor = MassBalance_2.5)
df_calc <- df_calc %>%
ras.Fic_A.cell(Cell = {{name_cell}})
df_calc <- df_calc %>%
Expand Down Expand Up @@ -255,7 +255,7 @@ ras.Fu_feces_workflow <- function(
stab = "Stab",
czero = "Czero",
D = 4.8,
MassBalance_2.5 = 1.75
MassBalance_2.5 = 1.75,
.compound = "Analyte Peak Name",
.checkValues = TRUE,
.summarize = TRUE,
Expand Down

0 comments on commit dcc7400

Please sign in to comment.