% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ingredients.R
\name{search_compounds}
\alias{search_compounds}
\title{Search compounds in the Ingredient Explorer}
\usage{
search_compounds(
  q = NULL,
  mw_min = NULL,
  mw_max = NULL,
  clogp_min = NULL,
  clogp_max = NULL,
  tpsa_min = NULL,
  tpsa_max = NULL,
  qed_min = NULL,
  qed_max = NULL,
  ring_count_min = NULL,
  ring_count_max = NULL,
  lipinski = NULL,
  is_drug = NULL,
  sort = NULL,
  page = 1L,
  page_size = 20L,
  all_pages = FALSE
)
}
\arguments{
\item{q}{Search query (name, SMILES, formula, or CAS number).}

\item{mw_min, mw_max}{Molecular weight range.}

\item{clogp_min, clogp_max}{CLogP range.}

\item{tpsa_min, tpsa_max}{Topological polar surface area range.}

\item{qed_min, qed_max}{QED score range.}

\item{ring_count_min, ring_count_max}{Ring count range.}

\item{lipinski}{Lipinski rule filter (character vector, comma-collapsed).}

\item{is_drug}{Approved drug filter (logical or \code{NULL}).}

\item{sort}{Sort field (e.g. \code{"mw"}, \code{"-mw"}).}

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

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

\item{all_pages}{If \code{TRUE}, fetch all pages.}
}
\value{
A \code{\link[tibble:tibble]{tibble::tibble()}} of compounds with attribute \code{"total"}.
}
\description{
Query the UniTCM Ingredient Explorer with optional text search and
physicochemical property filters.
}
\examples{
\dontrun{
search_compounds(q = "quercetin")
search_compounds(mw_min = 200, mw_max = 500, lipinski = "pass")
}
}
