<html><div style='background-color:'><DIV class=RTE>Dear all,</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>I am experiencing difficulties with setting the spot types after reading in Imagene files:</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>&gt; targets &lt;- readTargets() # read in Targets.txt from working dir<BR>&gt; targets<BR>&nbsp; SlideNumber&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileNameCy3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FileNameCy5&nbsp;&nbsp; Cy3&nbsp; Cy5<BR>1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 0_Cy3_Slide1.txt 1_Cy5_Slide1.txt Test1 Ref1<BR>2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2 0_Cy3_Slide2.txt 1_Cy5_Slide2.txt Test2 Ref2<BR>&gt; files &lt;- cbind(targets$FileNameCy3, targets$FileNameCy5)&nbsp; # This step is necessary for imagene files!<BR>&gt; files <BR>&nbsp;&nbsp;&nbsp;&nbsp; [,1]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [,2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>[1,] "0_Cy3_Slide1.txt" "1_Cy5_Slide1.txt"<BR>[2,] "0_Cy3_Slide2.txt" "1_Cy5_Slide2.txt"<BR>&gt; RG &lt;- read.maimages(files, source="imagene")&nbsp; # read in the files<BR>Read header information<BR>Read 0_Cy3_Slide1.txt <BR>Read 1_Cy5_Slide1.txt <BR>Read 0_Cy3_Slide2.txt <BR>Read 1_Cy5_Slide2.txt <BR>&gt; types &lt;- readSpotTypes() # read from SpotTypes.txt<BR>&gt; types<BR>&nbsp; SpotType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID&nbsp; Name Color<BR>1&nbsp;&nbsp;&nbsp;&nbsp; Gene&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp; * black<BR>2&nbsp;&nbsp;&nbsp;&nbsp; Spot Control&nbsp; Spot brown<BR>3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COT Control&nbsp;&nbsp; COT brown<BR>4&nbsp;&nbsp;&nbsp;&nbsp; Dros Control Dros* brown<BR>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cy3 Control&nbsp;&nbsp; Cy3 green<BR>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cy5 Control&nbsp;&nbsp; Cy5&nbsp;&nbsp; red<BR>&gt; status &lt;- controlStatus(types,RG)<BR>Matching patterns for:&nbsp; <BR>Error in matrix(unlist(value, recursive = FALSE, use.names = FALSE), nrow = length(rn),&nbsp; : <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; attempt to set an attribute on NULL<BR>&gt; </DIV>
<DIV class=RTE>As far as I know this is what the manual suggests. What am I doing wrong?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Kind regards,</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE>Edo Plantinga<BR></DIV></div><br clear=all><hr>Protect your inbox from harmful viruses with new ninemsn Premium. <a href="http://g.msn.com/8HMAENAU/2746??PS="> Upgrade now!</a> </html>