FANDOM



structure.SetSecondaryStructure Edit

Function: void structure.SetSecondaryStructure(integer segmentIndex, string secondaryStructure)
Description: Set segments secondary structure. Valid secondary structure values are "E" for sheet, "H" for helix, and "L" for loop. Type "M" for molecule (or ligand) is ignored. Values are case-insensitive.
V1 Function Name: New to V2

Remarks Edit

Secondary structure type "M" for molecule is used in some puzzles for ligands, which are separate structures that attach to the protein. While "M" is a valid return value from structure.GetSecondaryStructure, it is ignored for structure.SetSecondaryStructure.

Sample Edit

Code that set all MALEK acids to helix

for i=1,structure.GetCount() do
  local aaType=structure.GetAminoAcid(i)
  if  aaType=="m" 
      or aaType=="a" 
      or aaType=="l" 
      or aaType=="e" 
      or aaType=="k" then
    structure.SetSecondaryStructure(i,"h")
  end
end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.