Project

General

Profile

Tilt-wrangler launcher in appion » History » Version 2

Sargis Dallakyan, 04/12/2022 10:23 AM

1 1 Sargis Dallakyan
h1. Tilt-wrangler launcher in appion
2
3 2 Sargis Dallakyan
Given ctf file with beam-image tilt X and Y values, tilt-wrangler runs "k-means clustering":https://en.wikipedia.org/wiki/K-means_clustering on X ad Y values and groups them into clusters. 
4 1 Sargis Dallakyan
5
Input: 
6
7
* Relion star file
8
* Number of clusters for k-means
9
10
h2. Installation
11
12
If you used "auto-installation tool":https://emg.nysbc.org/projects/appion/wiki/Install_using_the_auto-installation_tool, you can skip installation procedure below since auto-installation does this for you. Otherwise, if you are doing manual installation follow the procedure below to install tilt-wrangler and its dependencies.
13
On a web server, download "tiltgroup_wrangler_cli.py":https://emg.nysbc.org/projects/appion/repository/revisions/trunk/raw/programs/tiltgroup_wrangler/tiltgroup_wrangler_cli.py, copy to /usr/local/bin and make it executable:
14
<pre>
15
wget https://emg.nysbc.org/projects/appion/repository/revisions/trunk/raw/programs/tiltgroup_wrangler/tiltgroup_wrangler_cli.py
16
cp tiltgroup_wrangler_cli.py /usr/local/bin
17
chmod +x /usr/local/bin/tiltgroup_wrangler_cli.py
18
</pre> 
19
Install numpy and scikit-learn:
20
<pre>
21
pip install numpy==1.13.3 scikit-learn==0.19.2
22
</pre>
23
This particular versions are needed for this to work on CentOS 7 with Python 2.7.
24
For CentOS 6 use:
25
<pre>
26
pip install numpy==1.13.3 scikit-learn==0.18.2 scipy=1.2.0
27
</pre>
28 2 Sargis Dallakyan
29
h2. Usage
30
31
After you run CTF estimation, on processing/ctfreport.php page, scroll down to find Download button under @Relion star file with beam tilt group@.
32
33
!https://emg.nysbc.org/attachments/download/20931/r1.png!
34
35
Here you can set the number of tilt groups and choose from a drop down menu the output format (Relion version 3.1 or 3.0). Click on Download button to download Relion star file with beam-image tilt X and Y values grouped into clusters with tilt-wrangler.