spider.protocols.protocol_base module

class spider.protocols.protocol_base.SpiderProtocol(**kwargs)[source]

Bases: pwem.protocols.protocol.EMProtocol

Base protocol for SPIDER utils.

convertInput(attrName, stackFn, selFn)[source]

Convert from an input pointer of SetOfImages to Spider. Params:

attrName: the attribute name of the input pointer stackFn: the name of the stack for converted images selFn: the name of the selection file.

getExt()[source]

Return the extension used in the script, stored in a dictionary called self._params.

getScript()[source]
runTemplate(inputScript, ext, paramsDict, nummpis=1)[source]

This function will create a valid Spider script by copying the template and replacing the values in dictionary. After the new file is read, the Spider interpreter is invoked.