mitch_import: mitch_import

Description Usage Arguments Value Examples

View source: R/mitch.R

Description

This function imports differential omics data from common differential tools like edgeR, limma and DESeq2. It calculates a summarised differential expression metric by multiplying the sign of the log fold change by the -log10 of the p-value. If this behaviour is not desired, mitch_import can be bypassed in favour of another scoring metric.

Usage

1
mitch_import(x, DEtype, geneIDcol = NULL, geneTable = NULL, joinType = NULL)

Arguments

x

a list of differential expression tables

DEtype

the program that generated the differential expression table Valid options are 'edgeR', 'DESeq2', 'limma', 'ABSSeq', 'Sleuth', 'Seurat', 'topConfects', 'muscat', 'Swish', 'scDE', 'MAST', 'DEsingle', 'ballgown', 'NOIseq', 'TCC', 'DEDS', 'cuffdiff', 'fishpond', 'missMethyl', 'DMRcate', 'DEP', 'msmsTests', 'plgem', 'SDAMS', 'DEqMS', 'DiffBind' and 'prescored'. Where 'prescored' is a dataframe containing the test statistic and gene ID (either in rowname or separate column) and nothing else. 'preranked' is an alias for 'prescored'.

geneIDcol

the column containing gene names. If gene names are

geneTable

a 2 column table mapping gene identifiers in the profile to gene identifiers in the gene sets.

joinType

the type of join to perform, either 'inner' or 'full'. By default, joins are 'inner' except for Seurat and muscat where full is used. specified as row names, then geneIDcol=NULL.

Value

a multi-column table compatible with mitch_calc analysis.

Examples

1
2
3
4
5
# first step is to create a list of differential profiles
data(rna,k9a,k36a)
x<-list('rna'=rna,'k9a'=k9a,'k36a'=k36a)
# import as edgeR table 
imported<-mitch_import(x,DEtype='edger')

mitch documentation built on Nov. 8, 2020, 6 p.m.