lcms_filter_polarity: Filter an experiment by its polarity

Description Usage Arguments Value See Also Examples

View source: R/pre_processing.R

Description

This function was merged in the MSnbase package on 2018-12-10. It filter by positive or negative ionization mode.

Usage

1
lcms_filter_polarity(lcms_dataset, polarity.)

Arguments

lcms_dataset

A MSnExp object.

polarity.

The polarity to keep. set polarity. = 1 for positive ionization mode. set polarity. = 0 for negative ionization mode.

Value

A filtered lcms_dataset with the selected polarity.

See Also

Other dataset functions: IPO_group_peaks(), find_peaks_cwp(), lcms_dataset_load(), lcms_dataset_save(), lcms_fill_chrom_peaks(), lcms_filter_mz(), lcms_filter_rt_min(), lcms_filter_sample_type(), lcms_meta_add(), lcms_meta_export(), lcms_plot_chrom_peak_image(), lcms_plot_tics(), lcms_rearrange_datafiles_by_class(), lcms_retention_time_alignment_plot(), lcms_tics(), obiAdjust_Rtime(), peakpicking_optimization(), phData()

Other filtering functions: lcms_filter_mz(), lcms_filter_rt_min(), lcms_filter_sample_type()

Examples

1
2
3
4
5
6
7
## Not run: 
dataset_2_polarities <- lcms_read_samples("yourDir/sample1.mzXML", mode = "onDisk")
dataset_pos <- lcms_filter_polarity(dataset_2_polarities, polarity. = 1)

is.positive(dataset_pos)

## End(Not run)

sipss/NIHSlcms documentation built on May 13, 2021, 6:19 p.m.