library(isoorbi)
# Load a path to a system test file
<-system.file("extdata", "testfile_flow.isox", package = "isoorbi") file_path
A basic data processing example
# Read .isox test data
<- orbi_read_isox(file = file_path)
df
# Keep only most important columns; equivalent to simplify check box in IsoX
<- orbi_simplify_isox(dataset = df)
df.simple
# Filter the data
<- df.simple %>%
df.filtered orbi_filter_isox(time_min = 0,
time_max = 1,
compounds = "HSO4-",
isotopocules = c("M0", "34S", "18O"))
# Clean the data by removing noise and outliers
<- df.filtered %>% orbi_filter_satellite_peaks() %>%
df.clean orbi_filter_weak_isotopocules(min_percent = 10) %>%
orbi_filter_scan_intensity(outlier_percent = 10)
# Define base peak and calculate the results table
<- df.clean %>% orbi_define_basepeak(basepeak_def = "M0")%>%
df.results orbi_summarize_results(ratio_method = "sum")