get_bestwind: get_bestwind

View source: R/get_bestwind.R

get_bestwindR Documentation

get_bestwind

Description

Get the best m/z windows for DIA according a number of window and the report-lib from DIA-nn.

Usage

get_bestwind(
  data,
  n_window = 25,
  per_frac = FALSE,
  overlap = 0,
  window_size = NULL
)

Arguments

data

The report-lib data from DIA-nn which contains the PrecursorMz column. It can be a path to the file or the dataframe corresponding to the file (need to have FileName and PrecursorMz columns in that case).

n_window

The number of windows you want to have.

per_frac

If FALSE, will select the best windows from all fraction without differentiation. Else, it will select the best window for each fraction and then do the mean of those.

overlap

A fixed overlap between windows. Default is 0.

window_size

A fix m/z window size. Default is NULL but if numeric, it will compute n windows of same size.

Details

In the end, the distribution of the PrecursorMz per window will be uniform.

Value

A list containing a data frame with FileName, PrecursorMz and a bins column; four plots corresponding to bar plots / histogramm from the distribution of the PrecursorMz with and without the window selection.


mgerault/DIAgui documentation built on Nov. 7, 2024, 12:12 a.m.