% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/target2np.R
\name{search_target2np}
\alias{search_target2np}
\title{Search Target2NP compound-target interactions}
\usage{
search_target2np(
  search = NULL,
  search_field = c("all", "gene_symbol", "compound_name", "uniprot_id", "inchikey",
    "pubchem_cid", "chembl_id"),
  search_mode = c("exact", "fuzzy"),
  source_db = NULL,
  evidence_level = NULL,
  evidence_label = NULL,
  target_organism = NULL,
  interaction_type = NULL,
  activity_type = NULL,
  page = 1L,
  page_size = 20L,
  all_pages = FALSE
)
}
\arguments{
\item{search}{Free-text search query.}

\item{search_field}{Field to restrict the search to. One of \code{"all"},
\code{"gene_symbol"}, \code{"compound_name"}, \code{"uniprot_id"}, \code{"inchikey"},
\code{"pubchem_cid"}, or \code{"chembl_id"}.}

\item{search_mode}{\code{"exact"} (case-insensitive equality) or \code{"fuzzy"}
(substring match).}

\item{source_db}{Filter by source database (e.g. \code{"BindingDB"}).}

\item{evidence_level}{Filter by evidence level (integer 1-4 as string).}

\item{evidence_label}{Filter by evidence label.}

\item{target_organism}{Filter by target organism (e.g. \code{"Homo sapiens"}).}

\item{interaction_type}{Filter by interaction type.}

\item{activity_type}{Filter by activity type (e.g. \code{"IC50"}, \code{"Ki"}).}

\item{page}{Page number (default 1).}

\item{page_size}{Results per page (default 20, max 100).}

\item{all_pages}{If \code{TRUE}, fetch all pages.}
}
\value{
A \code{\link[tibble:tibble]{tibble::tibble()}} of interaction records with attribute
\code{"total"}.
}
\description{
Query the UniTCM Target2NP database of natural-product to protein-target
interactions, combining records from experimental sources such as
BindingDB, HERB2, NPASS, BATMAN, and others.
}
\examples{
\dontrun{
search_target2np(search = "quercetin")
search_target2np(search = "TP53", search_field = "gene_symbol",
                 source_db = "BindingDB")
}
}
