R/find_cis_spliced_peptides.R

Defines functions find_cis_spliced_peptides

#' @title find_cis_spliced_peptides
#' @description this is a non-exportable function, the goal of this function is
#' to simply look for the fragments within proteins in the proteome database.
#' @param sequence_patt sequence patterns
#' @param proteome_db proteome database
#' @return list of the peptides that have a match for both fragments within the
#' same protein and that dont.
#' @details this is a non-exportable function, that takes in as input the sequence
#' patterns and the proteome database to search into and returns a list of all
#' all these patterns and their respective hits in the proteome, and blank if there
#' wasn't a hit.
#' @noRd
#' @keywords internal


find_cis_spliced_peptides<- function(sequence_patt, proteome_db){
  s <- proteome_db
  cis_spliced <- mapply (function(x) {
    grep(x, s, perl=TRUE)}, x=sequence_patt)
  return(cis_spliced)
}

Try the RHybridFinder package in your browser

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

RHybridFinder documentation built on Aug. 17, 2021, 5:09 p.m.