1 Introduction

Most proteomics experiments need protein (peptide) separation and cleavage procedures before these molecules could be analyzed or identified by mass spectrometry or other analytical tools.

cleaver allows in-silico cleavage of polypeptide sequences to e.g. create theoretical mass spectrometry data.

The cleavage rules are taken from the ExPASy PeptideCutter tool (Gasteiger et al. 2005).

2 Simple Usage

Loading the cleaver package:

library("cleaver")

Getting help and list all available cleavage rules:

help("cleave")

Cleaving of Gastric juice peptide 1 (P01358) using Trypsin:

## cleave it
cleave("LAAGKVEDSD", enzym="trypsin")
## $LAAGKVEDSD
## [1] "LAAGK" "VEDSD"
## get the cleavage ranges
cleavageRanges("LAAGKVEDSD", enzym="trypsin")
## $LAAGKVEDSD
##      start end
## [1,]     1   5
## [2,]     6  10
## get only cleavage sites
cleavageSites("LAAGKVEDSD", enzym="trypsin")
## $LAAGKVEDSD
## [1] 5

Sometimes cleavage is not perfect and the enzym miss some cleavage positions:

## miss one cleavage position
cleave("LAAGKVEDSD", enzym="trypsin", missedCleavages=1)
## $LAAGKVEDSD
## [1] "LAAGKVEDSD"
cleavageRanges("LAAGKVEDSD", enzym="trypsin", missedCleavages=1)
## $LAAGKVEDSD
##      start end
## [1,]     1  10
## miss zero or one cleavage positions
cleave("LAAGKVEDSD", enzym="trypsin", missedCleavages=0:1)
## $LAAGKVEDSD
## [1] "LAAGK"      "VEDSD"      "LAAGKVEDSD"
cleavageRanges("LAAGKVEDSD", enzym="trypsin", missedCleavages=0:1)
## $LAAGKVEDSD
##      start end
## [1,]     1   5
## [2,]     6  10
## [3,]     1  10

Combine cleaver and Biostrings (Pages et al., n.d.):

## create AAStringSet object
p <- AAStringSet(c(gaju="LAAGKVEDSD", pnm="AGEPKLDAGV"))

## cleave it
cleave(p, enzym="trypsin")
## AAStringSetList of length 2
## [["gaju"]] LAAGK VEDSD
## [["pnm"]] AGEPK LDAGV
cleavageRanges(p, enzym="trypsin")
## IRangesList object of length 2:
## $gaju
## IRanges object with 2 ranges and 0 metadata columns:
##           start       end     width
##       <integer> <integer> <integer>
##   [1]         1         5         5
##   [2]         6        10         5
## 
## $pnm
## IRanges object with 2 ranges and 0 metadata columns:
##           start       end     width
##       <integer> <integer> <integer>
##   [1]         1         5         5
##   [2]         6        10         5
cleavageSites(p, enzym="trypsin")
## $gaju
## [1] 5
## 
## $pnm
## [1] 5

3 Insulin & Somatostatin Example

Downloading Insulin (P01308) and Somatostatin (P61278) sequences from the UniProt (The UniProt Consortium 2012) database using UniProt.ws (Carlson, n.d.).

## load UniProt.ws library
library("UniProt.ws")

## select species Homo sapiens
up <- UniProt.ws(taxId=9606)

## download sequences of Insulin/Somatostatin
s <- select(up,
    keys=c("P01308", "P61278"),
    columns=c("sequence"),
    keytype="UniProtKB"
)

## fetch only sequences
sequences <- setNames(s$Sequence, s$Entry)

## remove whitespaces
sequences <- gsub(pattern="[[:space:]]", replacement="", x=sequences)

Cleaving using Pepsin:

cleave(sequences, enzym="pepsin")
## $P01308
##  [1] "MA"              "L"               "W"               "MRLLP"          
##  [5] "LL"              "A"               "WGPDPAAA"        "F"              
##  [9] "VNQH"            "CGSH"            "VEA"             "Y"              
## [13] "VCGERG"          "FF"              "YTPKTRREAED"     "QVGQVE"         
## [17] "GGGPGAGS"        "LQP"             "LA"              "EGS"            
## [21] "QKRGIVEQCCTSICS" "Q"               "EN"              "CN"             
## 
## $P61278
##  [1] "ML"                    "SCRL"                  "QCA"                  
##  [4] "L"                     "AA"                    "SIV"                  
##  [7] "A"                     "GCVTGAPSDPRL"          "RQ"                   
## [10] "FL"                    "QKS"                   "LAAAAGKQEL"           
## [13] "AK"                    "Y"                     "AE"                   
## [16] "SEPNQTENDA"            "LEPED"                 "SQAAEQDEMRL"          
## [19] "EL"                    "QRSANSNPAMAPRERKAGCKN" "FF"                   
## [22] "W"                     "KT"                    "FTSC"

4 Isotopic Distribution Of Tryptic Digested Insulin

A common use case of in-silico cleavage is the calculation of the isotopic distribution of peptides (which were enzymatic digested in the in-vitro experimental workflow). Here BRAIN (Claesen et al. 2012; Dittwald et al. 2013) is used to calculate the isotopic distribution of cleaver’s output. (please note: it is only a toy example, e.g. the relation of intensity values between peptides isn’t correct).

## load BRAIN library
library("BRAIN")

## cleave insulin
cleavedInsulin <- cleave(sequences[1], enzym="trypsin")[[1]]

## create empty plot area
plot(NA, xlim=c(150, 4300), ylim=c(0, 1),
     xlab="mass", ylab="relative intensity",
     main="tryptic digested insulin - isotopic distribution")

## loop through peptides
for (i in seq(along=cleavedInsulin)) {
  ## count C, H, N, O, S atoms in current peptide
  atoms <- BRAIN::getAtomsFromSeq(cleavedInsulin[[i]])
  ## calculate isotopic distribution
  d <- useBRAIN(atoms)
  ## draw peaks
  lines(d$masses, d$isoDistr, type="h", col=2)
}

5 Session Information

## R version 4.2.1 (2022-06-23)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.4 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.15-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.15-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] BRAIN_1.42.0        lattice_0.20-45     PolynomF_2.0-5     
##  [4] UniProt.ws_2.36.5   RSQLite_2.2.16      cleaver_1.34.1     
##  [7] Biostrings_2.64.1   GenomeInfoDb_1.32.3 XVector_0.36.0     
## [10] IRanges_2.30.1      S4Vectors_0.34.0    BiocGenerics_0.42.0
## [13] BiocStyle_2.24.0   
## 
## loaded via a namespace (and not attached):
##  [1] Biobase_2.56.0         httr_1.4.4             httpcache_1.2.0       
##  [4] sass_0.4.2             bit64_4.0.5            jsonlite_1.8.0        
##  [7] bslib_0.4.0            shiny_1.7.2            assertthat_0.2.1      
## [10] highr_0.9              BiocManager_1.30.18    BiocFileCache_2.4.0   
## [13] blob_1.2.3             GenomeInfoDbData_1.2.8 yaml_2.3.5            
## [16] progress_1.2.2         pillar_1.8.1           glue_1.6.2            
## [19] digest_0.6.29          promises_1.2.0.1       htmltools_0.5.3       
## [22] httpuv_1.6.5           pkgconfig_2.0.3        magick_2.7.3          
## [25] bookdown_0.28          zlibbioc_1.42.0        purrr_0.3.4           
## [28] xtable_1.8-4           later_1.3.0            tibble_3.1.8          
## [31] KEGGREST_1.36.3        generics_0.1.3         ellipsis_0.3.2        
## [34] DT_0.24                cachem_1.0.6           cli_3.3.0             
## [37] magrittr_2.0.3         crayon_1.5.1           mime_0.12             
## [40] memoise_2.0.1          evaluate_0.16          fansi_1.0.3           
## [43] cellxgenedp_1.0.1      tools_4.2.1            prettyunits_1.1.1     
## [46] hms_1.1.2              lifecycle_1.0.1        stringr_1.4.1         
## [49] AnnotationDbi_1.58.0   compiler_4.2.1         jquerylib_0.1.4       
## [52] rlang_1.0.5            grid_4.2.1             RCurl_1.98-1.8        
## [55] rappdirs_0.3.3         htmlwidgets_1.5.4      bitops_1.0-7          
## [58] rmarkdown_2.16         DBI_1.1.3              curl_4.3.2            
## [61] R6_2.5.1               knitr_1.40             dplyr_1.0.10          
## [64] fastmap_1.1.0          bit_4.0.4              utf8_1.2.2            
## [67] filelock_1.0.2         stringi_1.7.8          parallel_4.2.1        
## [70] Rcpp_1.0.9             vctrs_0.4.1            png_0.1-7             
## [73] dbplyr_2.2.1           tidyselect_1.1.2       xfun_0.32

References

Carlson, Marc. n.d. UniProt.ws: R Interface to Uniprot Web Services.

Claesen, Jürgen, Piotr Dittwald, Tomasz Burzykowski, and Dirk Valkenborg. 2012. “An Efficient Method to Calculate the Aggregated Isotopic Distribution and Exact Center-Masses.” Journal of the American Society for Mass Spectrometry 23 (4): 753–63.

Dittwald, Piotr, Jürgen Claesen, Tomasz Burzykowski, Dirk Valkenborg, and Anna Gambin. 2013. “BRAIN: A Universal Tool for High-Throughput Calculations of the Isotopic Distribution for Mass Spectrometry.” Analytical Chemistry 85 (4): 1991–4.

Gasteiger, Elisabeth, Christine Hoogland, Alexandre Gattiker, S’everine Duvaud, Marc R. Wilkins, Ron D. Appel, and Amos Bairoch. 2005. “Protein Identification and Analysis Tools on the Expasy Server.” In The Proteomics Protocols Handbook, edited by John M. Walker, 571–607. Humana Press. https://doi.org/10.1385/1-59259-890-0:571.

Pages, H., P. Aboyoun, R. Gentleman, and S. DebRoy. n.d. Biostrings: String Objects Representing Biological Sequences, and Matching Algorithms.

The UniProt Consortium. 2012. “Reorganizing the Protein Space at the Universal Protein Resource (Uniprot).” Nucleic Acids Research 40 (D1): D71–D75. https://doi.org/10.1093/nar/gkr981.