Main Page

From PyMOLWiki
Revision as of 11:21, 14 November 2018 by Speleo3 (talk | contribs) (Plugins Tutorial updated for PyQt5)
Jump to navigation Jump to search
hosted by SBGridlogo2.jpg
Welcome to the PyMOL Wiki!
The community-run support site for the PyMOL molecular viewer.
To request a new account, email SBGrid at: accounts (@) sbgrid dot org
Quick Links
Tutorials Table of Contents Commands
Script Library Plugins FAQ
Gallery | Covers PyMOL Cheat Sheet (PDF) Getting Help
News & Updates
Tutorial Plugins Tutorial updated for PyQt5
Official Release PyMOL v2.2 has been released on July 24, 2018.
POSF PyMOL Open-Source Fellowship program accepting applications for 2018-2019
New Plugin ProBiS H2O is a new plugin for identification of conserved waters in protein structures.
Selection keywords New polymer.protein and polymer.nucleic selection keywords. Thanks everyone who participated in the poll!
Plugin Update MOLE 2.5 is an updated version of channel analysis software in PyMOL
New Script dssr_block is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
Older News See Older News.
Did you know...

Tiff2ccp4

= Overview =

This script will convert tiff stacks to CCP4 maps for reading in PyMOL.

See also the load_img_stack script for loading image stacks directly into PyMOL.

If someone knows how to determine the file's dimensions from the file itself (not the image size, but the physical dimension size) please let me know.

Note: requires Python 2.7 or later (for argparse).

Usage

#
# convert input.tiff to output.ccp4 which has cell dimensions
# x=40 A, y=80.5 A, Z=125.2 A
#
python tiff2ccp4.py input.tiff output.ccp4 -x 40 -y 80.5 -z 125.2

#
# print help
#
python tiff2ccp4.py -h

The Code

<source lang="python">

  1. tiff2ccp4.py -- convert a TIFF stack to a CCP4 map
  2. Author: Jason Vertrees
  3. Date : 2011-09-16
  4. Notes : To get help, type "python tiff2ccp4.py -h"

import struct import sys import string

  1. key = field_type
  2. value = # bytes for that field

field_types = ..→

A Random PyMOL-generated Cover. See Covers.