Icon representing a recipe

Recipe: ListMutables

created by jeff101

Profile


Name
ListMutables
ID
104103
Shared with
Public
Parent
None
Children
None
Created on
November 08, 2020 at 18:22 PM UTC
Updated on
November 08, 2020 at 18:22 PM UTC
Description

11/8/2020 1218pm noon code

Best for


Code


-- ListMutables by jeff101 -- last updated 11/8/2020 1218pm noon -- nseg=structure.GetCount() print('Checking '..nseg..' residues:') for ii=1,nseg do aa=structure.GetAminoAcid(ii) isloc=structure.IsLocked(ii) nrot=rotamer.GetCount(ii) ismut=structure.IsMutable(ii) mssg=string.format(' Segment %s%03d has %3d rotamers and', aa,ii,nrot) if isloc and ismut then mssg=(mssg..' is locked and mutable.') elseif isloc then mssg=(mssg..' is locked and not mutable.') elseif ismut then mssg=(mssg..' is unlocked and mutable.') else mssg=(mssg..' is unlocked and not mutable.') end -- if isloc print(mssg) end -- for ii print('All Done.')

Comments


jeff101 Lv 1

ListMutables lists which segments/residues
in the present puzzle are mutable/not mutable
and locked/unlocked. It also lists the number
of rotamers each one has. This information has
been helpful in recent Foldit Designable Linker
Puzzles (https://fold.it/portal/node/2010706).