scan_mzML | R Documentation |
given an mzML file, import all or a range of scans
scan_mzML( mz_file, scan_indices = NULL, scan_times = NULL, mz_range = numeric() )
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 |
Returns a list of tbl_df
's, with mz
and intensity
.
list
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.