Project

General

Profile

First-time autoscreening setup » History » Version 4

Anchi Cheng, 03/01/2022 01:29 AM

1 1 Anchi Cheng
h1. Smart-leginon multi-grid autoscreening
2
3
Automated square and hole finders are added to leginon to use Ptolemy (https://arxiv.org/abs/2112.01534) to determine optimal targets using computer vision algorithm and Convolutional Neural Network trained on user target selections accumulated at Simons Electron Microscopy Center at New York Biology Center (SEMC@NYSBC.
4
5
This implementation requires Ptolemy which has a separate license. For this release, the communication is through command line interface and rely on shared file system.
6
7
* At SEMC@NYSBC, Ptolemy, which was tested on python 3.9, runs in anaconda environment on the same CentOS7 computer where the main leginon process is.
8
9 3 Anchi Cheng
h2. Install Ptolemy and [[Setup Ptolemy CLI shell script|setup shell script to use its cli]]
10
11 4 Anchi Cheng
h2. Upload MSI-Ptolemy application into leginon database
12 2 Anchi Cheng
13
Follow the instruction in [[Applications|web application tools]]
14
* Note: If your system needs two Leginon client opened, each on a different pc, use MSi-Ptolemy2.xml
15
16 1 Anchi Cheng
If you have your own application you can do the following replacement by [[Use_the_Application_Editor_to_create_Leginon_applications|editing your application]] :
17 2 Anchi Cheng
18 1 Anchi Cheng
Square Targeting Node : MosaicClickTargetFinder class => MosaicScoreTargetFinder
19 2 Anchi Cheng
Exposure Targeting Node: JAHCFinder => ScoreTargetFinder
20 1 Anchi Cheng
21 4 Anchi Cheng
h2. Start Leginon
22 1 Anchi Cheng
23 4 Anchi Cheng
Rrun MSi-Ptolemy and acquire a grid atlas. This can be used for setting up.
24 1 Anchi Cheng
25 4 Anchi Cheng
h2. Setup Square Finding Node
26
27
h3. Set, in Blobs Settings, the script to run as */path_to/sq_finder.sh*
28
29
h3. Define target area size sampling  in the settings next to "acquisition" target panel.
30
31
Enter
32 1 Anchi Cheng
# Maximal number of squares to select
33
# Number of target group to sample
34
35
For example, total of 12 squares selected in 3 groups means the program divided out all blob squares with valid area range into 3 size group (small, medium,and large).  It then choose 4 blob squares in each group with highest score given by Ptolemy as the output square targets.  High score in Ptolemy result means it is more likely to be a good square.
36
37 4 Anchi Cheng
h3. Set the limits of the square area range in "Thresholded" settings.
38 2 Anchi Cheng
39 4 Anchi Cheng
You can set it directly.  However, it is easier to select a number of examples targets including the smallest and the largest grid square you will choose and then click on the auto square finding tool on the toolbar.  Leginon will use the example targets to set the limits of the square area.
40 2 Anchi Cheng
41 4 Anchi Cheng
!Square_FindingGUI.png!
42
43
h3.  Activate auto finding in the main settings dialog.
44
45
Shortest path can be applied in ordering the resulting targets as well.
46
47
!ProcessingSettings.png!