<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.uni-konstanz.de/ccp4/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hattne</id>
	<title>CCP4 wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.uni-konstanz.de/ccp4/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hattne"/>
	<link rel="alternate" type="text/html" href="https://wiki.uni-konstanz.de/ccp4/index.php/Special:Contributions/Hattne"/>
	<updated>2026-04-19T08:48:56Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.uni-konstanz.de/ccp4/index.php?title=SMV_file_format&amp;diff=2435</id>
		<title>SMV file format</title>
		<link rel="alternate" type="text/html" href="https://wiki.uni-konstanz.de/ccp4/index.php?title=SMV_file_format&amp;diff=2435"/>
		<updated>2017-02-22T22:50:50Z</updated>

		<summary type="html">&lt;p&gt;Hattne: Number of possible beam center conventions is 4 * 2 = 8.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The SMV file format is a broad standard x-ray diffraction image file format that appeared with the first CCD-based x-ray detectors.  SMV stands for Super Marty View, a program written by Dr. Martin &amp;quot;Marty&amp;quot; Stanton to display the images form the original SBC CCD detector.  The format is largely informal, the only rigid rule is that the file header is text and begins with the string: &amp;quot;{\nHEADER_BYTES=&amp;quot;, where \n is the newline character (ASCII decimal code 13).  This string must be followed with an ASCII number indicating the number of bytes in the header before the start of the image data.  The header itself is generally expected to be all text and describe the nature of this image data in a keyword=value type format.  The most common SMV header is 512 bytes.  So common in fact that many data processing programs assume that it is without reading the HEADER_BYTES entry.  An example of such a 512-byte header is given here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{&lt;br /&gt;
HEADER_BYTES=  512;&lt;br /&gt;
DIM=2;&lt;br /&gt;
BYTE_ORDER=little_endian;&lt;br /&gt;
TYPE=unsigned_short;&lt;br /&gt;
SIZE1=3072;&lt;br /&gt;
SIZE2=3072;&lt;br /&gt;
PIXEL_SIZE=0.102592;&lt;br /&gt;
BIN=2x2;&lt;br /&gt;
BIN_TYPE=HW;&lt;br /&gt;
ADC=fast;&lt;br /&gt;
CREV=1;&lt;br /&gt;
BEAMLINE=ALS831;&lt;br /&gt;
DETECTOR_SN=926;&lt;br /&gt;
DATE=Thu Apr 17 07:45:15 2008;&lt;br /&gt;
TIME=0.674101;&lt;br /&gt;
ACC_TIME=2860;&lt;br /&gt;
DISTANCE=150.05;&lt;br /&gt;
TWOTHETA=0.00;&lt;br /&gt;
PHI=0.000;&lt;br /&gt;
OSC_START=0.000;&lt;br /&gt;
OSC_RANGE=1.000;&lt;br /&gt;
WAVELENGTH=1.115872;&lt;br /&gt;
BEAM_CENTER_X=156.27;&lt;br /&gt;
BEAM_CENTER_Y=156.52;&lt;br /&gt;
DENZO_X_BEAM=158.64;&lt;br /&gt;
DENZO_Y_BEAM=156.27;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description of common keywords: ==&lt;br /&gt;
* DIM - indicates that the image is two-dimensional.  No known beamlines produce other-dimensional SMV images.&lt;br /&gt;
* BYTE_ORDER - can be either little_endian or big_endian.  No other values are known to be in use.  This reflects the byte ordering of the image data.  Big endian implies that the first byte of a 16-bit number is the most significant byte.  Little endian implies the opposite.  For more information, see [http://en.wikipedia.org/wiki/Endianness]&lt;br /&gt;
* TYPE - all known SMV images use the unsigned short integer (16 bit) value of TYPE.&lt;br /&gt;
* SIZE1 - number of pixels along each edge of the image.  It is unclear and unimportant which of SIZE1 or SIZE2 is X or Y as all known SMV image formats are square.&lt;br /&gt;
* PIXEL_SIZE - size of a pixel.  All known formats provide this number in millimeters.&lt;br /&gt;
* BIN - degree of pixel binning (averaging) used when reading out the CCD.  Some image processing programs need to know this value in order to estimate the detector read-out noise.&lt;br /&gt;
* BIN_TYPE - introduced for the ADSC Quantum 315r detectors to indicate that the binning was done on the hardware level, as opposed to the software level.  Some image processing programs need to know this value in order to estimate the detector read-out noise.&lt;br /&gt;
* ADC - indicates the mode of the analog-to-digital converter used to read out the image.&lt;br /&gt;
* CREV - introduced by ADSC to indicate the version number of the SMV header style.  Some image processing programs need to know this value in order to estimate the detector read-out noise.&lt;br /&gt;
* BEAMLINE - introduced at the Advanced Light Source to indicate which beamline was used to collect the data.&lt;br /&gt;
* DETECTOR_SN - serial number of the ADSC detector used to collect the image.  Useful for determining which beamline was used to collect the data, but not with 100% reliability as detectors can move from beamline to beamline.&lt;br /&gt;
* DATE - a common, but unfortunately not universal entry to indicate when the image was collected.  There is no standard to the nature of this format, but it is usually a Unix date.&lt;br /&gt;
* TIME - exposure time of the image in seconds.  Sometimes this can be half the exposure time if the image was dezingered, but confusing records like this are discouraged.&lt;br /&gt;
* ACC_TIME - number of milliseconds between the start and stop of electron accumulation on the CCD.  This is useful for determining an appropriate dark current.&lt;br /&gt;
* DISTANCE - the sample-to-detector distance.  All known SMV file formats give this in millimeters.  Although this is generally the distance along a line normal to the detector surface, there is no universal standard for this.  It could also mean the distance that would be traveled by the direct beam before hitting the surface of the detector.&lt;br /&gt;
* TWOTHETA - detector angle relative to the normal-to-beam orientation.&lt;br /&gt;
* PHI - starting value of spindle rotation motor for this image.  &lt;br /&gt;
* OSC_START - starting value of spindle rotation motor for this image.  &lt;br /&gt;
* OSC_RANGE - change in value of spindle rotation motor for this image.  &lt;br /&gt;
* WAVELENGTH - X-ray wavelength used to obtain this image.  All known SMV file formats give this in Angstrom.&lt;br /&gt;
* BEAM_CENTER_X - position on the detector face that would be hit by the direct x-ray beam if the beamstop were removed.  Most beamlines give this in millimeters, but some at ESRF give it in pixel units.  Unfortunately, there are also eight possible conventions for representing the beam center (four corners to use as 0,0, and two axes to assign to either &amp;quot;X&amp;quot; or &amp;quot;Y&amp;quot;), and nearly all of these are used by one program or another. At the Advanced Light Source and Stanford Synchrotron Radiation Lab these values are such as to give the correct beam center display in the program ADXV (provided by ADSC).&lt;br /&gt;
* DENZO_X_BEAM - introduced at the Advanced Light Source to indicate the direct beam position to enter into the data processing program denzo or mosflm, as these programs coincidentally use the same beam center convention.  This was an attempt to avoid confusion by specifying the convention explicitly.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
[[Crystallographic data file formats]]&lt;/div&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>https://wiki.uni-konstanz.de/ccp4/index.php?title=SMV_file_format&amp;diff=2141</id>
		<title>SMV file format</title>
		<link rel="alternate" type="text/html" href="https://wiki.uni-konstanz.de/ccp4/index.php?title=SMV_file_format&amp;diff=2141"/>
		<updated>2013-01-25T11:02:36Z</updated>

		<summary type="html">&lt;p&gt;Hattne: Corrected typo.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
The SMV file format is a broad standard x-ray diffraction image file format that appeared with the first CCD-based x-ray detectors.  SMV stands for Super Marty View, a program written by Dr. Martin &amp;quot;Marty&amp;quot; Stanton to display the images form the original SBC CCD detector.  The format is largely informal, the only rigid rule is that the file header is text and begins with the string: &amp;quot;{\nHEADER_BYTES=&amp;quot;, where \n is the newline character (ASCII decimal code 13).  This string must be followed with an ASCII number indicating the number of bytes in the header before the start of the image data.  The header itself is generally expected to be all text and describe the nature of this image data in a keyword=value type format.  The most common SMV header is 512 bytes.  So common in fact that many data processing programs assume that it is without reading the HEADER_BYTES entry.  An example of such a 512-byte header is given here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{&lt;br /&gt;
HEADER_BYTES=  512;&lt;br /&gt;
DIM=2;&lt;br /&gt;
BYTE_ORDER=little_endian;&lt;br /&gt;
TYPE=unsigned_short;&lt;br /&gt;
SIZE1=3072;&lt;br /&gt;
SIZE2=3072;&lt;br /&gt;
PIXEL_SIZE=0.102592;&lt;br /&gt;
BIN=2x2;&lt;br /&gt;
BIN_TYPE=HW;&lt;br /&gt;
ADC=fast;&lt;br /&gt;
CREV=1;&lt;br /&gt;
BEAMLINE=ALS831;&lt;br /&gt;
DETECTOR_SN=926;&lt;br /&gt;
DATE=Thu Apr 17 07:45:15 2008;&lt;br /&gt;
TIME=0.674101;&lt;br /&gt;
ACC_TIME=2860;&lt;br /&gt;
DISTANCE=150.05;&lt;br /&gt;
TWOTHETA=0.00;&lt;br /&gt;
PHI=0.000;&lt;br /&gt;
OSC_START=0.000;&lt;br /&gt;
OSC_RANGE=1.000;&lt;br /&gt;
WAVELENGTH=1.115872;&lt;br /&gt;
BEAM_CENTER_X=156.27;&lt;br /&gt;
BEAM_CENTER_Y=156.52;&lt;br /&gt;
DENZO_X_BEAM=158.64;&lt;br /&gt;
DENZO_Y_BEAM=156.27;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Description of common keywords: ==&lt;br /&gt;
* DIM - indicates that the image is two-dimensional.  No known beamlines produce other-dimensional SMV images.&lt;br /&gt;
* BYTE_ORDER - can be either little_endian or big_endian.  No other values are known to be in use.  This reflects the byte ordering of the image data.  Big endian implies that the first byte of a 16-bit number is the most significant byte.  Little endian implies the opposite.  For more information, see [http://en.wikipedia.org/wiki/Endianness]&lt;br /&gt;
* TYPE - all known SMV images use the unsigned short integer (16 bit) value of TYPE.&lt;br /&gt;
* SIZE1 - number of pixels along each edge of the image.  It is unclear and unimportant which of SIZE1 or SIZE2 is X or Y as all known SMV image formats are square.&lt;br /&gt;
* PIXEL_SIZE - size of a pixel.  All known formats provide this number in millimeters.&lt;br /&gt;
* BIN - degree of pixel binning (averaging) used when reading out the CCD.  Some image processing programs need to know this value in order to estimate the detector read-out noise.&lt;br /&gt;
* BIN_TYPE - introduced for the ADSC Quantum 315r detectors to indicate that the binning was done on the hardware level, as opposed to the software level.  Some image processing programs need to know this value in order to estimate the detector read-out noise.&lt;br /&gt;
* ADC - indicates the mode of the analog-to-digital converter used to read out the image.&lt;br /&gt;
* CREV - introduced by ADSC to indicate the version number of the SMV header style.  Some image processing programs need to know this value in order to estimate the detector read-out noise.&lt;br /&gt;
* BEAMLINE - introduced at the Advanced Light Source to indicate which beamline was used to collect the data.&lt;br /&gt;
* DETECTOR_SN - serial number of the ADSC detector used to collect the image.  Useful for determining which beamline was used to collect the data, but not with 100% reliability as detectors can move from beamline to beamline.&lt;br /&gt;
* DATE - a common, but unfortunately not universal entry to indicate when the image was collected.  There is no standard to the nature of this format, but it is usually a Unix date.&lt;br /&gt;
* TIME - exposure time of the image in seconds.  Sometimes this can be half the exposure time if the image was dezingered, but confusing records like this are discouraged.&lt;br /&gt;
* ACC_TIME - number of milliseconds between the start and stop of electron accumulation on the CCD.  This is useful for determining an appropriate dark current.&lt;br /&gt;
* DISTANCE - the sample-to-detector distance.  All known SMV file formats give this in millimeters.  Although this is generally the distance along a line normal to the detector surface, there is no universal standard for this.  It could also mean the distance that would be traveled by the direct beam before hitting the surface of the detector.&lt;br /&gt;
* TWOTHETA - detector angle relative to the normal-to-beam orientation.&lt;br /&gt;
* PHI - starting value of spindle rotation motor for this image.  &lt;br /&gt;
* OSC_START - starting value of spindle rotation motor for this image.  &lt;br /&gt;
* OSC_RANGE - change in value of spindle rotation motor for this image.  &lt;br /&gt;
* WAVELENGTH - X-ray wavelength used to obtain this image.  All known SMV file formats give this in Angstrom.&lt;br /&gt;
* BEAM_CENTER_X - position on the detector face that would be hit by the direct x-ray beam if the beamstop were removed.  Most beamlines give this in millimeters, but some at ESRF give it in pixel units.  Unfortunately, there are also 16 possible conventions for representing the beam center (4 corners to use as 0,0, and 2 axes to assign to either &amp;quot;X&amp;quot; or &amp;quot;Y&amp;quot;), and nearly all of these are used by one program or another. At the Advanced Light Source and Stanford Synchrotron Radiation Lab these values are such as to give the correct beam center display in the program ADXV (provided by ADSC).&lt;br /&gt;
* DENZO_X_BEAM - introduced at the Advanced Light Source to indicate the direct beam position to enter into the data processing program denzo or mosflm, as these programs coincidentally use the same beam center convention.  This was an attempt to avoid confusion by specifying the convention explicitly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
[[Crystallographic data file formats]]&lt;/div&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
	<entry>
		<id>https://wiki.uni-konstanz.de/ccp4/index.php?title=Mmdb&amp;diff=1745</id>
		<title>Mmdb</title>
		<link rel="alternate" type="text/html" href="https://wiki.uni-konstanz.de/ccp4/index.php?title=Mmdb&amp;diff=1745"/>
		<updated>2010-09-07T14:50:32Z</updated>

		<summary type="html">&lt;p&gt;Hattne: Added working link to mmdb documentation as provided by Gerard Kleywegt on ccp4-dev.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What is mmdb? ==&lt;br /&gt;
&lt;br /&gt;
MMDB is a macromolecular coordinate library, written by Eugene Krissinel primarily for use by CCP4 group. The Coordinate Library is designed to assist CCP4 developers in working with coordinate files.&lt;br /&gt;
&lt;br /&gt;
The Library features work with the primary file formats of the Protein Data Bank (PDB), the PDB file format and the mmCIF file format.&lt;br /&gt;
&lt;br /&gt;
The Library provides various high-level tools for working with coordinate files, which include not only reading and writing, but also orthogonal-fractional coordinate transforms, generation of symmetry mates, editing the molecular structure and some others. The Library is supposed as a general low-level tool for unifying the coordinate-related operations.&lt;br /&gt;
&lt;br /&gt;
The [[Clipper]]-MMDB interface package provides an interface to allow MMDB models to interact with other types of crystallographic data as part of a structure solution application.&lt;br /&gt;
&lt;br /&gt;
== How to install mmdb? ==&lt;br /&gt;
&lt;br /&gt;
The easiest way for users of Linux distros is to install the Fedora 9 RPM package ([https://www.redhat.com/archives/fedora-package-announce/2008-November/msg00262.html announcement]). For Apple machines, this would probably be http://pdb.finkproject.org/pdb/package.php/mmdb .&lt;br /&gt;
&lt;br /&gt;
== How to use it? ==&lt;br /&gt;
Link your application with ...&lt;br /&gt;
&lt;br /&gt;
== Example: a typical problem and its solution with mmdb ==&lt;br /&gt;
What is the mmdb string for all atoms in the A conformation of residue 30 in the B chain? Answer: &amp;quot;//B/30/*:A&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Documentation ==&lt;br /&gt;
* http://www.ebi.ac.uk/~keb/cldoc/ and http://msd.ebi.ac.uk/~keb/cldoc/ are both broken.&lt;br /&gt;
* [http://www.ebi.ac.uk/pdbe/docs/cldoc/ CCP4 Coordinate Library Project] at the European Bioinformatics Institute&lt;/div&gt;</summary>
		<author><name>Hattne</name></author>
	</entry>
</feed>