Advanced SEC-SAXS processing – Evolving factor analysis (EFA) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. _raw_efa: Sometimes SEC fails to fully separate out different species, and you end up with overlapping peaks in your SEC-SAXS curve. It is possible to apply more advanced mathematical techniques to determine if there are multiple species of macromolecule in a SEC-SAXS peak, and to attempt to extract out scattering profiles for each component in an overlapping peak. :ref:`Singular value decomposition (SVD) ` can be used to help determine how many distinct scatterers are in a SEC-SAXS peak. Evolving factor analysis (EFA) is an extension of SVD that can extract individual components from overlapping SEC-SAXS peaks. Note that the first step of EFA is doing SVD, but that happens entirely within the EFA analysis window. The SVD window does not need to be opened before doing EFA. This tutorial covers EFA. A video version of this tutorial is available: .. raw:: html
The written version of the tutorial follows. #. Clear all of the data in RAW. Load the **phehc_sec.hdf5** file in the **sec_data** folder. * *Note:* The data were provided by the Ando group at Cornell University and is some of the data used in the paper: *Domain Movements upon Activation of Phenylalanine Hydroxylase Characterized by Crystallography and Chromatography-Coupled Small-Angle X-ray Scattering*\ . Steve P. Meisburger, Alexander B. Taylor, Crystal A. Khan, Shengnan Zhang, Paul F. Fitzpatrick, and Nozomi Ando. Journal of the American Chemical Society 2016 138 (20), 6506-6516. `DOI: 10.1021/jacs.6b01563 `_ |efa_series_plot_png| #. We will now use EFA to attempt to extract out the two scattering components in the main peak in this data. Right click on the **phehc_sec.hdf5** item in the Series list. Select the “EFA” option. #. The EFA window will be displayed. On the left are controls, on the right are plots of the value of the singular values and the first autocorrelation of the left and right singular vectors. * *Note:* Large singular values indicate significant components. What matters is the relative magnitude, that is, whether the value is large relative to the mostly flat/unchanging value of high index singular values. * *Note:* A large autocorrelation indicates that the singular vector is varying smoothly, while a low autocorrelation indicates the vector is very noisy. Vectors corresponding to significant components will tend to have autocorrelations near 1 (roughly, >0.6-0.7) and vectors corresponding to insignificant components will tend to have autocorrelations near 0. |efa_panel_png| #. For successful EFA, you want to use Subtracted data, and you often want to have a buffer region before and after the sample. For this data set, using the entire frame range (from 0 to 385) is appropriate. With other data sets, you may need to change the frame range to, for example, remove other, well separated, peaks from the analysis. * *Tip:* If you have a dataset where you have a large number of components, such as 4+, it can be useful to set the EFA range to isolate just 2-3 of those components. The more components you have, the harder it is to do the EFA. There is a tradeoff in the amount of data used (more is better), and the number of components in the deconvolution (less is better) that requires some experimentation to find the right balance for a given dataset. #. RAW attempts to automatically determine how many significant singular values (SVs) there are in the selected range. This corresponds to the number of significant scattering components in solution that EFA will attempt to deconvolve. At the bottom of the control panel, you should see that RAW thinks there are three significant SVs (scattering components) in our data. For this data set, that is accurate. We evaluate the number of significant components by how many singular values are above the baseline, and how many components have both left and right singular vectors with autocorrelations near one. For this data there are three singular values above baseline, and three singular vectors with autocorrelations near 1 (see step 3). |efa_components_png| * *Note:* Typically you want the number of significant singular values and the number of singular vectors with autocorrelations near 1 to be equal. If they aren't, it likely indicates a weak or otherwise poorly resolved component in the dataset. Try the deconvolution first with the lower then the higher number of components. * *Note:* RAW can find the wrong number of components automatically. You will always want to double check this automatic determation against the SVD results in the plots. If you change the data range used (or data type), the number of components will not automatically update so you should check and update it if necessary. #. Click the “Next” button in the lower right-hand corner of the window to advance to the second stage of the EFA analysis. * *Note:* It may take some time to compute the necessary values for this next step, so be patient. |efa_panel_2_png| #. This step shows you the “Forward EFA” and “Backward EFA” plots. These plots represent the value of the singular values as a function of frame. * *Note:* There is one more singular value displayed on each plot than available in the controls. This is so that in the following Steps you can determine where each component deviates from the baseline. #. In the User Input panel, tweak the “Forward” value start frames so that the frame number, as indicated by the open circle on the plot, aligns with where the singular value first starts to increase quickly. This should be around 147, 164, and 323. * *Note:* For the Forward EFA plot, SVD is run on just the first two frames, then the first three, and so on, until all frames in the range are included. As more frames are added, the singular values change, as shown on the plot. When a singular value starts increasingly sharply, it indicates that there is a new scattering component in the scattering profile measured at that point. So, for the first ~150 frames, there are no new scattering components (i.e. just buffer scattering). At frame ~147, we see the first singular value (the singular value with index 0, labeled SV 0 on the plot) start to strongly increase, showing that we have gained a scattering component. We see SV 1 start to increase at ~164, indicating another scattering component starting to be present in the data. #. In the User Input panel, tweak the “Backward” value start frames so that the frame number, as indicated by the open circle on the plot, aligns with where the singular value first starts to increase quickly, reading the plot left to right (i.e. where it drops back to near the baseline). This should be around 380, 324, and 190. * *Note:* For the Backward EFA plot, SVD is run on just the last two frames, then the last three, and so on, until all frames in the range are included. As more frames are added, the singular values change, as shown on the plot. When a singular value starts increasingly sharply (as seen from right to left), it indicates that there is a new scattering component in the scattering profile measured at that point. * *Note:* The algorithm for determining the start and end points is not particularly advanced. For some datasets you may need to do significantly more adjustment of these values |efa_ranges_png| #. Click the “Next” button in the bottom right corner to move to the last stage of the EFA analysis. |efa_panel_3_png| #. This window shows controls on the left and results on the right. In the controls area, at the top is a plot showing the SEC-SAXS curve, along with the ranges occupied by each scattering component, as determined from the input on the Forward and Backward EFA curves in stage 2 of the analysis. The colors of the ranges correspond to the colors labeled in the Scattering Profiles plot on the top right and the Concentration plot in the lower right. This panel takes the SVD vectors and rotates them back into scattering vectors corresponding to real components. * *Note:* This rotation is not guaranteed to be successful, or to give you valid scattering vectors. Any data obtained via this method should be supported in other ways, either using other methods of deconvolving the peak, other biophysical or biochemical data, or both! #. Fine tune the ranges using the controls in the “Component Range Controls” box. Adjust the starts and ends of Range 0 and the start of Range 1 by a few points until the spikes in the chi-squared plot go away. After these adjustments, Range 0 should be about 147 to 197, Range 1 from 161 to 324, and Range 2 from 323 to 380. |efa_comp_range_png| |efa_chi2_png| #. To see these changes on the Forward and Backward EFA plots, click the “Back” button at the bottom right of the page. Verify that all of your start and end values are close to where the components become significant, as discussed in Steps 8 and 9. #. Click the “Next” button to return to the final stage of the EFA analysis. #. In the Rotation Controls box, you can set the method, the number of iterations, and the convergence threshold. As you can see in the Status window, the rotation was successful for this data. If it was not, you could try changing methods or adjusting the number of iterations or threshold. #. Examine the chi-squared plot. It should be uniformly close to 1 for good EFA. For this data, it is. #. Examine the concentration plot. You’ll see three peaks, corresponding to the concentrations for the three components. In the Range Controls, uncheck the Range 0 C>=0 box. That removes the constraint that the concentration must be positive. If this results in a significant change in the peak, your EFA analysis is likely poor, and you should not trust your results. * *Note:* The height of the concentration peaks is arbitrary, all peaks are normalized to have an area of 1. #. Uncheck all of the C>=0 controls. * *Question:* Do you observe any significant changes in the scattering profiles, chi-squared, or concentration when you do this? How about if you uncheck one and leave the others checked? #. Recheck all of the C>=0 controls. You have now verified, as much as you can, that the EFA analysis is giving you reasonable results. #. *Reminder:* Here are the verification steps we have carried out, and you should carry out every time you do EFA: #. Confirm that your selected ranges correspond to the start points of the Forward and Backward EFA values (Steps 12-13). #. Confirm that your chi-squared plot is close to 1, without any major spikes. #. Confirm that your concentrations are not significantly altered by constraining the concentration to be positive (Steps 17-19). #. Click the “Save EFA Data (not profiles)” to save the EFA data, including the SVD, the Forward and Backward EFA data, the chi-squared, and the concentration, along with information about the selected ranges and the rotation method used. #. Click the “Done” button to send the scattering profiles to the Profiles Plot. #. In the main RAW window, go to the Profiles control tab and the Profiles plot. If it is not already, put the Profiles plot on a semi-Log or Log-Log scale. |efa_profiles_png| #. The three scattering profiles from EFA are in the manipulation list. The labels _0, _1, and _2 correspond to the 0, 1, and 2 components/ranges. * *Note:* Regardless of whether you use subtracted or unsubtracted data, these scattering profiles will be buffer subtracted, as the buffer represents a scattering component itself, and so (in theory) even if it is present will be separated out by successful EFA. .. |efa_series_plot_png| image:: images/efa_series_plot.png :target: ../_images/efa_series_plot.png .. |efa_panel_png| image:: images/efa_panel.png :target: ../_images/efa_panel.png .. |efa_components_png| image:: images/efa_components.png :target: ../_images/efa_components.png .. |efa_panel_2_png| image:: images/efa_panel_2.png :target: ../_images/efa_panel_2.png .. |efa_ranges_png| image:: images/efa_ranges.png :width: 200 px :target: ../_images/efa_ranges.png .. |efa_panel_3_png| image:: images/efa_panel_3.png :target: ../_images/efa_panel_3.png .. |efa_comp_range_png| image:: images/efa_comp_range.png :width: 300 px :target: ../_images/efa_comp_range.png .. |efa_chi2_png| image:: images/efa_chi2.png :width: 300 px :target: ../_images/efa_chi2.png .. |efa_profiles_png| image:: images/efa_profiles.png :target: ../_images/efa_profiles.png