Description Usage Arguments Value Author(s) See Also Examples
View source: R/interestResultIntEx.R
Building SummarizedExperiment-class
object
from an intron retention and an exon-exon junction results in IntEREst. The
average of the junction levels are added to the SummerizedExperiment object of
the intron retentions.
1 2 |
intObj |
A |
exObj |
A |
intExCol |
Column name (or number) in the |
mean.na.rm |
Whether exclude missing values when measuring the mean. |
postExName |
The postfix to use for the column names of the exons junction values in the |
Returns an object of class SummarizedExperiment
.
Ali Oghabian
SummarizedExperiment-class
attributes
addAnnotation
counts-method
plot-method
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | testIntObj<- InterestResult(
resultFiles= paste(paste("testFile",1:3, sep="_"),"bam", sep="."),
counts= matrix(1:15, ncol=3, nrow=5, byrow=TRUE,
dimnames= list(c(), paste("s", 1:3, sep="_"))),
scaledRetention= matrix(1:15, ncol=3, nrow=5, byrow=TRUE,
dimnames= list(c(), paste("s", 1:3, sep="_"))),
scaleLength= FALSE,
scaleFragment= FALSE,
sampleAnnotation= data.frame(
files=paste(paste("testFile",1:3, sep="_"),"bam", sep="."),
names=paste("s", 1:3, sep="_"),
row.names=paste("s", 1:3, sep="_")),
rowData=data.frame(id= paste("i", 1:5, sep="_"),
chr= rep("chr1", 5),
begin=seq(100, by=100, length.out=5 ),
end=seq(110, by=100, length.out=5 ),
strand=rep("+",5))
)
testExObj<- InterestResult(
resultFiles= paste(paste("testFile",1:3, sep="_"),"bam", sep="."),
counts= matrix(1:30, ncol=3, nrow=10, byrow=TRUE,
dimnames= list(c(), paste("s", 1:3, sep="_"))),
scaledRetention= matrix(1:30, ncol=3, nrow=10, byrow=TRUE,
dimnames= list(c(), paste("s", 1:3, sep="_"))),
scaleLength= FALSE,
scaleFragment= FALSE,
sampleAnnotation= data.frame(
files=paste(paste("testFile",1:3, sep="_"),"bam", sep="."),
names=paste("s", 1:3, sep="_"),
row.names=paste("s", 1:3, sep="_")),
rowData=data.frame(id= paste("e", 1:10, sep="_"),
chr= rep("chr1", 10),
begin= c(seq(90, by=100, length.out=5),
seq(111, by=100, length.out=5)),
end= c(seq(99, by=100, length.out=5),
seq(120, by=100, length.out=5 )),
strand=rep("+",10))
)
(testIntExObj<- interestResultIntEx(intObj=testIntObj, exObj=testExObj,
mean.na.rm=TRUE, postExName="ex_junc" ) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.