newbie question: how do I get affy annotations
3
0
Entering edit mode
Hao Liu ▴ 130
@hao-liu-618
Last seen 10.2 years ago
Dear All: can someone teach me how to get affy libraries into R? I just tried library(hu6800) and I doubt if there are any other libraries there. Best regards Hao Liu, Ph. D
affy affy • 1.4k views
ADD COMMENT
0
Entering edit mode
Anna Cao ▴ 90
@anna-cao-561
Last seen 10.2 years ago
Hi, I'm trying to plot a vector of log ratios using the imageplot functions but it keeps telling me my dimensions are incorrect. Here's what I did. x <- dir(pattern="test.txt") # where test.txt contains a 16200 by 12 matrix of numbers (with NAs) x <- read.delim(x, header=TRUE) y <- c(x[1]) imageplot(y,layout=list(ngrid.r=5,ngrid.c=12,nspot.r=30,nspot.c=9)) And this is the error message: Error in imageplot(y, layout = list(ngrid.r = 5, ngrid.c = 12, nspot.r = 30, : Number of image spots does not agree with layout dimensions I check the dimension of y and it's indeed 16200. > dim(data.frame(y)) [1] 16200 1 What am I doing wrong? Thanks!! Anna
ADD COMMENT
0
Entering edit mode
> Hi, > > I'm trying to plot a vector of log ratios using the imageplot functions > but it keeps telling me my dimensions are incorrect. > > Here's what I did. > > x <- dir(pattern="test.txt") > # where test.txt contains a 16200 by 12 matrix of numbers (with NAs) x > <- read.delim(x, header=TRUE) > y <- c(x[1]) > imageplot(y,layout=list(ngrid.r=5,ngrid.c=12,nspot.r=30,nspot.c=9)) > > > And this is the error message: > Error in imageplot(y, layout = list(ngrid.r = 5, ngrid.c = 12, nspot.r = > 30, : > Number of image spots does not agree with layout dimensions > > > I check the dimension of y and it's indeed 16200. >> dim(data.frame(y)) > [1] 16200 1 > > What am I doing wrong? If you look at the help page for 'imageplot', you'll see that the first argument is expected to be a "numeric vector or array". You're giving it a list, as you could check for yourself by typing 'class(y)'. Your object 'y' doesn't have any dimensions and has length 1, which you'd see if you typed 'dim(y)'. All would work fine if you extracted 'y' from 'x' using 'y <- x[,1]' or converted 'y' to numeric using 'y <- as.numeric(y)'. Gordon > Thanks!! > > Anna
ADD REPLY
0
Entering edit mode
@mai98ftustudservuni-leipzigde-338
Last seen 10.2 years ago
Go the BioConductor website www.bioconductor.org) and click on "Software: How To" to get general information on how to install BioConductor packages. Then click on "MetaData". There you will find dozens of annotation packages to download and install in R. J. Quoting Hao Liu <liuha@umdnj.edu>: > Dear All: > > can someone teach me how to get affy libraries into R? I just tried > library(hu6800) > > and I doubt if there are any other libraries there. > > > Best regards > > Hao Liu, Ph. D > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor >
0
Entering edit mode
John Zhang ★ 2.9k
@john-zhang-6
Last seen 10.2 years ago
>can someone teach me how to get affy libraries into R? I just tried >library(hu6800) Bioconductor's MetaData section contains a list of annotation libraries for affy chips. To get a annotation library(e.g. hgu95av2), you may try: > library("reposTools") > install.packages2("hgu95av2") > library("hgu95av2") > >and I doubt if there are any other libraries there. > > >Best regards > >Hao Liu, Ph. D > >_______________________________________________ >Bioconductor mailing list >Bioconductor@stat.math.ethz.ch >https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor
ADD COMMENT

Login before adding your answer.

Traffic: 1002 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6