Help with gene model diagram

Tim Holmes's Avatar

Tim Holmes

29 Jan, 2013 04:02 AM

We think Nodebox is really cool, but we can't seem to get it to do what we want (make gene models) in a way we are happy with.
We have been able to make something very similar in Nodebox using maths (to render groups of a shape and then group these together) rather than converting values into symbols, but it should be simpler...
We can do everything needed except get a string containing 'aaabbbaaabbaaa' to replace the 'a's with one shape and the 'b's with another (along a line/path).
Our apologies for asking you to do support for us, but we are both really keen to use Nodebox and share methods.
A copy of the illustration we are trying to duplicate is attached - it was made in InDesign using a find and replace function.
Best wishes,
Tim Holmes
Roy Storey

  1. Support Staff 1 Posted by lucasnijs on 29 Jan, 2013 01:07 PM

    lucasnijs's Avatar

    Hello Tim, Roy,

    Here is a way to do it. As you will notice my strings are for the moment cut into separate characters divided by a semicolon. The strings themselves by a comma. In the subnetwork each string is processed and each character gets it shape. The zip_map node is the key here.
    In the next release there is a "characters" node that will make the above work alot easier since it will split each string into its characters. Anyway, I attached a sample file, which will be obsolete for a big part with the next release,



  2. lucasnijs closed this discussion on 29 Jan, 2013 01:07 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Jun, 2024 12:57 PM
19 Jun, 2024 09:35 AM
15 Jun, 2024 01:44 PM
08 Jun, 2024 09:05 AM
08 Jun, 2024 09:00 AM