Parses skyline peak integration results into a tibble
Source:R/data-import.R
parse_skyline_result.Rd
Parses skyline peak integration results into a tibble
Arguments
- path
File name of the MRMkit result file (*.tsv or *.csv)
- na_strings
A character vector of strings to be interpreted as NA values.
- silent
No comments printed
- ...
Additional arguments passed to the function. Currently only
transition_id_columns
, which is used for Skyline-like data files. The column mapped tofeature_id
will be appended with following info: iftransition_id_columns = "name"
, the function will use themethod_precursor_name
andmethod_product_name
columns to create unique feature IDs. Iftransition_id_columns = "mz"
, the function will use themethod_precursor_mz
andmethod_product_mz
columns to create unique feature IDs.
Examples
file_path = system.file("extdata", "MRMkit_demo.tsv", package = "midar")
tbl <- parse_mrmkit_result(path = file_path)
head(tbl)
#> # A tibble: 6 × 19
#> analysis_id raw_data_filename acquisition_time_stamp qc_type batch_id
#> <chr> <chr> <dttm> <chr> <chr>
#> 1 Longit_BLANK-01 (El… Longit_BLANK-01 … 2017-10-20 14:15:36 SBLK 1
#> 2 Longit_B-ISTD 01 Ex… Longit_B-ISTD 01… 2017-10-20 14:27:06 PBLK 1
#> 3 Longit_Un-ISTD 01 U… Longit_Un-ISTD 0… 2017-10-20 14:38:26 UBLK 1
#> 4 Longit_LTR 01 Longit_LTR 01.mz… 2017-10-20 14:49:48 LTR 1
#> 5 Longit_TQC-10% Longit_TQC-10%.m… 2017-10-20 15:12:31 TQC 1
#> 6 Longit_TQC-20% Longit_TQC-20%.m… 2017-10-20 15:23:51 TQC 1
#> # ℹ 14 more variables: feature_id <chr>, istd_feature_id <chr>,
#> # integration_qualifier <lgl>, method_precursor_mz <dbl>,
#> # method_product_mz <dbl>, method_collision_energy <dbl>,
#> # method_polarity <chr>, feature_rt <dbl>, feature_area <dbl>,
#> # feature_height <dbl>, feature_fwhm <dbl>, feature_int_start <dbl>,
#> # feature_int_end <dbl>, feature_width <dbl>