% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read_spectronaut_normalEG.R
\name{read_spectronaut_efficient}
\alias{read_spectronaut_efficient}
\title{Read Spectronaut efficiently with column selection}
\usage{
read_spectronaut_efficient(path, minimal = TRUE, dec = ".")
}
\arguments{
\item{path}{Character scalar. Path to a Spectronaut TSV report.}

\item{minimal}{Logical. If \code{TRUE} (default), reads only columns typically
needed for precursor-level diagnostics; if \code{FALSE}, reads all columns.}

\item{dec}{Character scalar. Decimal separator (use \code{","} for some locales).}
}
\value{
A \link[tibble:tibble]{tibble} containing either the selected minimal columns
(if \code{minimal=TRUE}) or all columns (if \code{minimal=FALSE}).
}
\description{
Convenience wrapper around \code{\link{read_spectronaut}}. For very large
Spectronaut reports, reading only a minimal set of columns can substantially
speed up I/O and reduce memory usage.
}
\examples{
if (requireNamespace("data.table", quietly = TRUE)) {
  tmp <- tempfile(fileext = ".tsv")
  txt <- paste0(
    "R.FileName\tR.Condition\tEG.PrecursorId\tEG.IsDecoy\tEG.Qvalue\tEG.PEP\tEG.Cscore\n",
    "run1\tcondA\tP1\tFalse\t0.01\t0.02\t120\n",
    "run1\tcondA\tP2\tTrue\tNaN\t0.90\t10\n"
  )
  writeLines(txt, tmp)
  read_spectronaut_efficient(tmp, minimal = TRUE)
}

}
