mas5 normalization gives negative values
1
0
Entering edit mode
Angel ▴ 40
@angel-7981
Last seen 7.1 years ago
Berlin

hi,

i am normalizing my CEL files with mas5 but i had negative values then i did like below befor log transformation but

library(affy)

Data<-ReadAffy()

eset<-mas5(Data)

norm.data <- sweep(exprs(eset), abs(min(exprs(eset))) + 5, "+")

Error in if (lstats > prod(dimmargin)) { : 
  missing value where TRUE/FALSE needed

then what to do?? tell me a solution please

thank you

affy mas5 • 1.4k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 6 hours ago
United States

Re-read the help page for sweep.

ADD COMMENT
0
Entering edit mode

i could not get anything :(

what i did wrong please?

ADD REPLY
1
Entering edit mode

It's likely regarding your second argument to the call to sweep, but if all you are trying to do is to add the same small constant to all the values in your matrix, you could also simply do:

norm.data <- exprs(eset) + abs(min(exprs(eset)))
ADD REPLY
0
Entering edit mode

thank you, I was going to do log2 transformation on my norm.data because mas5 result were too big while i had negative values then by your tip i don't have negative value anymore but after log transformation i have negative value again

> mycounts <- log2(norm.data)
> head(mycounts[,1:4])
          Col-0 24h primed.CEL.CEL Col-0 24h unprimed.CEL.CEL
244901_at                 9.098992                  7.7423665
244902_at                 6.509487                  5.3400972
244903_at                 9.173553                  9.2231098
244904_at                -1.496849                 -0.1344298
244905_at                 1.169922                  0.7548389
244906_at                 7.473863                  5.3282473
          Col-0 48h primed.CEL.CEL Col-0 48h unprimed.CEL.CEL
244901_at                 7.936468                  7.5260384
244902_at                 5.147705                  5.4040515
244903_at                 7.568202                  7.8444385
244904_at                -1.163557                 -0.7156607
244905_at                 1.657202                  1.9424205
244906_at                 6.033295                  5.3367284
> what is the solution please

thank you

ADD REPLY
1
Entering edit mode

There is no solution, as none is needed. Taking logs of a number between 0 and 1 will result in a negative value. But this isn't a problem for any down-stream processing steps.

ADD REPLY
0
Entering edit mode

thank you very much

ADD REPLY

Login before adding your answer.

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