Questions about the Affy package....
2
0
Entering edit mode
@joshua-betcher-19
Last seen 9.6 years ago
I have been going through the code for this package and I have a few questions and comments: 1) For normalize.Plob.loess, slot names that do not exist are used. 2) As I have looked through the help files there does not appear to be any examples of the use of the read.cdfile, read.affy, etc.. Does anyone happen to have example files that these functions could be used on? 3) Is there equivalent function to optim in splus? It was mentioned in the code that maybe nlminb could be used; could someone explain this further? Thanks everyone for your help Josh
• 805 views
ADD COMMENT
0
Entering edit mode
@peter-dimitrov-39
Last seen 9.6 years ago
On Tue, 2002-06-11 at 12:31, Joshua Betcher wrote: > I have been going through the code for this package and I have a few > questions and comments: > > 1) For normalize.Plob.loess, slot names that do not exist are used. > > 2) As I have looked through the help files there does not appear to be any > examples of the use of the read.cdfile, read.affy, etc.. Does anyone happen > to have example files that these functions could be used on? > > 3) Is there equivalent function to optim in splus? It was mentioned in the > code that maybe nlminb could be used; could someone explain this further? > > Thanks everyone for your help > Josh > Let me add 2 bugs for normalize.Plob.invariantset: 1) When called from express(), it dumps the following error: Error in normalize.Plob.invariantset(object, ...) : unused argument(s) (span ...) Easy fix is to add the optional "three dots" argument. 2) Once 1 is fixed, normalize.Plob.invariantset has trouble with the result of approx() function, which by default returns NA, when trying to approximate outside of the initial range(rule=1). Easy fix is to set the value of parameter rule to 2. In this case approx will return min(y)/max(y) accordingly. I use affy_1.1.0.tar.gz, R-1.5.0 on RH 7.2 Linux P3 machine. Peter Dimitrov P.S. This is the code of normalize.Plob.invariantset that I currently use: "normalize.Plob.invariantset" <- function (container, prd.td = c(0.003, 0.007), progress = FALSE,...) { nc <- ncol(pm(container)) np <- nrow(pm(container)) refindex <- trunc(median(rank(apply(pm(container),2,mean)))) for (i in (1:nc)[-refindex]) { if (progress) cat("normalizing array", attr(container[[i]], "name"), "...") tmp <- normalize.invariantset(pm(container)[, i], pm(container)[, refindex], prd.td) pm(container)[, i] <- as.numeric(approx(tmp$n.curve$y, tmp$n.curve$x, xout = container@pm[, i])$y, rule=2) mm(container)[, i] <- as.numeric(approx(tmp$n.curve$y, tmp$n.curve$x, xout = mm(container)[, i])$y, rule=2) container@notes <- "normalized by invariant set" if (progress) cat("done.\n") } return(container) }
ADD COMMENT
0
Entering edit mode
Laurent Gautier ★ 2.3k
@laurent-gautier-29
Last seen 9.6 years ago
On Tue, Jun 11, 2002 at 03:31:11PM -0400, Joshua Betcher wrote: > I have been going through the code for this package and I have a few > questions and comments: > > 1) For normalize.Plob.loess, slot names that do not exist are used. ..ouch... this is a bug... should be fixed by tomorrow... > > 2) As I have looked through the help files there does not appear to be any > examples of the use of the read.cdfile, read.affy, etc.. Does anyone happen > to have example files that these functions could be used on? > We will try to put examples as soon as possible. If you experience difficulties with using some the functions, do not hesitate to mail in this very same list. > 3) Is there equivalent function to optim in splus? It was mentioned in the > code that maybe nlminb could be used; could someone explain this further? > As the comments say, S-plus code was adapted. One particular optimization function seemed to have no exact equivalent and I did my best to find a matching one. The comments state it in case somebody wants to noodle with it. > Thanks everyone for your help Thanks for your report. Do not hesitate to mail again... > Josh > Laurent -------------------------------------------------------------- Laurent Gautier CBS, Building 208, DTU PhD. Student D-2800 Lyngby,Denmark tel: +45 45 25 24 85 http://www.cbs.dtu.dk/laurent
ADD COMMENT

Login before adding your answer.

Traffic: 956 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