ReadIn data
csv file:
In=read.csv("FileName", stringsAsFactors=F, row.names=1, header=T)
Data=data.matrix(In)
txt file:
In=read.table("FileName", stringsAsFactors=F, row.names=1, header=T)
Data=data.matrix(In)
check str(Data) and make sure it is a matrix instead of data frame. You may need to play around with the row.names and header option depends on how the input file was generated.
GetDEResults() function not found
Visualizing DE genes/isoforms
To generate a heatmap, you may consider the heatmap.2 function in gplots package.For example, you may run
heatmap.2(NormalizedMatrix[GenesOfInterest,], scale="row", trace="none", Colv=F)
The normalized matrix may be obtained from GetNormalizedMat() function.
My favorite gene/isoform has NA in PP (status "NoTest"):
The NoTest status comes from two sources1) Using the default parameter settings of EBMultiTest(), the functionwill not test on genes with more than 75% values < 10 to ensure bettermodel fitting. To disable this filter, you may set Qtrm=1 andQtrmCut=0.2) numerical over/underflow in R. That happens when the withincondition variance is extremely large or small. I did implemented a numericalapproximation step to calculate the approximated PP for these geneswith over/underflow. Here I use 10^-10 to approximate the parameter pin the NB distribution for these genes (I set it to a small valuesince I want to cover more over/underflow genes with lowwithin-condition variation). You may try to tune this value (to a larger value) in theapproximation by setting ApproxVal in EBTest() or EBMultiTest() function.