Help with gene model diagram

Tim Holmes's Avatar

Tim Holmes

29 Jan, 2013 04:02 AM

Hi,
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,

    regards,

    Lucas

  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

Generic

? 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

29 May, 2024 05:47 AM
29 May, 2024 05:15 AM
29 May, 2024 05:12 AM
28 May, 2024 07:37 PM
25 May, 2024 11:52 AM

 

24 May, 2024 07:39 AM
16 May, 2024 02:11 AM
14 May, 2024 01:29 AM
12 May, 2024 07:46 PM
05 May, 2024 04:38 PM
03 May, 2024 06:50 AM