% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/duckhts.R
\name{rduckhts_bam_index}
\alias{rduckhts_bam_index}
\title{Build BAM or CRAM Index}
\usage{
rduckhts_bam_index(con, path, index_path = NULL, min_shift = 0, threads = 4)
}
\arguments{
\item{con}{A DuckDB connection with DuckHTS loaded}

\item{path}{Path to the input BAM or CRAM file}

\item{index_path}{Optional explicit output path for the created index}

\item{min_shift}{Index format selector used by htslib}

\item{threads}{htslib indexing thread count}
}
\value{
A data frame with `success`, `index_path`, and `index_format`
}
\description{
Builds a BAM or CRAM index using the DuckHTS extension.
}
