XML file format for image shift groups

Dear @wrice,

Just chiming in to show an example of the XML file format that CryoSPARC Import Movies/Micrographs and Import Beam Shift now expects. The only field from the XML file that is read by CryoSPARC is the BeamShift (the _x and _y attributes). This field is arranged as follows within the tree:

<MicroscopeImage xmlns="http://schemas.datacontract.org/2004/07/Fei.SharedObjects" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <microscopeData>
        <optics>
            <BeamShift xmlns:a="http://schemas.datacontract.org/2004/07/Fei.Types">
                <a:_x>-0.18816471099853516</a:_x>
                <a:_y>-0.11280126124620438</a:_y>
            </BeamShift>
        </optics>
    </microscopeData>
</MicroscopeImage>

Likely the above could be used as a skeleton to write out one XML file per movie, with the beam shift x and y information stored in the above fields. If you add writing out XML files as an option to Leginon/Appion, please let us know if the above form works when later using these XML files to import beam shift values in CryoSPARC via Import Movies/Micrographs or Import Beam Shift. Please also see this comment for more info and for an alternative option using CryoSPARC Tools.

Best regards,
Michael

4 Likes