consensusSegments {AneuFinder} | R Documentation

## Make consensus segments

### Description

Make consensus segments from a list of `aneuHMM` or `aneuBiHMM` objects.

### Usage

    consensusSegments(hmms)

### Arguments

`hmms` | A list of `aneuHMM` or `aneuBiHMM` objects or a character vector of files that contains such objects.

### Details

The function will produce a `GRanges-class` object using the `GenomicRanges::disjoin` function on all extracted `$segment` entries.

### Value

A `GRanges-class`.

### Examples

    ## Get results from a small-cell-lung-cancer
    lung.folder <- system.file("extdata", "primary-lung", "hmms", package="AneuFinderData")
    lung.files <- list.files(lung.folder, full.names=TRUE)
    ## Get consensus segments and states
    consensusSegments(lung.files)

[Package AneuFinder version 1.8.0 Index]