xmipp3.protocols.protocol_alignPCA_2D module

class xmipp3.protocols.protocol_alignPCA_2D.XMIPPCOLUMNS(value)[source]

Bases: Enum

An enumeration.

anglePsi = 'anglePsi'
angleRot = 'angleRot'
angleTilt = 'angleTilt'
classCount = 'classCount'
ctfCritFitting = 'ctfCritFitting'
ctfCritMaxFreq = 'ctfCritMaxFreq'
ctfDefocusAngle = 'ctfDefocusAngle'
ctfDefocusU = 'ctfDefocusU'
ctfDefocusV = 'ctfDefocusV'
ctfQ0 = 'ctfQ0'
ctfSphericalAberration = 'ctfSphericalAberration'
ctfVoltage = 'ctfVoltage'
enabled = 'enabled'
flip = 'flip'
image = 'image'
itemId = 'itemId'
micrograph = 'micrograph'
micrographId = 'micrographId'
ref = 'ref'
scoreByGiniCoeff = 'scoreByGiniCoeff'
scoreByVariance = 'scoreByVariance'
shiftX = 'shiftX'
shiftY = 'shiftY'
shiftZ = 'shiftZ'
xcoor = 'xcoor'
ycoor = 'ycoor'
class xmipp3.protocols.protocol_alignPCA_2D.XmippProtClassifyPcaStreaming(**args)[source]

Bases: ProtStreamingBase, ProtClassify2D, XmippProtocol

Performs a 2D classification of particles using PCA. This method is optimized to run in streaming, enabling efficient processing of large datasets.

CREATE_CLASSES = 0
UPDATE_CLASSES = 1
classification(inputIm, numClass, stfile, mask, sigma, numTrain, resolutionTrain)[source]
closeOutputStep()[source]
convertInputStep(input, outputOrig, outputMRC)[source]
runClassificationSteps(newParticlesSet)[source]
stepsGeneratorStep() None[source]

This step should be implemented by any streaming protocol. It should check its input and when ready conditions are met call the self._insertFunctionStep method.

Returns

None

updateOutputSetOfClasses(lastCreationTime, streamMode)[source]
xmipp3.protocols.protocol_alignPCA_2D.rowToAlignmentEmtable(alignmentRow, alignType)[source]
is2D == True-> matrix is 2D (2D images alignment)

otherwise matrix is 3D (3D volume alignment or projection)

invTransform == True -> for xmipp implies projection

xmipp3.protocols.protocol_alignPCA_2D.updateEnviron(gpuNum)[source]

Create the needed environment for pytorch programs.

xmipp3.protocols.protocol_alignPCA_2D.updateFileName(filepath, classRound)[source]