Project

General

Profile

Gatan K2 installation and setup » History » Version 47

Anchi Cheng, 05/17/2021 02:31 AM

1 1 Anchi Cheng
h1. Gatan K2 unique installation and setup
2
3 47 Anchi Cheng
{{include(semccd installation)}}
4 34 Anchi Cheng
5 1 Anchi Cheng
{{include(Gatan_K2_Instruments_cfg)}}
6
7 2 Anchi Cheng
h2. Setup
8 32 Anchi Cheng
9 31 Anchi Cheng
{{include(dm_camera_configuration)}}
10 15 Anchi Cheng
* K2 interface in DM restricts the exposure time to multiple of some set number, depending on the mode.  When you enter in DM an invalid number, it automatically change it to the valid one when you click the acquire button.  pyscope/dmsem.py has hard-coded values for these precision. Compare them to the precision of the DM version you have since it may change with DM version.
11
* K2 frame exposure time is adjustable in Leginon gui.  However, you need to check if the number is acceptable by DM using the above method.
12 45 Anchi Cheng
* Create the folder to store the dose fractionation raw frames.  Frames are saved as unsigned 16-bit mrc image stack or LZW compressed TIFF (Recommended) in K2 computer under D:\frames by default as set in dmsem.cfg.  You must create the frames directory first.  Leginon will not do that for you. You may change where the frames are saved here but will need to make corresponding changes when setting up [[DDD_raw_frame_file_transfer|raw frame file transfer]]. You can *use X:\frames as the place to save the frame and speed up read/write ONLY IF you can move the frames out in a timely manner*. The camera needs to use this SSD drive during counting. a full disk will cause it to crash.
13 1 Anchi Cheng
* Setup [[DDD_raw_frame_file_transfer|raw frame file transfer]] from a network data server.
14 15 Anchi Cheng
* Unless you want to develop your own frame alignment program.  We recommend that you [[appion:Direct_Detector_Frame_Processing|use Appion to do frame gain correction and alignment]].  These are parallelized by images so it cam almost keep up with the acquisition.
15 2 Anchi Cheng
16 37 Anchi Cheng
h2. [[older k2 dmsem configuration]]
17 16 Anchi Cheng
18 38 Anchi Cheng
h2. Define local configuration in dmsem.cfg
19 23 Anchi Cheng
20 28 Anchi Cheng
# Copy from your myami checkout pyscope/dmsem.cfg.template to C:\Program Files\myami\dmsem.cfg
21
# Make changes to the configured value in dmsem.cfg
22 23 Anchi Cheng
23
Most parameters are explained above.
24
25 25 Anchi Cheng
* *The config parser takes "'" and "\" literally*.  Therefore, do not include "'" in DM_VERION and RAW_FRAME_DIR.  In addition, the path separator should be "\"
26 29 Anchi Cheng
* *CAMERA_ID* is usually 0.  In the older version, it is defined in the same name below
27
<pre>
28
class GatanK2Base(DMSEM):
29
</pre>
30 39 Anchi Cheng
31
h3. Early return
32
33 40 Anchi Cheng
Early return speeds up data collection by allowing other processes to proceed until it needs to save another frame movie.  To turn this on, you set these values.  It only affects frame saving images.
34 39 Anchi Cheng
35 40 Anchi Cheng
* *DO_EARLY_RETURN = True*
36
* *EARLY_RETURN_FRAME_COUNT = 1*  This specifies the number of frames you want to integrate and return to you before all frames are saved. Typically people use 1 so that they still have some idea of the intensity.
37 39 Anchi Cheng
38
The result of using this is that the image found in myamiweb (the integrated image of what you specified as EARLY_RETURN_FRAME_COUNT  is not meaningful until you align them through the frame alignment in Appion.  With the speed of frame alignment, this is more and more acceptable.
39 10 Anchi Cheng
40 41 Anchi Cheng
h3.  Saving frame movies as LZW compressed TIFF
41
42
* *SAVE_LZW_TIFF_FRAMES = True* makes it save in compressed tiff file.
43
44 1 Anchi Cheng
h2. Testing with pyscope
45
46 5 Anchi Cheng
{{include(Gatan_K2_Installation_Pyscope_Test)}}
47 1 Anchi Cheng
48 30 Anchi Cheng
h2. Trouble shooting
49
50
SerialEM-CCD plugin can output the command it issues and results to DM's result panel if you set the environment variable SERIALEMCCD_DEBUG to 2.  Please activate this debug log and include the portion that shows problem when reporting problems to Leginon team.
51
52 6 Anchi Cheng
h2. Programs to open before Leginon Client: Digital Micrograph
53
54
h2. See more about K2 implementation in [[Using_Gatan_K2_Summit_in_Leginon]]