Project

General

Profile

CryoSPARC » History » Version 7

Sargis Dallakyan, 06/04/2021 10:07 AM

1 1 Sargis Dallakyan
h1. CryoSPARC
2
3
The user is able to display cryoSPARC v2 3D refinement jobs.
4
5
h2. Installing
6
7 2 Sargis Dallakyan
Install "MongoDB PHP Driver":https://docs.mongodb.com/ecosystem/drivers/php/. 
8
9
For CentOS 7 our centos7AutoInstallation.py does this. 
10
11 4 Sargis Dallakyan
For CentOS 6, "update to PHP 5.6 on CentOS 6 using remi repository":https://blog.tinned-software.net/update-to-php-5-6-on-centos-6-using-remi-repository/. Then install "MongoDB PHP Driver":https://secure.php.net/manual/en/mongodb.installation.pecl.php. 
12 2 Sargis Dallakyan
13
Add the following lines to your myamiweb/config.php
14
<pre>
15
// --- cryoSPARC host name and port number. --- //
16 5 Sargis Dallakyan
$CRYOSPARC_HOSTS[] = array('CRYOSPARC #1' => 'IP1');
17
//$CRYOSPARC_HOSTS[] = array('CRYOSPARC #2' => 'IP2');
18 1 Sargis Dallakyan
define('CRYOSPARC_PORT', "39001");
19 2 Sargis Dallakyan
</pre>
20 7 Sargis Dallakyan
Replace IP1, with the name or IP address of your host running cryoSPARC v2. You can also replace 'CRYOSPARC #1' with any name. This needs to be a PHP array with 'name' => 'IP' mapping. Please note that 'CRYOSPARC_PORT' in not the port cryoSPARC user interface is running, but the port for MongoDB that is shipped with cryoSPARC. No need to change this. You can verify that MongoDB is listening to this port by running the following command on the host that runs cryoSPARC: 
21
<pre>
22
[root@bright-01 ~]# netstat -lptu|grep mon
23
tcp        0      0 0.0.0.0:39001           0.0.0.0:*               LISTEN      123307/mongod
24
</pre>
25 2 Sargis Dallakyan
h2. Usage
26
27 1 Sargis Dallakyan
In Appion menu click on cryoSPARC link.
28
29 6 Sargis Dallakyan
30 5 Sargis Dallakyan
Enter Project and Job ID for a cryoSPARC v2 3D refinement or 2D classification job and click Submit.
31 6 Sargis Dallakyan
!c2.png!
32 2 Sargis Dallakyan
33 6 Sargis Dallakyan
34 2 Sargis Dallakyan
This renders a page similar to this one:
35
!cryosparcs.png!
36 1 Sargis Dallakyan
In the top left it shows 3D map. Wait for it to load. Depending on your network connection and the size of the map it might take a minute to load the map. Visit http://nglviewer.org/ngl to learn about mouse controls. At the bottom it shows output from cryoSPARC.
37 2 Sargis Dallakyan
38
Users can go back and add/remove cryoSPARC jobs as show below:
39 6 Sargis Dallakyan
!c1.png!
40 2 Sargis Dallakyan
Summary link shows cryoSPARC output similar to above.