createResultTable: Creates a user readable result table for the test samples of...

Description Usage Arguments Value Examples

View source: R/output.R

Description

Creates a user readable result table for the test samples of the genes of interest

Usage

1
2
createResultTable(resultlist, XandCB, countWindows, selectedGenes = NULL,
  sampleNames)

Arguments

resultlist

result object of runPanelcnMops

XandCB

GRanges object of combined read counts of test samples and control samples as returned by getRCRanges or countBamListInGRanges

countWindows

data.frame with contents of a BED file as returned by getWindows

selectedGenes

vector of names of genes of interest that should be displayed or NULL if all genes are of interest. Default = NULL

sampleNames

names of the test samples (basename of the BAM files)

Value

a data.frame containing the results for the test samples within the genes of interest

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(panelcn.mops)
XandCB <- test
elementMetadata(XandCB) <- cbind(elementMetadata(XandCB), 
                                elementMetadata(control))
sampleNames <- colnames(elementMetadata(test))
selectedGenes <- "ATM"
resulttable <- createResultTable(resultlist = resultlist, XandCB = XandCB, 
                                    countWindows = countWindows, 
                                    selectedGenes = selectedGenes, 
                                    sampleNames = sampleNames)

panelcn.mops documentation built on Nov. 8, 2020, 7:56 p.m.