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

06 Feb, 2025 01:37 AM
04 Feb, 2025 06:32 AM
04 Feb, 2025 05:04 AM
30 Jan, 2025 09:31 AM
30 Jan, 2025 09:08 AM

 

30 Jan, 2025 08:40 AM
24 Jan, 2025 07:50 AM
22 Jan, 2025 11:42 PM
21 Jan, 2025 09:43 AM
21 Jan, 2025 09:41 AM
21 Jan, 2025 09:36 AM