Single-particle session¶
This tutorial shows how to process micrographs on-the-fly during data collection.
A sample session is available in the demo instance of nextPYP.
nextPYP streaming sessions use three parallel daemon tracks (shown in the Daemons panel):
File transfer — copy, move, or link movies from the microscope computer into the session folder
Data pre-processing — frame alignment, CTF estimation, and particle picking
2D Classification — monitor particle quality while data arrives
Use Start / Cancel (which becomes Canceling…) on the session status bar to start the session or cancel all daemons. File transfer exposes Stop for that track only. The other tracks expose Restart, Clear, and Stop. Each track also has a Logs control.
A session page has three top-level tabs: View, Parameters, and Data I/O.
Step 1: Create a new session¶
Streaming is organized in Sessions (reachable from Projects via Go to Sessions). Create a new session for each data collection run
Go to Projects and click Go to Sessions
Start a single-particle session with Start Single-Particle
Open the Parameters tab. On the
Sessiontab, setNameandGroup(see Administration to create and manage user groups). Optional: changeLocationandFolder namefor where session files are stored (these cannot be changed after the session is created)
Configure processing under the remaining parameter tabs:
Set
Locationof the raw movies by clicking the icon and navigating to the folder (or file pattern) where movies are writtenContinue to the Gain reference tab
Specify the path and parameters for the gain reference as needed
Continue to the Microscope parameters tab
Set
Pixel size (A)andAcceleration voltage (kV)Continue to the Session settings tab
Choose a
Raw data transfermethod:move,copy, orlink. Warning:movetransfers raw data into the session folder and deletes it from the original locationContinue to the Particle detection tab
Set
Particle radius (A)Select
autoorallas theMethodContinue to the Resources tab
Set
Split, Threadsand other resources as needed (see Computing resources)
Click Save
Step 2: Launch the session¶
Start data transfer and pre-processing
On the session status bar, click Start. This starts File transfer and also Data pre-processing and 2D Classification unless you enabled
Skip pre-processing (data transfer only)under Session settingsUse Cancel on the status bar to cancel all daemons (the chip shows Canceling… until they finish). Use Stop on a Daemons track to stop that track only
Open the Data I/O tab to monitor Storage, File Transfers, Transfer Speeds, and Exports
Inspect results under View using the Plots, Table, Gallery, Micrographs, and 2D Classes tabs. On Micrographs, open nested tabs such as
Half 1/Half 2(ifGenerate half-micrographsis on) orDenoisedwhen those products exist
Step 3 (optional): Change processing parameters¶
Change data processing parameters during a session
Open Parameters, adjust settings, and click Save
In the Daemons panel, Restart the Data pre-processing and/or 2D Classification tracks so the new settings take effect
Step 4: Copy or delete a session¶
Copy settings from an existing session or delete a session
From the Sessions list, open the row menu () and choose Copy settings, or open a session and click the copy icon in the session toolbar
To delete a session, use Delete in the row menu or the trash icon in the session toolbar. This permanently removes the session and associated files. Running sessions must be canceled before they can be deleted
To remove processed files while keeping the session configuration, use the eraser icon in the session toolbar
Step 5 (optional): Filter and export micrographs¶
Filter micrographs and export in star format
Under View → Table, build a filter with Add filter (live match; see Cleaning datasets). Type a filter name and click Save. Use the Status column or Detail pane to include/exclude rows as needed, then Save again
Click Export to export in
starformat. A dialog asks for resource parameters for the export job. After you confirm with Export, the job appears under Data I/O → Exports. Use the location icon to open the exported path