Differences between revisions 5 and 7 (spanning 2 versions)
Revision 5 as of 2010-04-20 23:23:57
Size: 1480
Editor: root
Comment:
Revision 7 as of 2010-04-21 04:59:49
Size: 2607
Editor: root
Comment:
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
  
This program will upload EMAN2 CTF parameters, boxes, and particle sets into an EMEN2 database. Because filenames are not always globally unique, you must specify a base project that will be searched for upload targets.
  
This program will upload CTF parameters, boxes, and particle sets into an EMEN2 database. Because filenames are not always globally unique, you must specify a base project that will be searched for files.
Line 12: Line 12:
If run with no options, it will check the remote database for file mappings. This is a good way to test to see if the correct mappings can be made before you attempt to commit any changes.


If run with "--check", it will only test to see if it can make the correct file mappings between the local EMAN2 project and the remote database. Nothing will be written. This is a good way to test to see if the correct mappings can be made before you attempt to commit any changes.
  
Line 26: Line 24:
  --check Do not upload anything; just check file mappings
Line 28: Line 27:
  --eman1 Look in EMAN1-style files instead of EMAN2 project
                        database
Line 33: Line 34:
{{{
usage help coming soon
}}}
The "--ctf" option will search for CTF parameters in several places.

If EMAN1 files are being searched (--eman1), ctfparm.txt in the local directory will be checked. Otherwise, two locations are checked for EMAN2 CTF parameters. First, any phase flipped particles that have been written out will be checked, as these are considered more authoritative than the e2ctf.py settings. If particles have been corrected but not written out, the script will then use the values from the e2ctf.py settings.
Line 39: Line 40:
{{{
usage help coming soon
}}}
The "--boxes" option will search for particle coordinates to upload to the database. They will be attached to the CCD or Scan record as a "box" child. The coordinates are attached as a .box file, in EMAN1 format.

EMAN1 boxes are loaded from .box files in the local directory. EMAN2 box locations are read from the "ptcl_source_coords" tag in the particle headers.
Line 45: Line 46:
{{{
usage help coming soon
}}}
This feature is still being implemented

= Download =

THis feautre is still being implemented

EMEN2 - EMAN2 Integration

In addition to batch upload/download support, emen2client.py offers some basic EMAN2 synchronization capabilities. These are still being developed, but are already useful.

[irees@mbp ~/data]$ emen2client.py sync --help

Usage: emen2client.py [options] <project record ID>
                
This program will upload CTF parameters, boxes, and particle sets into an EMEN2 database. Because filenames are not always globally unique, you must specify a base project that will be searched for files.

If run with "--check", it will only test to see if it can make the correct file mappings between the local EMAN2 project and the remote database. Nothing will be written. This is a good way to test to see if the correct mappings can be made before you attempt to commit any changes.
                
Options:
  -h, --help            show this help message and exit
  -U USERNAME, --username=USERNAME
                        Username
  -P PASSWORD, --password=PASSWORD
                        Password (Note: specifying passwords in shell commands
                        is not secure)
  -H HOST, --host=HOST  Host endpoint URI
  -C CTXID, --ctxid=CTXID
                        Valid Context ID
  --check               Do not upload anything; just check file mappings
  --ctf                 Upload CTF Parameters
  --boxes               Upload Boxes
  --eman1               Look in EMAN1-style files instead of EMAN2 project
                        database
  --ptcls               Upload Particle Sets

Upload CTF parameters

The "--ctf" option will search for CTF parameters in several places.

If EMAN1 files are being searched (--eman1), ctfparm.txt in the local directory will be checked. Otherwise, two locations are checked for EMAN2 CTF parameters. First, any phase flipped particles that have been written out will be checked, as these are considered more authoritative than the e2ctf.py settings. If particles have been corrected but not written out, the script will then use the values from the e2ctf.py settings.

Upload box coordinates

The "--boxes" option will search for particle coordinates to upload to the database. They will be attached to the CCD or Scan record as a "box" child. The coordinates are attached as a .box file, in EMAN1 format.

EMAN1 boxes are loaded from .box files in the local directory. EMAN2 box locations are read from the "ptcl_source_coords" tag in the particle headers.

Upload particle stacks

This feature is still being implemented

Download

THis feautre is still being implemented

EMEN2/EMAN2_Integration (last edited 2010-04-21 05:47:46 by root)