Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Dynamic Chromosome Mapping

by injunjoel (Priest)
on Nov 11, 2003 at 21:19 UTC ( #306369=note: print w/replies, xml ) Need Help??


in reply to Dynamic Chromosome Mapping

Greetings all,
Though this is not really a Perl question per se...( it is Biology related so I'll give it a shot)
I would suggest one method for getting your desired result. You could do this all with HTML styles in a table. This way you could create the graphic for your centromere and telomeres then insert those into the table at the ends or where ever your centromere lies. You could then use the bgcolor attribute of the <td> tag to switch colors based on your criteria (and provide popups for explainations and such if you wanted using JavaScript). This way you are creating the chromosome map with HTML and you don't have to worry about learning GD or Image::Magick to manipulate images, there will only be 3 graphics tops and they will always stay the same. Not to mention if you write this logic well enough perhaps your colleagues might be able to use it to.
Does that make sense?
let me know if you have questions.
-injunjoel

Replies are listed 'Best First'.
Re: Re: Dynamic Chromosome Mapping
by chanio (Priest) on Nov 12, 2003 at 04:32 UTC
    Yes,

    As the graphic is a vertical one you could, 4 example: cut every segment in a .gif or .png image. And (with perl) use a table to fix them in every cell of the same column. Those segments might be transparent with only their particular white background. Later, every table´s cell would have a different class name that would address to certain characteristics in it's background color. But since the picture's background color is always white, and only the solid is transparent. By changing the cell's background, programatically, you could change the segment's color.

    Your script should change the CSS class color, and by this, you might change that segment's color. Or you might need to change several classes' colors, and that is the same effect with a lot of table cells with that same color.

Re: Re: Dynamic Chromosome Mapping
by Itatsumaki (Friar) on Nov 11, 2003 at 23:50 UTC
    That's a real interesting approach, I'll look into that. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://306369]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-01-21 04:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?