Foreword

topdownr is free and open-source software. If you use it, please support the project by citing it in publications:

P.V. Shliaha, S. Gibb, V. Gorshkov, M.S. Jespersen, G.R. Andersen, D. Bailey, J. Schwartz, S. Eliuk, V. Schwämmle, and O.N. Jensen. 2018. Maximizing Sequence Coverage in Top-Down Proteomics By Automated Multi-modal Gas-phase Protein Fragmentation. Analytical Chemistry. DOI: 10.1021/acs.analchem.8b02344

Questions and bugs

For bugs, typos, suggestions or other questions, please file an issue in our tracking system (https://github.com/sgibb/topdownr/issues) providing as much information as possible, a reproducible example and the output of sessionInfo().

If you don’t have a GitHub account or wish to reach a broader audience for general questions about proteomics analysis using R, you may want to use the Bioconductor support site: https://support.bioconductor.org/.

1 Introduction

1.1 The topdownr Data Generation Workflow

2 Installation of Additional Software

2.1 Setup the Thermo Software

To create methods the user will have to install and modify Orbitrap Fusion LUMOS workstation first:

  1. Request TribridSeriesWorkstationSetup-v3.2.exe from Thermo Scientific.
  2. Install the workstation by running TribridSeriesWorkstationSetup-v3.2.exe.

2.2 Setup XMLMethodChanger

XMLMethodChanger is needed to convert the xml methods into .meth files. It could be found at https://github.com/thermofisherlsms/meth-modifications The user has to download and compile it himself (or request it from Thermo Scientific as well). You would need at least the 3.2 beta version.

2.3 Setup Operating System

In order to use XMLMethodChanger the operating system has to use the . (dot) as decimal mark and the , (comma) as digit group separator (one thousand dot two should be formated as 1,000.2).

In Windows 7 the settings are located at Windows Control Panel > Region and Language > Formats. Choose English (USA) here or use the Additional settings button to change it manually.

2.4 Setup ScanHeadsman

After data aquisition topdownr would need the header information from the .raw files. Therefore the ScanHeadsman software is used. It could be downloaded from https://bitbucket.org/caetera/scanheadsman

It requires Microsoft .NET 4.5 or later (it is often preinstalled on a typical modern Windows or could be found in Microsoft’s Download Center, e.g. https://www.microsoft.com/en-us/download/details.aspx?id=30653). Additionally you would need Thermo’s MS File Reader which could be downloaded free of charge (but you have to register) from the Thermo FlexNet website: https://thermo.flexnetoperations.com/

ScanHeadsman was created by Vladimir Gorshkov .

3 Creating Methods

Importantly, XMLmethodChanger does not create methods de novo, but modifies pre-existing methods (supplied with XMLMethodChanger) using modifications described in XML files. Thus the whole process of creating user specified methods consists of 2 parts:

  1. Construction of XML files with all possible combination of fragmentation parameters (see topdownr::createExperimentsFragmentOptimisation, and topdownr::writeMethodXmls below).
  2. Submitting the constructed XML files together with a template .meth file to XMLmethodChanger.

We choose to use targeted MS2 scans (TMS2) as a way to store the fragmentation parameters. Each TMS2 is stored in a separate experiment. Experiments do not overlap.

Method Editor

Method Editor

4 Data preparation with topdownr

Shown below is the process of creating XML files and using them to modify the TMS2IndependentTemplateForTD.meth template file.

library("topdownr")

## Create MS1 settings
ms1 <- expandMs1Conditions(
    FirstMass=400,
    LastMass=1200,
    Microscans=as.integer(10)
)

## Set TargetMass
targetMz <- cbind(mz=c(560.6, 700.5, 933.7), z=rep(1, 3))

## Set common settings
common <- list(
    OrbitrapResolution="R120K",
    IsolationWindow=1,
    MaxITTimeInMS=200,
    Microscans=as.integer(40),
    AgcTarget=c(1e5, 5e5, 1e6)
)

## Create settings for different fragmentation conditions
cid <- expandTms2Conditions(
    MassList=targetMz,
    common,
    ActivationType="CID",
    CIDCollisionEnergy=seq(7, 35, 7)
)
hcd <- expandTms2Conditions(
    MassList=targetMz,
    common,
    ActivationType="HCD",
    HCDCollisionEnergy=seq(7, 35, 7)
)
etd <- expandTms2Conditions(
    MassList=targetMz,
    common,
    ActivationType="ETD",
    ETDReactionTime=as.double(1:2)
)
etcid <- expandTms2Conditions(
    MassList=targetMz,
    common,
    ActivationType="ETD",
    ETDReactionTime=as.double(1:2),
    ETDSupplementalActivation="ETciD",
    ETDSupplementalActivationEnergy=as.double(1:2)
)
uvpd <- expandTms2Conditions(
    MassList=targetMz,
    common,
    ActivationType="UVPD"
)

## Create experiments with all combinations of the above settings
## for fragment optimisation
exps <- createExperimentsFragmentOptimisation(
    ms1=ms1, cid, hcd, etd, etcid, uvpd,
    groupBy=c("AgcTarget", "replication"), nMs2perMs1=10, scanDuration=0.5,
    replications=2, randomise=TRUE
)

## Write experiments to xml files
writeMethodXmls(exps=exps)

## Run XMLMethodChanger
runXmlMethodChanger(
    modificationXml=list.files(pattern="^method.*\\.xml$"),
    templateMeth="TMS2IndependentTemplateForTD.meth",
    executable="path\\to\\XmlMethodChanger.exe"
)

5 Data Acquisition

After setting up direct infusion make sure that MS1 spectrum produces expected protein mass after deconvolution by Xtract. Shown below is a deconvoluted MS1 spectrum for myoglobin. The dominant mass corresponds to myoglobin with Met removed.

Xtract myoglobin

Xtract myoglobin

6 Data Preparation

Prior to R analysis of protein fragmentation data we have to convert the .raw files.

6.1 Extracting Header Information

Some of the information (SpectrumId, Ion Injection Time (ms), Orbitrap Resolution, targeted Mz, ETD reaction time, CID activation and HCD activation) is stored in scan headers, while other (ETD reagent target and AGC target) is only available in method table.

You can run ScanHeadsman from the commandline (ScanHeadsman.exe --noMS --methods:CSV) or use the function provided by topdownr:

runScanHeadsman(
    path="path\\to\\raw-files",
    executable="path\\to\\ScanHeadsman.exe"
)

ScanHeadsman will generate a .txt (scan header table) and a .csv (method table) file for each .raw file.

6.2 Convert .raw files into mzML

The spectra have to be charge state deconvoluted with Xtract node in Proteome Discoverer 2.1. The software returns deconvoluted spectra in mzML format.

Proteome Discoverer

Proteome Discoverer

Once a .csv, .txt, and .mzML file for each .raw have been produced we can start the analysis using topdownr. Please see analysis vignette (vignette("analysis", package="topdownr")) for an example.

7 Session Info

sessionInfo()
## R version 4.1.1 (2021-08-10)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.3 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.14-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.14-bioc/R/lib/libRlapack.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_GB              LC_COLLATE=C              
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] stats4    stats     graphics  grDevices utils     datasets  methods  
## [8] base     
## 
## other attached packages:
##  [1] ggplot2_3.3.5       ranger_0.13.1       topdownrdata_1.15.0
##  [4] topdownr_1.16.0     Biostrings_2.62.0   GenomeInfoDb_1.30.0
##  [7] XVector_0.34.0      IRanges_2.28.0      S4Vectors_0.32.0   
## [10] ProtGenerics_1.26.0 BiocGenerics_0.40.0 BiocStyle_2.22.0   
## 
## loaded via a namespace (and not attached):
##  [1] Biobase_2.54.0         sass_0.4.0             vsn_3.62.0            
##  [4] foreach_1.5.1          jsonlite_1.7.2         bslib_0.3.1           
##  [7] assertthat_0.2.1       highr_0.9              BiocManager_1.30.16   
## [10] affy_1.72.0            GenomeInfoDbData_1.2.7 yaml_2.2.1            
## [13] impute_1.68.0          pillar_1.6.4           lattice_0.20-45       
## [16] glue_1.4.2             limma_3.50.0           digest_0.6.28         
## [19] colorspace_2.0-2       Matrix_1.3-4           htmltools_0.5.2       
## [22] preprocessCore_1.56.0  plyr_1.8.6             MALDIquant_1.20       
## [25] XML_3.99-0.8           pkgconfig_2.0.3        magick_2.7.3          
## [28] bookdown_0.24          zlibbioc_1.40.0        purrr_0.3.4           
## [31] scales_1.1.1           affyio_1.64.0          BiocParallel_1.28.0   
## [34] tibble_3.1.5           farver_2.1.0           generics_0.1.1        
## [37] ellipsis_0.3.2         withr_2.4.2            magrittr_2.0.1        
## [40] crayon_1.4.1           evaluate_0.14          ncdf4_1.17            
## [43] fansi_0.5.0            doParallel_1.0.16      MASS_7.3-54           
## [46] mzR_2.28.0             tools_4.1.1            lifecycle_1.0.1       
## [49] stringr_1.4.0          MSnbase_2.20.0         munsell_0.5.0         
## [52] cluster_2.1.2          pcaMethods_1.86.0      compiler_4.1.1        
## [55] jquerylib_0.1.4        mzID_1.32.0            rlang_0.4.12          
## [58] grid_4.1.1             RCurl_1.98-1.5         iterators_1.0.13      
## [61] MsCoreUtils_1.6.0      labeling_0.4.2         bitops_1.0-7          
## [64] rmarkdown_2.11         gtable_0.3.0           codetools_0.2-18      
## [67] DBI_1.1.1              R6_2.5.1               knitr_1.36            
## [70] dplyr_1.0.7            fastmap_1.1.0          utf8_1.2.2            
## [73] clue_0.3-60            stringi_1.7.5          parallel_4.1.1        
## [76] Rcpp_1.0.7             vctrs_0.3.8            tidyselect_1.1.1      
## [79] xfun_0.27

8 References