% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils_uniprot.R
\name{uniprot_to_A3}
\alias{uniprot_to_A3}
\title{Fetch a UniProt entry and parse it into an A3 object}
\usage{
uniprot_to_A3(
  accession,
  base_url = "https://rest.uniprot.org/uniprotkb",
  verbosity = 1L
)
}
\arguments{
\item{accession}{Character scalar: UniProt accession, e.g. \code{"P10636"}.}

\item{base_url}{Character scalar: UniProt REST API base URL.}

\item{verbosity}{Integer scalar: Verbosity level.}
}
\value{
\code{A3} object with sequence, annotations, and UniProt metadata.
}
\description{
Fetches the UniProt JSON for the given accession via the UniProt REST API,
maps all sequence annotations to the A3 schema (see \code{specs/uniprot.md}), and
returns a fully populated \code{A3} object.
}
\details{
Feature types not mapped to A3 (mutagenesis, alternative sequences, sequence
conflicts, etc.) are silently ignored.
}
\examples{
# Requires internet connection and fetches data from UniProt.
\dontrun{
mapt <- uniprot_to_A3("P10636")
}
}
\author{
EDG
}
