GetAnalysisTable {grandR}R Documentation

Obtain a table of analysis results values

Description

This is the main function to access analysis results. For slot data, use GetTable (as a large matrix) or GetData (as tidy table).

Usage

GetAnalysisTable(
  data,
  analyses = NULL,
  regex = TRUE,
  columns = NULL,
  genes = Genes(data),
  by.rows = FALSE,
  gene.info = TRUE,
  name.by = "Symbol",
  prefix.by.analysis = TRUE
)

Arguments

data

A grandR object

analyses

One or several regex to be matched against analysis names (Analyses); all analysis tables if NULL

regex

Use regex for analyses (TRUE) or don't (FALSE, i.e. must specify the exact name)

columns

Regular expressions to select columns from the analysis table (all have to match!); all columns if NULL

genes

Restrict the output table to the given genes

by.rows

if TRUE, add rows if there are multiple analyses; otherwise, additional columns are appended; TRUE also sets prefix.by.analysis to FALSE!

gene.info

Should the table contain the GeneInfo values as well (at the beginning)?

name.by

A column name of Coldata(data). This is used as the rownames of the output table

prefix.by.analysis

Should the column names in the output prefixed by the analysis name?

Details

The names for the output table are <Analysis name>.<columns name>

Value

A data frame containing the analysis results

See Also

GetTable,GetData,Genes

Examples

sars <- ReadGRAND(system.file("extdata", "sars.tsv.gz", package = "grandR"),
                  design=c("Condition",Design$dur.4sU,Design$Replicate))
sars<-LFC(sars,contrasts=GetContrasts(sars,group = "duration.4sU"))
head(GetAnalysisTable(sars,columns="LFC"))


[Package grandR version 0.2.5 Index]