Difference between revisions of "Walkthrough on PCA through the command line"
(Created page with "PCA computations through the command line are governed through ''PCA workflow'' objects. We describe here how to create and handle them: = Creation of a synthetic data se...")
Revision as of 19:20, 28 March 2020
PCA computations through the command line are governed through PCA workflow objects. We describe here how to create and handle them:
Creation of a synthetic data set
This generates a set of 128 particles where 64 are slightly closer than the other 64. The particle subtomogram are randomly oriented, but the alignment parameters are known.
Creation of a workflow
The input of a PCA workflow are:
- a set of particles (called data container in this article)
- a table that expreses the alignment
- a mask that indicates the area of each alignment particle that will be taken into account during the classification procedure.
We create a cylindrical mask with the dimensions of the particles (40 pixels) mask = dcylinder([20,20],40);
We decide a name for the workflow itself, for instance
Now we are ready to create the workflow:
This creates an workflow object (arbitrarily called wb in the workspace during the current session). It also creates a folder called classtest128.PCA where results will be stored as they are produced.
The main parameters that can be chosen in this area are:
- binning level (to accelerate the computations)
The main burden of the PCA computation is the creation of the cross correlation matrix.
PCA computations can be run on GPUs of on CPUs, in both cases in parallel.