R/searchProtein.R

Defines functions searchProtein

Documented in searchProtein

#' Get the CrossReferences in the OMA database for a pattern
#'
#' The function to list all the crossreferences that match a certain defined pattern.
#'
#' @param pattern the pattern to query the OMA database with - needs to be at least 3 characters long
#' @return a data.frame containing information on the cross references for a given pattern
#' @export
#' @examples
#' searchProtein(pattern='MAL')

searchProtein <- function(pattern) {
    url <- urlGenerator(endpoint = "xref", search = pattern)
    return(requestFactory(url))
}

Try the OmaDB package in your browser

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

OmaDB documentation built on Nov. 13, 2020, 2 a.m.