modality: Retrieve modality from a result_model, result_collection, or...

modalityR Documentation

Retrieve modality from a result_model, result_collection, or musica object

Description

The modality

Usage

modality(x, ...)

## S4 method for signature 'musica'
modality(x, result, modality, model_id)

## S4 method for signature 'result_collection'
modality(x, modality, model_id)

## S4 method for signature 'result_model'
modality(x)

modality(x, ...) <- value

## S4 replacement method for signature 'musica,matrix'
modality(x, result, modality, model_id) <- value

## S4 replacement method for signature 'result_collection,matrix'
modality(x, modality, model_id) <- value

## S4 replacement method for signature 'result_model,matrix'
modality(x) <- value

Arguments

x

A musica, result_collection, or result_model object generated by a mutational discovery or prediction tool.

...

Other inputs result_collection object.

result

Name of result from result_list to assign the modality. Used when result is a musica object.

modality

Modality to assign the modality. Used when result is a musica or result_collection object.

model_id

Model identifier to assign the modality. Used when result is a musica or

value

A modality

Value

The modality for the model

Examples

data(res)
modality(res, "result", "SBS96", "res")

campbio/musicatk documentation built on Dec. 25, 2024, 9:34 p.m.