Design puzzles and insert and delete segment.

Case number:845813-997116
Topic:Game: Tools
Opened by:viosca
Opened on:Tuesday, February 25, 2014 - 11:45
Last modified:Tuesday, February 25, 2014 - 20:47

Unless there is a specific reason, it would be nice if the design puzzles had insert and delete segment enabled. when working on large designs, sometimes late in the game you discover that you should have an extra segment in a loop or SS.

It's a real time consumer and problematic to have to shuffle it all around after the fact.


(Tue, 02/25/2014 - 11:45  |  2 comments)

Joined: 09/21/2011
Groups: Void Crushers

A Workaround:
Suppose you want to remove segment number Y and add it on position X.
Then change almost all segments between Y and X to a sheet, making sure you have enough loop segments at both ends. Select in selection interface everything from Y to X and shift the sheet in the direction of X.
(Use cuts if needed).

Then execute the following script (V2) if X > Y:
for i=Y,X-1 do structure.SetAminoAcid(i,structure.GetAminoAcid(i+1)) end

or if Y > X
for i=Y,X+1,-1 do structure.SetAminoAcid(i,structure.GetAminoAcid(i-1)) end

Hope this helps.

brow42's picture
User offline. Last seen 1 year 29 weeks ago. Offline
Joined: 09/19/2011
Groups: None

I wrote to try to automate this, but it's kinda wonky. Maybe it works for you, though.


Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, Boehringer Ingelheim, RosettaCommons