R/cleavageSites-methods.R

setMethod(f="cleavageSites",
          signature=signature(x="character"),
          definition=function(x, enzym="trypsin", custom=NULL) {
  .cleavageSites(x=x, enzym=enzym, custom=custom)
})

setMethod(f="cleavageSites",
          signature=signature(x="AAString"),
          definition=function(x, enzym="trypsin", custom=NULL) {
  .cleavageSites(x=as.character(x), enzym=enzym, custom=custom)
})

setMethod(f="cleavageSites",
          signature=signature(x="AAStringSet"),
          definition=function(x, enzym="trypsin", custom=NULL) {
  .cleavageSites(x=as.character(x), enzym=enzym, custom=custom)
})

Try the cleaver package in your browser

Any scripts or data that you put into this service are public.

cleaver documentation built on Nov. 8, 2020, 7:20 p.m.