% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/duckhts.R
\name{rduckhts_bgzip}
\alias{rduckhts_bgzip}
\title{BGZF Compress a File}
\usage{
rduckhts_bgzip(
  con,
  path,
  output_path = NULL,
  threads = 4,
  level = -1,
  keep = TRUE,
  overwrite = FALSE
)
}
\arguments{
\item{con}{A DuckDB connection with DuckHTS loaded}

\item{path}{Path to the input file}

\item{output_path}{Optional explicit output path}

\item{threads}{BGZF worker thread count}

\item{level}{Compression level, or -1 for the htslib default}

\item{keep}{Keep the original input file after compression}

\item{overwrite}{Overwrite an existing output file}
}
\value{
A data frame describing the created BGZF file
}
\description{
Compresses a plain file to BGZF using the DuckHTS extension.
}
