Extract EICs of some features from some samples.

extract_eic(
  targeted_table,
  object,
  polarity = c("positive", "negative"),
  mz_tolerance = 15,
  rt_tolerance = 30,
  threads = 5,
  add_point = FALSE,
  path = ".",
  group_for_figure = "QC",
  feature_type = c("pdf", "png")
)

Arguments

targeted_table

A data.frame contains the variable_id, mz and rt of features to extract.

object

object from xcms. If you use massprocesser, this should be the xdata3.

polarity

positive or negative.

mz_tolerance

default is 15 ppm.

rt_tolerance

default is 30 ppm.

threads

Number of threads.

add_point

aad points in the EIC or not.

path

Work directory.

group_for_figure

what samples groups are used to extract EICs

feature_type

png of pdf

Value

EICs.

Author

Xiaotao Shen shenxt1990@outlook.com