scan_mzML: import mzML by scans

View source: R/importdata.R

scan_mzMLR Documentation

import mzML by scans

Description

given an mzML file, import all or a range of scans

Usage

scan_mzML(
  mz_file,
  scan_indices = NULL,
  scan_times = NULL,
  mz_range = numeric()
)

Arguments

mz_file

the mzML file

scan_indices

which scans to import by index

scan_times

which scans to import by time (in seconds)

mz_range

a range of m/z's to return the scans by

Details

Returns a list of tbl_df's, with mz and intensity.

Value

list

Examples

## Not run: 
  mz_file <- "example_file.mzML"
  scan_data <- scan_mzML(mz_file) # imports all scans
  scan_data <- scan_mzML(mz_file, scan_indices = seq(1, 5)) # scans 1-5
  scan_data <- scan_mzML(mz_file, scan_times = c(24, 80)) # scans in this time range

## End(Not run)

MoseleyBioinformaticsLab/FTMS.peakCharacterization documentation built on April 27, 2022, 3:32 a.m.