This function is used to correct retention time of peaks according to internal standards.

Data preparation

Reference internal standard table

This is the table of retention time of reference internal standards (csv or xlsx format). It looks like below figure shows:

Query internal standard table

This is the table of retention time of query internal standards (csv or xlsx format). It looks like below figure shows:

Query peak table

This is the table of retention time of query peaks (csv or xlsx format). It looks like below figure shows:

Demo data

Please down load demo data here: demo data

here I download the demo data into a folder named as “example”, and then uncompress it, so the data now at the directory: ./example/rt_correction.

Run correct_rt() function

correct_rt(reference_is_table_name = "reference_is_table.csv",
           query_is_table_name = "query_is_table.csv",
           query_peak_table_name = "query_peak_table.csv",
           method = "loess",
           path = "example/rt_correction/")

The results are outputted into “example/rt_correction” folder.