consensusClusterConvertors {CAGEr} | R Documentation

## Private functions to convert CC formats

### Description

Interconvert consensus clusters (CC) formats used in classes CAGEset (`data.frame`) and CAGEexp (`GRanges`).

### Usage

    CCgranges2dataframe(gr)

    CCdataframe2granges(df)

### Arguments

`gr` | Consensus clusters in `GRanges` format.
`df` | Consensus clusters in `data.frame` format.

### See Also

Other df2granges converters: `tagClusterConvertors`

### Examples

    df <- consensusClusters(exampleCAGEset)
    head(df)
    gr <- CCdataframe2granges(df)
    gr
    # No round-trip because start and end were not integer in df.
    # identical(df, CCgranges2dataframe(gr))

[Package CAGEr version 1.32.1 Index]