% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process_cif_files.R
\name{analyze_cif_files}
\alias{analyze_cif_files}
\title{Analyze a Batch of CIF Files}
\usage{
analyze_cif_files(
  file_paths,
  workers = 1,
  output_dir = NULL,
  batch_size = 1000,
  ...
)
}
\arguments{
\item{file_paths}{Character vector of paths or list of data.tables.}

\item{workers}{Integer. Number of parallel workers.}

\item{output_dir}{Path to output directory (optional).}

\item{batch_size}{Integer.}

\item{...}{Args passed to \code{analyze_single_cif}.}
}
\value{
Data.table or output directory path.
}
\description{
A high-level wrapper that analyzes CIF files in batch, supporting
parallel processing and batch-to-disk operations.
}
\examples{
\donttest{
cif_path <- system.file("extdata", "1590946.cif", package = "crystract")
if (file.exists(cif_path)) {
  old_threads <- data.table::setDTthreads(2)
  out_dir <- file.path(tempdir(), "cif_analysis")
  res <- analyze_cif_files(cif_path, output_dir = out_dir, workers = 1)

  # Clean up
  unlink(out_dir, recursive = TRUE)
  data.table::setDTthreads(old_threads)
}
}
}
