Entering edit mode
michelle_low
▴
50
@michelle_low-5267
Last seen 10.3 years ago
Hi all,
I have a list of gene symbols generated from the differential
expression analysis below. How do I convert these symbols to emsembl
id? Thanks
Regards,
Michelle
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-mingw32/x64 (64-bit)
> library(affy)
> library(limma)
> pd=read.AnnotatedDataFrame("phenodata.txt",header=TRUE,sep="",row
.names=1)
>
a=ReadAffy(filenames=rownames(pData(pd)),phenoData=pd,verbose=TRUE)
1 reading Control-1.cel ...instantiating an AffyBatch (intensity a
1004004x6 matrix)...done.
Reading in : Control-1.cel
Reading in : Control-2.cel
Reading in : Dicer-1.cel
Reading in : Dicer-2.cel
Reading in : Drosha-1.cel
Reading in : Drosha-2.cel
> x=rma(a)
Loading required package: AnnotationDbi
Background correcting
Normalizing
Calculating Expression
Warning message:
package âAnnotationDbiâ was built under R version 2.14.2
> c=paste(pd$treatment,pd$n,sep="")
> f=factor(c)
> design=model.matrix(~0+f)
> colnames(design)=levels(f)
> fit=lmFit(x,design)
> library(mouse4302.db)
Loading required package: org.Mm.eg.db
Loading required package: DBI
Warning messages:
1: package âRSQLiteâ was built under R version 2.14.2
2: package âDBIâ was built under R version 2.14.2
> library(annotate)
Warning message:
package âannotateâ was built under R version 2.14.2
> fit$genes$Symbol <- getSYMBOL(fit$genes$ID,"mouse4302.db")
> contrast.matrix=makeContrasts(E1="present-absent.Dicer",E2
="present-absent.Drosha",E3="absent.Drosha-
absent.Dicer",levels=design)
> fit2=contrasts.fit(fit,contrast.matrix)
>
> fit2=eBayes(fit2)
>
> results1 <-topTable (fit2, coef=1,
p.value=0.0001,number=nrow(fit2))
> write.table(results1, file="control-Dicer5.txt")
> results2 <-topTable (fit2, coef=2,
p.value=0.0001,number=nrow(fit2))
> write.table(results2, file="control-Drosha5.txt")
> results3 <-topTable (fit2, coef=3,
p.value=0.0001,number=nrow(fit2))
> results=decideTests(fit2)
> summary(results2)
> b=venncounts(results2)
> print(b)
> vennDiagram(results)
> a=vennDiagram(results,include=c("up","down"),counts.col=c("red","
green"))
[[alternative HTML version deleted]]