Skip to content

Commit

Permalink
c tool for ltq_orbitrap_ms
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiweler committed Oct 10, 2019
1 parent 7213130 commit dee2e22
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions R/load_meta_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,28 @@ flatten_json <- function(json)
group_count <- group_count(json)
for(group_numb in group_count)
{
if(!is.na(json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][[group_numb]]["Time [mm:ss]"]))
gradient_data <- json [["Group"]][[group_numb]][["Instruments"]][["Thermo EASY-nLC"]][["Method"]][["Gradient"]][[group_numb]]["Time [mm:ss]"]
if(length(gradient_data) != 0)
{
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 inst/bin/MARMoSET.exe
Binary file not shown.
Binary file modified inst/bin/MARMoSET.pdb
Binary file not shown.

0 comments on commit dee2e22

Please sign in to comment.