Reduces a HiCDOCDataSet by keeping only given chromosomes, conditions, or replicates.

reduceHiCDOCDataSet(
  object,
  chromosomes = NULL,
  conditions = NULL,
  replicates = NULL,
  dropLevels = TRUE
)

Arguments

object

A HiCDOCDataSet.

chromosomes

The chromosome names or indices in chromosomes(object) to keep. Defaults to NULL.

conditions

The condition names in conditions(object) to keep. Defaults to NULL.

replicates

The replicate names in replicates(object) to keep. Defaults to NULL.

dropLevels

Whether or not to also remove unused factor levels after filtering. Should be set to FALSE if the reduced objects are meant to be re-combined later. Defaults to TRUE.

Value

A reduced HiCDOCDataSet.

Examples

data(exampleHiCDOCDataSet) reduced <- reduceHiCDOCDataSet(exampleHiCDOCDataSet, chromosomes = c(1, 2))