Removes chromosomes whose length (in number of positions) is smaller than the threshold.

filterSmallChromosomes(object, threshold = NULL)

Arguments

object

A HiCDOCDataSet.

threshold

The minimum length (number of positions) for a chromosome to be kept. Defaults to object$smallChromosomeThreshold which is originally set to defaultHiCDOCParameters$smallChromosomeThreshold = 100.

Value

A filtered HiCDOCDataSet.

See also

Examples

data(exampleHiCDOCDataSet) object <- exampleHiCDOCDataSet chromosomes(object)
#> [1] "W" "X" "Y" "Z"
object <- filterSmallChromosomes(object)
#> Keeping chromosomes with at least 100 positions.
#> Kept 3 chromosomes: X, Y, Z
#> Removed 1 chromosome: W
chromosomes(object)
#> [1] "X" "Y" "Z"