as.AutomorphismList: Methods for AutomorphismList-class Objects

as.AutomorphismListR Documentation

Methods for AutomorphismList-class Objects

Description

Several methods are available to be applied on Automorphism-class and AutomorphismList-class objects.

Usage

as.AutomorphismList(x, grs = GRanges(), ...)

## S4 method for signature 'GRangesList,GRanges_OR_NULL'
as.AutomorphismList(x, grs = GRanges(), ...)

## S4 method for signature 'list,GRanges_OR_NULL'
as.AutomorphismList(x, grs = GRanges(), ...)

Arguments

x

A DataFrame or a automorphisms class object.

grs

A GRanges-class object.

...

Not in use yet.

Value

The returned an AutomorphismList-class object.

See Also

automorphism_bycoef, automorphisms

Examples

## Load a dataset
data("brca1_autm", package = "GenomAutomorphism")

## Let's transforming into a list of Automorphisms-class objects
x1 <- as.list(brca1_autm[seq(2)])

## Now, object 'x1' is transformed into a AutomorphismList-class object
as.AutomorphismList(x1)

## Alternatively, let's transform the list 'x1' into a GRangesList-class 
## object.
x1 <- GRangesList(x1)

## Next, object 'x1' is transformed into a AutomorphismList-class object
as.AutomorphismList(x1)

genomaths/GenomAutomorphism documentation built on May 10, 2024, 12:11 a.m.