extract_assay {OMICsPCA} | R Documentation

## Data extraction from "MultiAssayExperiment" object

### Description

Extraction of individuals according to user supplied group and Assay

### Usage

    extract_assay(name, Assay, groups, groupinfo = NULL,
    addgroupnames = TRUE)

### Arguments

`name` | name of the "OMICs" object from which data is to be retrieved.
`Assay` | name of the "Assay" from which data is to be retrieved.
`groups` | name of the "groups" from which data is to be retrieved.
`groupinfo` | output of create_group() or similar object
`addgroupnames` | logical argument. If "TRUE", adds the group membership info of returned individuals

### Value

a data frame containing the intended information

### Author(s)

Subhadeep Das

### Examples

    x <- extract_assay(name = multi_assay, Assay = "H2az",
    groups = c("WE","RE"), groupinfo = groupinfo_ext)

    x

[Package OMICsPCA version 1.4.0 Index]