View source: R/clean_msdial_data.R
clean_msdial_data | R Documentation |
Combine pos and neg files from MSDial and filter peaks according to user parameters
clean_msdial_data(
filter_blk = TRUE,
filter_blk_threshold = 0.8,
filter_blk_ghost_peaks = TRUE,
filter_mz = TRUE,
filter_rsd = TRUE,
filter_rsd_threshold = 30,
filter_rmd = TRUE,
filter_rmd_range = c(50, 3000),
threshold_mz = 0.05,
threshold_rt = 0.1,
user_pos_adducts_refs = NA,
user_neg_adducts_refs = NA,
user_pos_neutral_refs = NA,
user_neg_neutral_refs = NA,
compute_pearson_correlation = FALSE,
pearson_correlation_threshold = 0.8,
pearson_p_value = 0.05
)
filter_blk |
A boolean indicating whether or not to delete rows with too much noise. |
filter_blk_threshold |
A numerical threshold for noise filtering: rows with ratio mean(blank columns)/mean(qc columns) >= |
filter_blk_ghost_peaks |
A boolean indicating whether or not to delete blank ghost peaks (only used if |
filter_mz |
A boolean indicating whether or not to delete rows with masses ending in .8 or .9 (masses not found in natural products). |
filter_rsd |
A boolean indicating whether or not to delete rows with too much relative standard deviation in each class. |
filter_rsd_threshold |
A numerical threshold for relative standard deviation filtering: rows with relative standard deviation >= |
filter_rmd |
A boolean indicating whether or not to delete rows with a Relative Mass Defect outside of the range provided in |
filter_rmd_range |
A range of 2 integers indicating the acceptable Relative Mass Defects in ppm (only used if |
threshold_mz |
A numerical value indicating the mass tolerance in Dalton for the detection of adducts and neutral losses. |
threshold_rt |
A numerical value indicating the retention time tolerance. |
user_neg_neutral_refs, user_pos_neutral_refs, user_pos_adducts_refs, user_neg_adducts_refs |
An optional 2-column data.frame containing information about neutral losses, positive adducts or negative adducts (one column for the name and one column for the mass difference with the base compound). If no data.frame is provided, the package default list is used. |
compute_pearson_correlation |
Compute Pearson correlation between peaks to detect clusters. |
pearson_correlation_threshold |
Ignore links having a Pearson correlation < threshold (default: 0.8). |
pearson_p_value |
Ignore links having a non-significative Pearson correlation (default: 0.05). |
pos
Positive peaks info exported from MSDial
Positive peaks files exported from MSDial
neg
Negative peaks info exported from MSDial
Negative peaks files exported from MSDial
pos
Positive peaks files remaining after cleaning, copied from the folder pos/peaks
neg
Negative peaks files remaining after cleaning, copied from the folder neg/peaks
intermediary_data
Information about samples
Graph of adducts relations between peaks
MSDial data with clusters information
Graph containing clusters and MSDial data
Peaks remaining after all filters have been applied
Files containing information about links between peaks.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.