correct.guided: Guided Correction

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Guided by the coefficients estimated from lm.estimate, the bias correction could be performed.

Usage

1
correct.guided(coe.train, obj.test)

Arguments

coe.train

a 1-column matrix of coefficients estimated from training data by lm.estimate

obj.test

an object of testing dataset generated from counts.preprocess and index.preprocess

Details

Besides of corrected reads, β\mathit{x} will be also calculated.

Value

a matrix will be returned containing reads counts before and after correction and β\mathit{x} as well.

Author(s)

Guoshuai Cai

References

Cai G, RNA-SEQUENCING APPLICATIONS: GENE EXPRESSION QUANTIFICATION AND METHYLATOR PHENOTYPE IDENTIFICATION, Ph.D. Thesis, 2013

See Also

lm.estimate, counts.preprocess, index.preprocess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
word<-81

data(obj.index)
data(train.dat.seq)
data(train.dat.counts)
data(test.dat.seq)
data(test.dat.counts)

#train

train.index<-index.preprocess(train.dat.seq,word)
obj.train<-counts.preprocess(train.dat.counts)
obj.train[["index"]]<-train.index

coe.lm<-lm.estimate(obj.train,fit.cut.train=5)

#test

test.index<-index.preprocess(test.dat.seq,word)
obj.test<-counts.preprocess(test.dat.counts)
obj.test[["index"]]<-test.index

test.corrected<-correct.guided(coe.lm,obj.test)

GCAI.bias documentation built on May 1, 2019, 8:18 p.m.