create_group: Subsets an Assay dataframe into smaller groups

Description Usage Arguments Value Author(s) Examples

View source: R/create_group.R

Description

This function subsests an user defined Assay into smaller groups according to user supplied instructions.

Usage

1
2
3
4
5
create_group(name, group_names = NULL,
                grouping_factor = NULL,
                comparison = NULL,
                condition = NULL
                )

Arguments

name

Name of the "MultiAssayExperiment"" object containing the assay data

group_names

A vector containing the user defined names of the groups to be created

grouping_factor

name of the dataframe on which grouping will be done

comparison

A vector of comparison symbols such as >, <, ==, >=, <=,%in%, etc

condition

A vector of conditions corresponding to 'comparison'. "condition"" should be a vector or range of digits (e.g. c(1,3,7,9) or 1:5) if%in% is chosen as comparison. Otherwise, a single digit should be chosen.

Value

returns the group membership of individuals as a dataframe

Author(s)

Subhadeep Das <subhadeep1024@gmail.com>

Examples

1
2
3
4
5
6
7
groupinfo <- create_group(name = multi_assay,
group_names = c("WE","RE","NE","IntE"),
grouping_factor = "CAGE",
comparison = c(">=","%in%","==","%in%"),
condition = c("25","1:5","0","6:24"))

head(groupinfo)

subhadeep1024/OMICsPCA documentation built on March 17, 2020, 5:23 p.m.