coerceObj {mutSignatures}R Documentation

Method coerceObj.

Description

Cast an object to a different format, by extracting and returning the most appropriate information. Note that data.frames can be coerced to one of the classes defined in the mutSignatures package using coerceObj.

Usage

coerceObj(x, to, ...)

## S4 method for signature 'mutFrameworkParams,character'
coerceObj(x, to)

## S4 method for signature 'mutationSignatures,character'
coerceObj(x, to)

## S4 method for signature 'mutationCounts,character'
coerceObj(x, to, ...)

## S4 method for signature 'mutSignExposures,character'
coerceObj(x, to, ...)

## S4 method for signature 'data.frame,character'
coerceObj(x, to, ...)

Arguments

x

an object to coerce to a different format

to

string, indicates the expected format (such as list or data.frame)

...

additional parameters passed to the functions used for the coercion


[Package mutSignatures version 2.1.1 Index]