Computes within-group divergence for population using Jensen-Shannon divergence.

divergence(
  sample,
  chrom = NULL,
  data_columns = NULL,
  outfile = NULL,
  chunksize = 1000
)

Arguments

sample

Data frame containing sample information with 'url' and 'label' columns

chrom

Character string specifying the chromosome to analyze

data_columns

List of column specifications for data extraction

outfile

Character string specifying the output file path

chunksize

Integer specifying the expected number of sites per chunk (default: 1000)

Value

NULL (results are written to file)