|
represent
|
represent ( style, sel='sel' )
Exceptions
|
|
MidasError( 'Unknown representation style "%s"' % style )
|
|
|
surfaceDelete
|
surfaceDelete ( category, sel='sel' )
|
|
chain
|
chain ( *args, *kw )
|
|
show
|
show ( sel='sel', asChain=0 )
|
|
move
|
move (
x=0,
y=0,
z=0,
frames=None,
)
|
|
focus
|
focus ( sel='sel' )
Window/cofr about displayed part of selection
Exceptions
|
|
MidasError( "No displayed atoms/ribbons specified" )
|
|
|
modeldisplay
|
modeldisplay ( sel='sel' )
|
|
modelcolor
|
modelcolor ( color, sel='sel' )
Change model color
|
|
linewidth
|
linewidth ( width, sel='sel' )
|
|
unribbon
|
unribbon ( sel='sel' )
|
|
ksdssp
|
ksdssp (
sel='sel',
energy=None,
helixLen=None,
strandLen=None,
infoFile=None,
)
|
|
swapres
|
swapres (
newRes,
sel='sel',
preserve=0,
bfactor=None,
)
Exceptions
|
|
MidasError( '"preserve" keyword not yet implemented' )
MidasError( "No residues specified for swapping" )
|
|
|
ribrepr
|
ribrepr ( style, sel='sel' )
Exceptions
|
|
MidasError( 'Unknown representation style "%s"' % style )
|
|
|
setDc_color
|
setDc_color ( color )
|
|
rlabel
|
rlabel ( sel='sel' )
Display residue information as part of one atom label
|
|
surfaceNew
|
surfaceNew (
category,
sel='sel',
models=None,
)
|
|
ribcolor
|
ribcolor ( color, sel='sel' )
Change ribbon color
|
|
surfaceCategory
|
surfaceCategory ( category, sel='sel' )
|
|
evalSpec
|
evalSpec ( spec )
|
|
undistance
|
undistance ( sel='sel' )
Remove distance monitor
Exceptions
|
|
MidasError('Exactly two atoms must be selected. You ' 'selected %d.' % len( atoms ) )
MidasError( 'Error removing distance: %s.' % s )
|
|
|
ribbackbone
|
ribbackbone ( sel='sel' )
|
|
surfacetransparency
|
surfacetransparency ( val, sel='sel' )
|
|
rotation
|
rotation ( sel='sel', reverse=False )
Exceptions
|
|
MidasError('Only two atoms must be selected.' ' You selected %d.' % len( atoms ) )
MidasError( 'Selected atoms are not connected' ' with a covalent bond' )
|
|
|
matrixget
|
matrixget ( fileName )
|
|
vdwdensity
|
vdwdensity ( density, sel='sel' )
Change vdw surface point density
|
|
windowsize
|
windowsize ( width, height )
|
|
setBg_color
|
setBg_color ( color )
|
|
unvdw
|
unvdw ( sel='sel' )
Hide point vdw surface of atoms
Atoms specification may come from either a selection or
an osl string. If no atom specification is supplied,
the current selection is displayed.
|
|
rock
|
rock (
axis,
magnitude=90,
frequency=60,
frames=-1,
)
|
|
colordef
|
colordef ( color, target )
Define RGB(A) color
Exceptions
|
|
MidasError( 'Color "%s" is undefined' % target )
MidasError( "Cannot define a color named '%s'" % color )
MidasError( 'Choose color in panel first' )
|
|
|
bond
|
bond ( sel='sel' )
Exceptions
|
|
MidasError("Choose only 2 atoms to bond (%d chosen)" % len( bonded ) )
|
|
|
textureUse
|
textureUse ( name )
Exceptions
|
|
KeyError, "No texture named '" + name + "' exists"
|
|
|
thickness
|
thickness ( delta, frames=None )
|
|
freeze
|
freeze ()
Stop all motion
|
|
undisplay
|
undisplay ( sel='sel' )
Undisplay atoms
Atoms specification may come from either a selection or
an osl string. If no atom specification is supplied,
the current selection is undisplayed.
|
|
close
|
close ( model, subid=None )
|
|
ribbon
|
ribbon ( sel='sel' )
Display residue as ribbon
|
|
rangeColor
|
rangeColor (
attrName,
colorItems,
wayPoints,
noValue,
sel='#',
)
color atom parts by attribute
attrName is a residue or atom attribute name. It can be
prepended with atom. or residue. to resolve ambiguity if
necessary. Otherwise, residue-level attributes win "ties".
colorItems is a comma-separated string of items to color (labels,
surfaces, etc., as per the color command) or an empty string
(color everything). In addition to the color command characters,
the character r means to color ribbons.
wayPoints is a sequence of value/color tuples describing the color
range layout. The values can be max , min , mid or numeric.
noValue is the color to apply to items missing the attribute.
A value of None means to leave them unchanged.
|
|
scale
|
scale ( s, frames=None )
|
|
section
|
section ( delta, frames=None )
|
|
label
|
label ( sel='sel', warnLarge=0 )
Add label to selected atoms
|
|
textureMap
|
textureMap ( **kw )
Exceptions
|
|
TypeError, "Unexpected keyword argument: " + key
IndexError, "Index (%d) out of bounds for current texture" % index
|
|
|
labelopt
|
labelopt ( opt, value )
change label display options
|
|
x3dSave
|
x3dSave ( filename )
|
|
unlabel
|
unlabel ( sel='sel' )
Add label to selected atoms
|
|
deleteAtomsBonds
|
deleteAtomsBonds ( atoms=[], bonds=[] )
General utility functions
|
|
convertColor
|
convertColor ( color )
Exceptions
|
|
RuntimeError, 'need a color'
UserError( 'Choose color in panel first' )
UserError( 'Color "%s" is undefined' % color )
|
|
|
ribscale
|
ribscale ( name, sel='sel' )
Exceptions
|
|
MidasError( 'Unknown ribbon scaling "%s"' % name )
|
|
|
objdisplay
|
objdisplay ( sel='sel' )
|
|
pdbrun
|
pdbrun (
cmd,
all=0,
conect=0,
nouser=0,
noobj=0,
nowait=0,
surface=0,
mark=None,
viewer=None,
)
|
|
longbond
|
longbond (
ratio=2.5,
length=None,
sel='sel',
)
Exceptions
|
|
MidasError( "Missing segments already shown." " Use ~longbond to hide them." )
|
|
|
addaa
|
addaa ( args )
add an amino acid to the last residue in a chain
Exceptions
|
|
MidasError, "Exactly one residue must be selected. " "'%s' specifies %d residues." %(res_spec, len( residues ) )
MidasError, "Invalid number of arguments."
MidasError, "Missing residue type argument"
MidasError, "%s" % what
MidasError, "Not enough arguments. " "Require at least 'residue type' and 'residue sequence'"
MidasError, "Require either both phi and psi arguments or neither"
MidasError, "Too many arguments"
MidasError, "Missing residue sequence argument"
|
|
|
chimeraSelect
|
chimeraSelect ( sel='sel' )
|
|
color
|
color ( color, sel='sel' )
Change atom color
|
|
pop
|
pop ( frames=None, mode='linear' )
Exceptions
|
|
MidasError( 'No pushed positions to pop' )
MidasError( "frame count must be positive" )
|
|
|
unbondcolor
|
unbondcolor ( sel='sel' )
|
|
unribbackbone
|
unribbackbone ( sel='sel' )
|
|
open
|
open (
filename,
filetype=None,
model=chimera.OpenModels.Default,
noprefs=False,
)
|
|
select
|
select ( sel='sel' )
Make selected models active
|
|
unvdwdefine
|
unvdwdefine ( sel='sel' )
Revert to default VDW radii
|
|
chirality
|
chirality ( sel='sel' )
Exceptions
|
|
ChiralError("%s bonds to less than 4 atoms" % a.oslIdent() )
ChiralError( "No atoms specified" )
ChiralError("%s is not tetrahedral" % a.oslIdent() )
ChiralError("Unknown hybridization state for atom %s" % a.oslIdent() )
|
|
|
window
|
window ( sel='sel' )
Recompute window parameters
|
|
unsetAutocolor
|
unsetAutocolor ()
|
|
unrlabel
|
unrlabel ( sel='sel' )
Do not display residue information as part of any atom label
|
|
surfacecolormode
|
surfacecolormode ( style, sel='sel' )
Exceptions
|
|
MidasError( 'Unknown surface color mode "%s"' % style )
|
|
|
namesel
|
namesel ( selName=None )
|
|
matrixcopy
|
matrixcopy ( f, t )
Exceptions
|
|
MidasError( 'Too many source models selected.' )
MidasError( 'No source models selected.' )
MidasError( 'No destination model(s) selected.' )
|
|
|
copy
|
copy (
printer=None,
file=None,
format=None,
viewer=None,
supersample=None,
raytrace=False,
rtwait=None,
rtclean=None,
)
|
|
brotation
|
brotation ( sel='sel' )
Setup backwards rotation
|
|
reset
|
reset (
name='default',
frames=None,
mode='linear',
)
Exceptions
|
|
MidasError( "No saved position named '%s'" % name )
MidasError( "frame count must be positive" )
|
|
|
distance
|
distance ( sel='sel' )
Monitor distance between exactly two atoms
Exceptions
|
|
MidasError('Exactly two atoms must be selected. You ' 'selected %d.' % len( atoms ) )
MidasError( 'Error adding distance: %s.' % s )
|
|
|
unsurface
|
unsurface ( sel='sel' )
|
|
bondrepr
|
bondrepr ( style, sel='sel' )
Exceptions
|
|
MidasError( 'Unknown representation style "%s"' % style )
|
|
|
align
|
align ( sel )
Exceptions
|
|
MidasError( 'Exactly two atoms must be selected by atom' ' spec or two atom specs provided.' )
MidasError( "Left atom spec (%s) selects no atoms" % sel1 )
MidasError( "Right atom spec (%s) selects no atoms" % sel2 )
|
|
|
savepos
|
savepos ( name='default' )
|
|
unribcolor
|
unribcolor ( which, sel='sel' )
Clear ribbon color
|
|
match
|
match (
f,
t,
selected=False,
iterate=None,
minPoints=1,
)
Superposition the two specified sets of atoms ("from" and "to")
if selected is true, transform all active models, not just
the from model.
if iterate is not None or False, the matching will iterate
(pruning poorly-matching atom pairs at each pass) until no pair
distance exceeds the value assigned to iterate
minPoints is the minimum number of points from each model to
match. If fewer are specified (or, due to iterate , you go
below the number), then TooFewAtomsError is raised.
Exceptions
|
|
MidasError( "Iteration cutoff must be positive" )
TooFewAtomsError("Too few corresponding atoms" " (%d) to match models\n" % len( refAtoms ) )
|
|
|
unlongbond
|
unlongbond ()
Exceptions
|
|
MidasError( "Missing segments already hidden." " Use longbond to show them." )
|
|
|
surfacerepresent
|
surfacerepresent ( style, sel='sel' )
Exceptions
|
|
MidasError( 'Unknown surface representation style "%s"' % style )
|
|
|
matrixset
|
matrixset ( fileName )
Exceptions
|
|
MidasError("Matrixset 'Model' line %d not of the" " form: Model number.number" %( i + 1 ) )
MidasError( "Matrixset file not composed of 4-line groups" " (model numbers each with a 3x4 matrix)" )
MidasError("Matrixset 3x4 matix line %d" " is not 4 numbers" %( j + 1 ) )
|
|
|
display
|
display ( sel='sel' )
Display atoms
Atoms specification may come from either a selection or
an osl string. If no atom specification is supplied,
the current selection is displayed.
|
|
delete
|
delete ( sel='sel' )
Delete atoms
|
|
clip
|
clip (
plane,
delta,
frames=None,
)
|
|
surface
|
surface ( atomSpec='sel', category='main' )
|
|
textureNew
|
textureNew ( name, numColors=5 )
Exceptions
|
|
ValueError, "Number of colors for texture must be 4 or 5"
AttributeError, "Texture named " + name + " already exists"
|
|
|
getcrd
|
getcrd ( sel='sel' )
Print the coordinates of selected atoms
|
|
rainbow
|
rainbow ( sel='sel', **kw )
Color selected models in rainbow pattern
|
|
vdw
|
vdw ( sel='sel' )
Display point vdw surface of atoms
Atoms specification may come from either a selection or
an osl string. If no atom specification is supplied,
the current selection is displayed.
|
|
angle
|
angle ( sel='sel' )
Report angle between three or four atoms
Exceptions
|
|
MidasError('Three or four atoms must be selected. You ' 'selected %d.' % len( atoms ) )
|
|
|
unsavepos
|
unsavepos ( name )
Exceptions
|
|
MidasError( "No position named '%s'" % name )
|
|
|
turn
|
turn (
axis,
angle=3,
frames=None,
)
|
|
cofr
|
cofr ( where='report' )
|
|
unsetIndependent
|
unsetIndependent ()
|
|
unbond
|
unbond ( sel='sel' )
|
|
vdwdefine
|
vdwdefine (
radius,
sel='sel',
increment=False,
)
Change vdw radius
|
|
write
|
write (
writeModel,
relModel,
filename,
allFrames=False,
dispOnly=False,
selOnly=False,
format="pdb",
)
write a PDB or Mol2 file
write coordinates relative to relModel position. If relModel
is None, write current coordinates.
allFrames controls whether all frames of a trajectory are
written out or just the current frame
dispOnly, if true, means to write only displayed atoms
selOnly, if true, means to write only selected atoms
format should be "pdb" or "mol2"
Exceptions
|
|
MidasError( v )
MidasError( "Trajectories cannot be written in" " Mol2 format" )
MidasError, "%d model ids match \"%s\"" %( len( mList ), s )
|
|
|
unsetAttr
|
unsetAttr (
level,
name,
sel='sel',
)
Exceptions
|
|
MidasError( "Cannot set attribute '%s' to None" % name )
|
|
|
bondcolor
|
bondcolor ( color, sel='sel' )
|
|
roll
|
roll (
axis,
angle=3,
frames=-1,
)
|
|
setAutocolor
|
setAutocolor ()
|
|
setAttr
|
setAttr (
level,
name,
val,
sel='sel',
)
|
|
uncolor
|
uncolor ( which, sel='sel' )
Clear atom color
|
|
unchimeraSelect
|
unchimeraSelect ( sel='sel' )
|
|
bonddisplay
|
bonddisplay ( mode, sel='sel' )
|
|
unobjdisplay
|
unobjdisplay ( sel )
|
|
setIndependent
|
setIndependent ()
|
|
stereo
|
stereo ( mode )
Exceptions
|
|
MidasError( "Unknown stereo mode: %s" % mode )
MidasError( "Could not switch to stereo mode: %s" % mode )
|
|
|
unmodeldisplay
|
unmodeldisplay ( sel='sel' )
|
|
center
|
center ( sel='sel' )
|
|
unselect
|
unselect ( sel='sel' )
Make selected models inactive
|
|
textureColor
|
textureColor ( index, color )
|
|
tColor
|
tColor ( index, sel='sel' )
Exceptions
|
|
MidasError( 'Cannot texture color byatom/byhet' ' (too many colors required)' )
UserError( 'Texture color "%s" is undefined' % index )
|
|
|