extract-methods: An S4 class to extract elements for objects created with...

[,AutomorphismList,ANY-methodR Documentation

An S4 class to extract elements for objects created with GenomAutomorphism package

Description

First and second level subsetting of 'x'. Extraction using names can be done as x$name.

Usage

## S4 method for signature 'AutomorphismList,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'ListCodonMatrix,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'MatrixSeq,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'AutomorphismList'
x[[i, j, ...]]

## S4 method for signature 'ListCodonMatrix'
x[[i, j, ...]]

## S4 method for signature 'AutomorphismList'
x$name

## S4 method for signature 'ListCodonMatrix'
names(x)

## S4 method for signature 'ListCodonMatrix'
x$name

## S4 method for signature 'MatrixSeq'
x$name

## S4 replacement method for signature 'MatrixSeq'
names(x) <- value

Arguments

x

An object from AutomorphismList, ListCodonMatrix, or MatrixSeq.

i, j, ...

As in Extract.

name

Element name in the list 'x'.

value

A character vector of up to the same length as x, or NULL.

Value

An object from AutomorphismList, ListCodonMatrix, or MatrixSeq class.

Author(s)

Robersy Sanchez https://genomaths.com

Robersy Sanchez (https://genomaths.com).

Examples

## Load automorphisms found BRCA1 primate genes
data("brca1_autm", package = "GenomAutomorphism")

## Extract AutomorphismList object with only one element
brca1_autm[1]

## Extract Automorphism object with only one element
brca1_autm[[3]]

## Extract Automorphism object using element name.
brca1_autm[["human_1.gorilla_1"]]

genomaths/GenomAutomorphism documentation built on Dec. 12, 2024, 2:12 p.m.