addNewSamples: Extends an exisiting qseaSet by new samples

Description Usage Arguments Value Author(s) Examples

View source: R/qsea.createSet.R

Description

This function allows the qseaSet to be extended by new samples, provided in the sample table.

Usage

1
addNewSamples(qs, sampleTable, force=FALSE, parallel=FALSE)

Arguments

qs

The qseaSet object to be extended

sampleTable

data.frame, describing the samples. Must be in same format as getSampleTable(qs)

force

force adding of new samples, even if existing CNV or enrichment information requires recomputation

parallel

parallel processing of alignment files

Value

An object of class qseaSet, including the new samples.

Author(s)

Mathias Lienhard

Examples

1
2
3
4
5
6
7
8
9
library("BSgenome.Hsapiens.UCSC.hg19")
data(samplesNSCLC, package="MEDIPSData")
path=system.file("extdata", package="MEDIPSData")
samples_NSCLC$file_name=paste0(path,"/",samples_NSCLC$file_name )
originalQseaSet=createQseaSet(sampleTable=samples_NSCLC[1:4,], 
        BSgenome="BSgenome.Hsapiens.UCSC.hg19", chr.select="chr22", 
        window_size=500)
originalQseaSet=addCoverage(originalQseaSet, uniquePos=TRUE, paired=TRUE)
qseaSet=addNewSamples(originalQseaSet, samples_NSCLC)

qsea documentation built on Nov. 8, 2020, 8:28 p.m.