as.alterations {TRONCO} | R Documentation

## as.alterations

### Description

Return a dataset where all events for a gene are merged in a unique event, i.e., a total of gene-level alterations diregarding the event type. Input 'x' is checked to be a TRONCO compliant dataset - see `is.compliant`.

### Usage

    as.alterations(x, new.type = "Alteration", new.color = "khaki", silent = FALSE)

### Arguments

`x` | A TRONCO compliant dataset.
`new.type` | The types label of the new event type, 'Alteration' by default.
`new.color` | The color of the event `new.type`, default 'khaki'.
`silent` | A parameter to disable/enable verbose messages.

### Value

A TRONCO compliant dataset with alteration profiles.

### Examples

    data(muts)
    as.alterations(muts)

[Package TRONCO version 2.24.0 Index]