/ . / Midas / midas_text.py
Functions
|
|
|
doNeon
|
doNeon ( cmdName, args )
|
|
doPreneon
|
doPreneon ( cmdName, args )
|
|
doEcho
|
doEcho ( cmdName, args )
|
|
doSystem
|
doSystem ( cmdName, args )
|
|
NoVdwopt
|
NoVdwopt ( cmdName, args )
|
|
doSurfaceCategory
|
doSurfaceCategory ( cmdName, args )
|
|
doTexture
|
doTexture ( cmdName, args )
Exceptions
|
|
MidasError, 'No "=" found in assignment string'
MidasError, 'unknown texture keyword "%s"' % argWords [ 0 ]
MidasError, "Too many arguments for texture new command"
MidasError, "Left side of map must be an integer"
|
|
|
doSleep
|
doSleep ( cmdName, args )
|
|
Unimplemented
|
Unimplemented ( cmdName, args )
Exceptions
|
|
MidasError, '"%s" is not yet implemented' %( cmdName )
|
|
|
doStop
|
doStop ( cmdName, args )
|
|
doUnPerFrame
|
doUnPerFrame ( cmdName, args )
Exceptions
|
|
MidasError( "No per-frame alias active" )
MidasError( "Usage: %s" % cmdName )
|
|
|
doMatrixcopy
|
doMatrixcopy ( cmdName, args )
Exceptions
|
|
MidasError, 'two model numbers required'
|
|
|
doCopy
|
doCopy ( cmdName, args )
Exceptions
|
|
MidasError, "%s keyword not implemented" % argWords [ 0 ]
MidasError, "Argument (to '%s') missing" % argWords [ 0 ]
MidasError, "supersample" " argument must be positive integer"
MidasError, "Unknown copy keyword '%s'" % argWords [ 0 ]
ValueError, ""
|
|
|
doUnsurface
|
doUnsurface ( cmdName, args )
|
|
doNamesel
|
doNamesel ( cmdName, args )
|
|
doUnalias
|
doUnalias ( cmdName, args )
Exceptions
|
|
MidasError, "No such alias ('%s)" % args
|
|
|
doStart
|
doStart ( cmdName, args )
Exceptions
|
|
MidasError, "Please specify the name of an extension"
|
|
|
doSet
|
doSet ( cmdName, args )
Exceptions
|
|
MidasError, 'no such "set" variable (or not implemented): %s' % argWords [ 0 ]
MidasError, "No keywords given to 'set' command"
MidasError, 'no value given for "set %s"' % argWords [ 0 ]
|
|
|
doSource
|
doSource ( cmdName, args )
|
|
doMove
|
doMove ( cmdName, args )
Exceptions
|
|
MidasError, 'required distance argument missing'
MidasError, 'required motion axis argument missing'
MidasError, 'wait_frames argument not implemented'
|
|
|
doWait
|
doWait ( cmdName, args )
|
|
doLinewidth
|
doLinewidth ( cmdName, args )
Exceptions
|
|
MidasError, 'No linewidth specified'
MidasError, 'width must be numeric'
|
|
|
doSwapRes
|
doSwapRes ( cmdName, args )
Exceptions
|
|
MidasError( 'Usage: swapna new_res_type[,preserve] atomspec' )
|
|
|
doModelFunc
|
doModelFunc ( cmdName, args )
|
|
doSetAttr
|
doSetAttr ( cmdName, args )
|
|
doExport
|
doExport ( cmdName, args )
Exceptions
|
|
MidasError("Extra export arguments '%s'" % ' '.join( argWords ) )
MidasError("Argument (to '%s') missing" % argWords [ 0 ] )
|
|
|
doAlias
|
doAlias ( cmdName, args )
Exceptions
|
|
MidasError, "No such alias: '%s'" % parts [ 0 ]
|
|
|
doBondUncolor
|
doBondUncolor ( cmdName, args )
|
|
doAddAA
|
doAddAA ( cmdName, args )
|
|
doRMSD
|
doRMSD ( cmdName, args )
|
|
doOpen
|
doOpen ( cmdName, args )
Exceptions
|
|
MidasError( "Cannot specify" " multiple model numbers" )
MidasError, 'No file chosen for open'
ValueError, "Cannot use argless 'open' command" "in nogui mode\n"
MidasError, 'opening surfaces unimplemented'
|
|
|
doUnsavepos
|
doUnsavepos ( cmdName, args )
|
|
addCommand
|
addCommand (
command,
cmdFunc,
revFunc=None,
help=None,
changesDisplay=None,
)
|
|
doCofr
|
doCofr ( cmdName, args )
|
|
doBondDisplay
|
doBondDisplay ( cmdName, args )
|
|
doRepr
|
doRepr ( cmdName, args )
Exceptions
|
|
MidasError, "missing representation argument"
MidasError, 'use "~ribbon" to undisplay ribbons'
MidasError, 'unknown representation type ("%s")' % argWords [ 0 ]
|
|
|
doArglessFunc
|
doArglessFunc ( cmdName, args )
Exceptions
|
|
MidasError, "'%s' function takes no arguments" % cmdName
|
|
|
processCommandFile
|
processCommandFile (
filename,
emulateRead=None,
usingString=None,
)
|
|
doChirality
|
doChirality ( cmdName, args )
|
|
doClip
|
doClip ( cmdName, args )
Exceptions
|
|
MidasError, '"Unit-less" clip not implemented'
MidasError, 'required clipping plane argument missing'
MidasError, 'wait_frames argument not implemented'
MidasError, 'clip plane must be "hither" or "yon"'
|
|
|
expandAliases
|
expandAliases ( text, doReport )
expand aliases
|
|
convertType
|
convertType ( value )
|
|
doUnsetAttr
|
doUnsetAttr ( cmdName, args )
Exceptions
|
|
MidasError( "Usage: %s atom|residue|molecule" " attrName atomspec" % cmdName )
|
|
|
doLoad
|
doLoad ( cmdName, args )
Exceptions
|
|
MidasError, 'No file chosen for load'
ValueError, "Cannot use argless 'load' command" "in nogui mode\n"
|
|
|
doMsMs
|
doMsMs ( cmdName, args )
Exceptions
|
|
MidasError, 'missing category name'
MidasError, 'unknown msms keyword "%s"' % argWords [ 0 ]
|
|
|
doRoll
|
doRoll ( cmdName, args )
Exceptions
|
|
MidasError, 'turning bond rotations not implemented'
MidasError, 'wait_frames argument not implemented'
|
|
|
getSpecs
|
getSpecs ( args, modelLevel=None )
|
|
doScale
|
doScale ( cmdName, args )
Exceptions
|
|
MidasError, 'required scaling factor argument missing'
MidasError, 'wait_frames argument not implemented'
|
|
|
doSurface
|
doSurface ( cmdName, args )
|
|
doBondColor
|
doBondColor ( cmdName, args )
|
|
doUncolor
|
doUncolor ( cmdName, args )
|
|
findQuoted
|
findQuoted ( text )
Exceptions
|
|
MidasError, "Unmatched quote in %s" % text
|
|
|
doUnset
|
doUnset ( cmdName, args )
Exceptions
|
|
MidasError, "No keywords given to 'set' command"
MidasError, 'no such "unset" variable (or not implemented): %s' % argWords [ 0 ]
|
|
|
doRock
|
doRock ( cmdName, args )
Exceptions
|
|
MidasError, "axis must be 'x', 'y', or 'z'"
MidasError, 'wait_frames argument not implemented'
|
|
|
doSection
|
doSection ( cmdName, args )
Exceptions
|
|
MidasError, 'required distance argument missing'
MidasError, 'wait_frames argument not implemented'
|
|
|
doSurfaceColor
|
doSurfaceColor ( cmdName, args )
Exceptions
|
|
MidasError( "No surface-coloring mode specified" )
MidasError('unknown surface coloring mode ("%s")' % argWords [ 0 ] )
|
|
|
doWindow
|
doWindow ( cmdName, args )
|
|
doConic
|
doConic ( cmdName, args )
|
|
doUnbond
|
doUnbond ( cmdName, args )
|
|
doUnsurfaceTransparency
|
doUnsurfaceTransparency ( cmdName, args )
|
|
doLongbond
|
doLongbond ( cmdName, args )
Exceptions
|
|
MidasError( "'longbond' command no longer takes arguments" )
|
|
|
doMatrixget
|
doMatrixget ( cmdName, args )
Exceptions
|
|
ValueError( "Cannot use argless 'matrixget'" " command in nogui mode" )
MidasError, 'No file chosen for matrixget'
|
|
|
doSave
|
doSave ( cmdName, args )
Exceptions
|
|
ValueError, "Cannot use argless 'save' command" "in nogui mode\n"
MidasError, 'No file chosen for save'
|
|
|
doRead
|
doRead ( cmdName, args )
|
|
doVdwDensity
|
doVdwDensity ( cmdName, args )
Exceptions
|
|
MidasError, "missing density argument required"
|
|
|
doSavepos
|
doSavepos ( cmdName, args )
|
|
doKsdssp
|
doKsdssp ( cmdName, args )
|
|
doThickness
|
doThickness ( cmdName, args )
Exceptions
|
|
MidasError( 'clip plane separation reporting not implemented' )
MidasError, 'wait_frames argument not implemented'
|
|
|
doClose
|
doClose ( cmdName, args )
Exceptions
|
|
MidasError( "argument must be model" " number, 'session' or 'all'" )
|
|
|
doBond
|
doBond ( cmdName, args )
|
|
doSelect
|
doSelect ( cmdName, args )
|
|
doVdwDefine
|
doVdwDefine ( cmdName, args )
Exceptions
|
|
MidasError( 'Usage: vdwdefine [+/-]radius [atomSpec]' )
|
|
|
doSurfaceTransparency
|
doSurfaceTransparency ( cmdName, args )
Exceptions
|
|
MidasError( "Transparency value must be between" " 0 and 100 (inclusive)" )
|
|
|
doSurfaceDelete
|
doSurfaceDelete ( cmdName, args )
|
|
doTColor
|
doTColor ( cmdName, args )
Exceptions
|
|
MidasError, 'No texture color specified'
|
|
|
doMatrixset
|
doMatrixset ( cmdName, args )
Exceptions
|
|
ValueError( "Cannot use argless 'matrixset'" " command in nogui mode" )
MidasError, 'No file chosen for matrixset'
|
|
|
makeCommand
|
makeCommand ( text, reportAliasExpansion=None )
Exceptions
|
|
MidasError, 'Unrecognized command: "%s"' % cmd
|
|
|
doResrepr
|
doResrepr ( cmdName, args )
Exceptions
|
|
MidasError, "Resrepr command removed. Use ribbon command to show ribbons. Use ribrepr command to set ribbon styles."
|
|
|
doSurfaceRepr
|
doSurfaceRepr ( cmdName, args )
Exceptions
|
|
MidasError("Must specify repr type (one of: %s)" % ", ".join( styles ) )
MidasError('Unknown representation type ("%s")' % argWords [ 0 ] )
|
|
|
doPop
|
doPop ( cmdName, args )
|
|
doSurfaceNew
|
doSurfaceNew ( cmdName, args )
|
|
doAtomSpecFunc
|
doAtomSpecFunc ( cmdName, args )
|
|
doStereo
|
doStereo ( cmdName, args )
Exceptions
|
|
MidasError, 'Unrecognized stereo mode: %s' % args
|
|
|
allModelSelect
|
allModelSelect (
activity,
ids=None,
id=None,
subid=None,
)
Exceptions
|
|
MidasError, "Could not parse model list"
|
|
|
doUnselect
|
doUnselect ( cmdName, args )
|
|
doCd
|
doCd ( cmdName, args )
|
|
doLabelopt
|
doLabelopt ( cmdName, args )
Exceptions
|
|
MidasError, "too many arguments to labelopt"
MidasError, 'unknown option "%s"' % argWords [ 0 ]
|
|
|
doMatch
|
doMatch ( cmdName, args )
Exceptions
|
|
MidasError( "'iterate' argument must be" " a number" )
MidasError( "'iterate' keyword requires" " cutoff distance argument" )
MidasError( "'iterate' argument must be" " a positive number" )
MidasError, 'missing atom spec'
|
|
|
doColor
|
doColor ( cmdName, args )
|
|
doRainbow
|
doRainbow ( cmdName, args )
|
|
doRescolor
|
doRescolor ( cmdName, args )
Exceptions
|
|
MidasError, "Rescolor command removed. Use ribcolor command to set ribbon colors."
|
|
|
doReset
|
doReset ( cmdName, args )
|
|
doPerFrame
|
doPerFrame ( cmdName, args )
Exceptions
|
|
MidasError( "Usage: %s alias_name [field_width]" % cmdName )
|
|
|
doWindowsize
|
doWindowsize ( cmd_name, args )
Exceptions
|
|
MidasError, 'Syntax error: %s [ ]' % cmd_name
|
|
|
testPath
|
testPath ( text, wildcarding )
|
|
doRangeColor
|
doRangeColor ( cmdName, args )
Exceptions
|
|
MidasError, "Missing required args (try 'help %s')" % cmdName
MidasError, "Less than two value/color pairs provided (try 'help %s')" % cmdName
|
|
|
doUnclip
|
doUnclip ( cmdName, args )
Exceptions
|
|
MidasError, "mangled clipping plane name: %s" % args
MidasError, 'required clipping plane argument missing'
|
|
|
doLabel
|
doLabel ( cmdName, args )
|
|
doX3DSave
|
doX3DSave ( cmdName, args )
Exceptions
|
|
ValueError, "Cannot use argless 'x3dsave' " "command in nogui mode\n"
MidasError, 'No file chosen for save'
|
|
|
doUndistance
|
doUndistance ( cmdName, args )
|
|
doHelp
|
doHelp ( cmdName, args )
Exceptions
|
|
MidasError, "Cannot provide help for unknown command '%s'" % args
MidasError, 'No help available for "%s"' % args
|
|
|
getModelId
|
getModelId ( s )
Exceptions
|
|
MidasError, "\"%s\" is not a model number" % s
|
|
|
doPreset
|
doPreset ( cmdName, args )
Exceptions
|
|
MidasError, s
MidasError, "unknown subcommand '%s' for 'preset'" % cmd
MidasError( "usage: preset apply|list ..." )
MidasError( "usage: preset apply type number" )
|
|
|
doWrite
|
doWrite ( cmdName, args )
Exceptions
|
|
MidasError, "writing surfaces not yet supported"
MidasError, 'No file chosen for write'
ValueError, "Cannot use argless 'write' command" "in nogui mode\n"
MidasError( "Must supply model number as an argument" )
MidasError( "'format' value must either" " be 'pdb' or 'mol2'" )
|
|
|
doColordef
|
doColordef ( cmdName, args )
Exceptions
|
|
MidasError, "Too few arguments to colordef"
MidasError, 'argument must be a color name, RGB, or RGBA value'
|
|
|
doPdbrun
|
doPdbrun ( cmdName, args )
Exceptions
|
|
MidasError, "'mark=' not yet implemented"
MidasError, "command to execute missing"
|
|
|
doExtensionFunc
|
doExtensionFunc (
extFunc,
typed,
invalid=None,
specInfo=None,
)
Exceptions
|
|
MidasError, "Missing required argument(s): %s" %(", ".join( missingTyped ) )
|
|
|
|