# Creating bed files of clusters

`exportClustersToBed.Rd`

Creates bed files of clusters.

    exportClustersToBed(object, data = "consensusClusters", assigned = TRUE)

    # S4 method for TSSr
    exportClustersToBed(object, data = "consensusClusters", assigned = TRUE)

## Arguments

object | A TSSr object.
data | Specify which data will be exported: "tagClusters" or "consensusClusters". Default is "consensusClusters".
assigned | Specify which consensus clusters will be exported. Used only if data = "consensusClusters. Default is TRUE.

## Examples

    # \donttest{
    exportTSStoBedgraph(exampleTSSr, data = "tagClusters")#> Error in `[.data.table`(tss.dt, , .SD, .SDcols = c("chr", "pos", "strand",     sampleLabelsMerged[i])): Some items of .SDcols are not column names: [control]exportTSStoBedgraph(exampleTSSr, dataexampleTSSr = "consensusClusters")#> Error in exportTSStoBedgraph(exampleTSSr, dataexampleTSSr = "consensusClusters"): unused argument (dataexampleTSSr = "consensusClusters")# }