spider.utils module¶
- class spider.utils.SpiderDocAliFile(filename, mode='r')[source]¶
Bases:
object
Handler class to read Spider alignment metadata.
- class spider.utils.SpiderDocFile(filename, mode='r')[source]¶
Bases:
object
Handler class to read/write spider docfile.
- class spider.utils.SpiderShell(ext='spi', **kwargs)[source]¶
Bases:
object
This class will open a child process running Spider interpreter and will keep connection to send commands.
- spider.utils.runCustomMaskScript(filterRadius1, sdFactor, filterRadius2, maskThreshold, workingDir, ext='stk', inputImage='input_image', outputMask='stkmask')[source]¶
Utility function to run the custommask.msa script. This function will be called from the custom mask protocol and from the wizards to create the mask.
- spider.utils.runTemplate(inputScript, ext, paramsDict, nummpis=1, program=None, log=None, cwd=None)[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. Usually the execution should be done where the results will be left.