[BioC] exclude flagged spots in limma
    J.delasHeras at ed.ac.uk 
    J.delasHeras at ed.ac.uk
       
    Fri Aug  4 14:49:02 CEST 2006
    
    
  
Quoting Yolande Tra <yvtsma at rit.edu>:
> Hi Jose,
>
> Thank you for your reply. One problem is that value of 1 was assigned 
> for bad spots and 0 for good ones. Is there a way to switch these 
> values?
>
> Yolande
Of course you can switch them.
If you already made a matrix from your flags (oldmatrix), and contain 
ONLY the value 0 or
1, and you want to switch them over... just do this:
newmatrix<-abs(oldmatrix-1)
done.
If you have other values then you may want to use the 'if else' clauses 
within a loop
('for') checking every element of the matrix, and then you can specify 
what values to
substitute for... if you have a problem with this just shout.
Jose
-- 
Dr. Jose I. de las Heras                      Email: J.delasHeras at ed.ac.uk
The Wellcome Trust Centre for Cell Biology    Phone: +44 (0)131 6513374
Institute for Cell & Molecular Biology        Fax:   +44 (0)131 6507360
Swann Building, Mayfield Road
University of Edinburgh
Edinburgh EH9 3JR
UK
    
    
More information about the Bioconductor
mailing list