R/cleavageRanges-functions.R

Defines functions .cleavageRanges

.cleavageRanges <- function(x, enzym="trypsin", custom=NULL,
                            missedCleavages=0L) {

  sites <- .cleavageSites(x=x, enzym=enzym, custom=custom)

  mapply(.pos, pos=sites, n=nchar(x), MoreArgs=list(m=missedCleavages),
         SIMPLIFY=FALSE, USE.NAMES=TRUE)
}

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.