Back to Recipes Homepage
recipe picture
Recipe: Freeze Selected 1.0
Created by LociOiling 8 1
5
Your rating: None Average: 5 (2 votes)

Profile

Name: Freeze Selected 1.0
ID: 103337
Created on: Sun, 03/22/2020 - 13:39
Updated on: Sun, 03/22/2020 - 20:39
Description:

Freezes selected segment, optionally adding backbone "pegs" (strong zero-length bands). Requires selection interface. From a suggestion by Keresto, with some code from Paul Dunn.



Best For


Comments

LociOiling's picture
User offline. Last seen 2 hours 7 min ago. Offline
Joined: 12/27/2012
Groups: Beta Folders
freeze/peg selected segments

Thanks to Keresto for suggesting this recipe. Thanks to Paul Dunn for the basis of the "peg" part.

Freeze Selected will freeze any selected segments, and can also add "pegs" to the backbone. Pegs are strong, zero-length bands.

The recipe requires the selection interface, or else it won't find any selected segments to work with.

Freeze Sidechains freezes the backbone by default, and can also freeze the sidechains. If you uncheck both options, it won't freeze anything.

Freeze Sidechains optionally adds pegs. You can selected the strength of the pegs, from 0 to 10. Pegs are added even if both the freeze options were unchecked.

If you don't select any segments, or if you uncheck both freeze options and the peg option, the recipe doesn't do anything. But it does so gracefully.

This recipe is also intended as a demonstration of a common pattern, where a recipe loops through every segment doing something. Along the way, it adds some bells and whistles, such as use of the xpcall function to catch errors. (Nice, but not essential.)

The recipe also has extensive in-line comments, and a long rambling explanation of what's going on, down at the very end.

Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.
Parent

none

Children

none

Authors
Sitemap

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