Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	R/load_meta_functions.R
  • Loading branch information
Kiweler committed Dec 5, 2019
2 parents 3d509d6 + 71da2bb commit b708eb9
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions R/load_meta_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,25 @@ flatten_json <- function(json)
{
if(is.element("Gradient", names(json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]])))
{
time <- c()
duration <- c()
flow <- c()
mixture <- c()
for(i in json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]])
if(!is.na(gradient_data))
{
time <- c(time, i["Time [mm:ss]"][[1]])
duration <- c(duration, i["Duration [mm:ss]"][[1]])
flow <- c(flow, i["Flow [nl/min]"][[1]])
mixture <- c(mixture, i["Mixture [%B]"][[1]])
time <- c()
duration <- c()
flow <- c()
mixture <- c()
for(i in json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]])
{
time <- c(time, i["Time [mm:ss]"][[1]])
duration <- c(duration, i["Duration [mm:ss]"][[1]])
flow <- c(flow, i["Flow [nl/min]"][[1]])
mixture <- c(mixture, i["Mixture [%B]"][[1]])
}
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]] <- NULL
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Time [mm:ss]"]] <- time
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Duration [mm:ss]"]] <- duration
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Flow [nl/min]"]] <- flow
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Mixture [%B]"]] <- mixture
}
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]] <- NULL
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Time [mm:ss]"]] <- time
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Duration [mm:ss]"]] <- duration
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Flow [nl/min]"]] <- flow
json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][["Mixture [%B]"]] <- mixture
}
}

Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
Binary file modified data/tmt_list.rda
Binary file not shown.
Binary file modified inst/bin/MARMoSET.exe
Binary file not shown.
Binary file modified inst/bin/MARMoSET.pdb
Binary file not shown.
Binary file modified inst/extdata/term_matching_tables.ods
Binary file not shown.

0 comments on commit b708eb9

Please sign in to comment.