[Biojava-l] Colorful sequence logo for the transcription factor binding sites?

Thomas Down td2 at sanger.ac.uk
Mon May 22 13:07:19 UTC 2006


On 17 May 2006, at 15:46, Xiaoqing Zhang wrote:

>  Hi,
>
> I am trying to draw some TFBS logo with different colors, the  
> classes I found
> under org.biojava.bio.gui can only draw black and grey. Anyone has  
> some
> suggestions about where I can find a java package for colorful  
> sequence logo?

BioJava can produce coloured logos, but you need to specify a class  
which defines the "palette" of colors to use.  Try something like:

              DistributionLogo dl = new DistributionLogo();
              dl.setStyle(new DNAStyle(false));          // define a  
palette
              // ...

Hope this helps,

            Thomas.



More information about the Biojava-l mailing list