Install using Rstudio or similar. Dependencies are in the DESCRIPTION file: mzR, RSQLite, Rdisop, dplyr, ggplot2, viridis, hrbrthemes, plotly, htmlwidgets, withr, DT
Create a project folder and place your RAW and mzML files there (for now, raw files need to be in the folder for path finding purposes).
Convert your wide SIM / MS2 data using proteowizard. Centroid data ONLY and use --simAsSpectra
flag!:
msconvert --filter 'peakPicking true 1-' --simAsSpectra --mzML *.raw
raw_files <- list.files(pattern = "raw", full.names = T)
input_file <- sub(".raw",".mzML",raw_files)
input_file
lapply(input_file, function(x) search_NLM(file = x,
delta_search_mass = -116.0473, # the signed (-/+) neutral loss for deoxy ribose
search_name = 'dR', # tag for the name of the search
mzmin = 135, # absolute minimum mz
mzmax = 634, # absolute maximum mz value
mzwid = 0.01, # mz bin size for feature finding
ppm_tol = 20, # ppm tolerance for the dR neutral loss search
rt_tol = 12, # retention time tolerance in seconds for searching the NL masses
plot = F # plot DNA adduct maps and data tables in html format.
))
Results are located in an SQLite file named using your with a timestamp attached to it.
Each mzML file has a results folder with plots and the sql table.
You can view your results using DB Browser. Simply open your sqlite file and browse to the hit_table data table for results. Alternatively, view your results by clicking on the html file in the sample results folder. Diagnotic plots will open when the peak group is clicked on.
Welcome to wSIMCity, a software for mining wide-selected ion monitoring/MS2 (Wide-SIM/MS2) mass spectrometry data. wSIMCity was developed by Scott Walmsley, PhD, of the Masonic Cancer Center and the Institute for Health Informatics at the University of Minnesota. Wide-SIM/MS2 is a data-independent acquisition (DIA) strategy adopted from the SWATH methodology to monitor the neutral loss of 2′-deoxyribose (dR) from modified 2′-deoxyribonucleosides for DNA adductomic analysis (reference). wSIMCity was developed to overcome data structure issues in Wide-SIM/MS2 data which limited the usefulness of existing software solutions and provides for the automated detection of DNA adducts. The workflow uses R-packages to process Wide-SIM/MS2 raw data and to mine potential DNA adducts retrospectively. This algorithm can also be applied to detect classes of compounds that share common neutral losses under CID fragmentation. The Wide-SIM/MS2 as a data independent acquisition (DIA) methodology was developed for sensitive and comprehensive detection of trace level covalent modifications of DNA, known as DNA adducts. These adducts form upon exposure of DNA to environmental genotoxicants and endogenously produced electrophiles. DNA adducts at critical sites in tumor-related genes are believed to be the first step in chemical carcinogenesis. They can serve as biomarkers of exposure and interspecies extrapolation of toxicity data. DNA adducts were usually detected as nucleosides in samples where the DNA has been hydrolysed by a cocktail of enzymes. The figure below shows the structure of a representative DNA adduct:
The blue portion of the DNA adduct is the mutagen or carcinogen, which in this case is covalently bound to the C8 position of a 2′-deoxyguoanosine (guanine in black and dR in red). The facile glycosidic bond between nucleobase and dR is prone to dissociate when subjected to CID fragmentation, generating the adducted nucleobase ion and dR as neutral fragment. Generally speaking, this mechanism is universal for DNA adducts. The ions at the MS1 level are known as precursor ions (denoted: [M+H]+), and the resulting ion after the neutral loss is called the 'aglycone' (denoted as [M+H-116.0473]+ or [B+H2]+). Note the gain of a mobile proton on the aglycone molecule, hence the '+H' notation.
Targeted detection of DNA adducts is fairly straightforward. However, capturing the global picture of adduct formation in the human genome requires more comprehensive screening strategies. Below is a figure comparing the data dependent acquisition (DDA) and DIA scanning methods commonly utilized in proteomics and metabolomics (A), and recently developed methods for DNA adductomics, including the DNA adductomic DDA constant neutral loss MS3 (CNL-MS3) method (panel B) and the DIA Wide-SIM/MS2 method (panel C), the later for which this software package was written. In order to improve the sensitivity of detection, the m/z range of potential DNA adducts, 330–630, was equally split into 10 sections. Each section consists of a Wide-SIM detection of a 30 m/z mass range followed by CID-MS2 detection (m/z 100 – 650), with isolation of the same mass range as the corresponding SIM event. Both the Wide-SIM precursor ions and MS2 product ions were detected with the high-resolution Orbitrap MS detector to achieve accurate formula assignment. Potential DNA adducts were characterized by co-elution of the extracted precursor ions ([M+H]+) in the Wide-SIM scan and the aglycones ([BH2]+) in the succeeding MS2 scan at a mass tolerance of 5 ppm. This data acquisition format (panel C) leads to incompatibilities with current DDA/DIA software developed for proteomics and metabolomics.
wSIMCity seeks to discover the 'landscape' or map of DNA-adducts in a DNA sample prepared for and analyzed using wide-SIM/MS2 data acquisition. The overall workflow is shown in the next figure:
Software developed for the DIA methods (and previous DDA methodologies) have worked well, but are incompatible with our current wide-SIM/MS2 scanning technique. Therefore we have implemented a simple workaround using the R package mzR
, incorporating the MSDIAL feature finding algorithm, and devising a custom global statistical model and search strategy to detect the adducts. Extracted ion chromatograms (EIC) for candidate molecules are produced. Further we devised a scheme to best leverage a global sample-wise scoring method together with an individual scoring metric to help the researcher identify and pursue candidate DNA adduct molecules for identification. The output of wSIMCity is list of masses and retention times to be used for targeted identification using CID MS.
An important aspect of wSIMCity is that it scores the identification of putative DNA adducts to prioritize candidate DNA adducts for further analysis.
The scoring is broken down into a few components. The first component is borrowed from MSDIAL for matching detected compounds with those listed in a mass and retention database. We modify the MSDIAL approach to match precursor - aglycone molecules found in DNA adductomics data.
A major difference between our scoring method and that of MSDIAL is the underlying assumptions about the distributive properties of the measured values of the two data types: we use ppm mass errors to differentiate between real [M+H]+ and [B+H2]2 pairs of features and false hits. Specifically, for every [M+H]+ ion, we compute a theoretical [M+H-116.0473]+ m/z, and then look for [B+H2]+ ions with that mass and retention time. We look for every ion with that m/z value and determine the mass deviation in ppm. This measurement is called 'Mass err (ppm)' in the plot above. These measured data points follow a Gaussian distribution.
From these results, a list of candidate ions are produced and then re-extracted from the data. Since the input into the algorithm uses feature finding software that can produce a lot of false positives when trying to detect ions of low abundance, the precursor - aglycone ions are re-extracted using the raw MS data files. New scores are computed, and peak shape correlations are computed and used as a final metric. The result is a plot for each putative DNA-adduct passing a minimum criterion (peak shape correlation, score, ratio) that the researcher can use to determine if the ion is worth identifying:
The software will produce a scan definition file automatically by reading the mass ranges from the filter list in the mzML file.
This file describes one duty cycle on the instrument in DIA SIM mode and defines what the m/z ranges for the wide SIM-MS2 are. It is tab delimited and is in the form:
|ScanType|WindowStart|WindowEnd|AquisitionStart|AcquisitionEnd| |:---:|:---:|:---:|:---:|:---:| |WSIM|197|364|330|364| |NL|100|550|330|364| |WSIM|197|394|360|394| |NL|100|550|360|394| |WSIM|197|424|390|424| |NL|100|550|390|424| |WSIM|197|454|420|454| |NL|100|550|420|454| |WSIM|197|484|450|484| |NL|100|550|450|484| |WSIM|197|514|480|514| |NL|100|550|480|514| |WSIM|197|544|510|544| |NL|100|550|510|544| |WSIM|197|574|540|574| |NL|100|550|540|574| |WSIM|197|604|570|604| |NL|100|550|570|604| |WSIM|197|634|600|634| |NL|100|550|600|634|
ScanType
is one of either 'WSIM' or 'NL' used to denote the scan level (MS1 or MS2).
WindowStart
and WindowEnd
indicate the start and end m/z values for the data collection m/z range as set at the instrument.
AquisitionStart
and AqcuisitionEnd
denote the start and end m/z values for the mass range you filtered your data on during the run.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.