[ccp4bb] AW: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-13 Thread Herman . Schreuder
Dear Jacob,

The big advantage of microscopes (whether using electrons or X-rays) is of 
course that you 1) do not need crystals and 2) get phase information. However, 
aligning an extremely large number of single molecule images is non-trivial and 
this is the reason it is still very hard, if not impossible, to use this 
technique for molecules with a mw of less than 100 kDa. 

Also, the X-ray image of a single molecule would be extremely weak and I am not 
sure current technology would be able to record such an image.

Crystals have billions of molecules, almost perfectly aligned which produce 
very good electron density maps. It is just that many proteins are very 
difficult if not impossible to crystallize that makes cryoEM so popular.

Best,
Herman 


 

-Ursprüngliche Nachricht-
Von: Keller, Jacob [mailto:kell...@janelia.hhmi.org] 
Gesendet: Freitag, 10. November 2017 16:55
An: Schreuder, Herman /DE; CCP4BB@JISCMAIL.AC.UK
Betreff: [EXTERNAL] RE: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging 
Conundrum

"Quality of image" has a lot of parameters, including resolution, noise, 
systematic errors, etc. I am not aware of a global "quality of image" metric.

One other consideration, not related to your comment: imagine if we had an 
x-ray lens through which we could take confocal images of a protein molecule or 
crystal, output as a voxel array. Would we really still prefer to measure 
diffraction patterns rather than the equivalent real space image, even assuming 
we had some perfect way to solve the phase problem? Or conversely, should we 
try to do fluorescence imaging in diffraction mode, due to its purported 
information efficiency?

JPK

-Original Message-
From: herman.schreu...@sanofi.com [mailto:herman.schreu...@sanofi.com]
Sent: Friday, November 10, 2017 10:22 AM
To: Keller, Jacob <kell...@janelia.hhmi.org>; CCP4BB@JISCMAIL.AC.UK
Subject: AW: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

At the bottom line, it is the quality of the image, not only the amount of 
pixels that counts. Adding more megapixels to a digital camera with a poor lens 
(as some manufacturers did), did not result in any sharper or better images.
Herman


-Ursprüngliche Nachricht-
Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von Keller, 
Jacob
Gesendet: Freitag, 10. November 2017 15:48
An: CCP4BB@JISCMAIL.AC.UK
Betreff: [EXTERNAL] Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging 
Conundrum

It seems, then, to be generally agreed that the conversion between voxels and 
Fourier terms was valid, each containing the same amount of information, but 
the problem was in the representation, and there was just trickery of the eye. 
I was thinking and hoping this would be so, since it allows a pretty direct 
comparison of crystal data to microscopic imaging data. I guess a litmus test 
would be to decide whether a voxel version of the electron density map would 
work equivalently well in crystallographic software, which I suspect it would. 
If so, then the same techniques--so effective in extracting information for the 
relatively information-poor crystal structures--could be used on fluorescence 
imaging data, which come in voxels.

Regarding information-wealth, in Dale's example, the whole hkl set was 4.1 MB. 
One frame in a garden-variety XYZT fluorescence image, however, contains about 
2000 x 2000 x 100 voxels at 16-bit, i.e., 400 million bits or 50 MB. In some 
data sets, these frames come at 10 Hz or more. I suspect that the I/sigma is 
also much better in the latter. So, with these data, and keeping a 
data:parameters ratio of ~4, one could model about 100 million parameters. This 
type of modelling, or any type of modelling for that matter, remains almost 
completely absent in the imaging world, perhaps because the data size is 
currently so unwieldy, perhaps also because sometimes people get nervous about 
model biases, perhaps also because people are still improving the imaging 
techniques. But just imagine what could be done with some crystallography-style 
modelling!

Jacob Keller



-Original Message-
From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of Tristan 
Croll
Sent: Friday, November 10, 2017 8:36 AM
To: CCP4BB@JISCMAIL.AC.UK
Subject: Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

Or a nice familiar 2D example: the Ramachandran plot with 7.5 degree binning, 
as a grid (left) or with bicubic smoothing (right). Different visualisations of 
the same data, but the right-hand image uses it better.

On 2017-11-10 08:24, herman.schreu...@sanofi.com wrote:
> In line with Dale's suggestions, I would suggest that you reformat 
> your voxel map into the format of an electron density map and look at 
> it with coot. I am sure it will look much better and much more like 
> the electron density we are used to look at. Alternatively, you could 
> 

Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-12 Thread Dale Tronrud
On 11/12/2017 6:48 AM, Kay Diederichs wrote:
> On Fri, 10 Nov 2017 14:04:26 -0800, Dale Tronrud  
> wrote:
> ...
>>
>>   My belief is that the fact that our spot intensities represent the
>> amplitude (squared) of a series of Sin waves is the result of the hard
>> work of people like Bob who give us monochromatic illumination.
>> "Monochromatic" simply means it is a pure Sin wave.  If Bob could get
>> that shiny new ring of his to produce an electromagnetic square wave his
>> users would still get diffraction patterns with spots but they would
>> have to come up with programs that would perform Fourier summations of
>> square waves to calculate electron density.  Our instrument is an analog
>> computer for calculating the Sin wave Fourier transform of the electron
>> density of our crystal because we designed it to do exactly that.
>>
>> Dale Tronrud
>>
> ...
> 
> Hi Dale,
> 
> Well, perhaps I understand you wrongly, but I'd say if Bob would succeed in 
> making his synchrotron produce "square" instead of sine waves then we would 
> not have to change our programs too much, because a "square wave" can be 
> viewed as (or decomposed into) superpositions of a sine wave of a given 
> frequency/energy with its higher harmonics, at known amplitude ratios.
> This would be similar in some way to a Laue experiment, but not using a 
> continuum of energies, only discrete ones. The higher harmonics would just 
> change the intensities a bit (e.g. the 1,2,3 reflection would get some 
> additional intensity from the 2,4,6 and 3,6,9 reflection), and that change 
> could to a large extent be accounted for computationally, like we currently 
> do in de-twinning with low alpha. 
> That would probably be done in data processing, and might not affect the 
> downstream steps like map calculation.

   What you are describing (which is absolutely correct) sounds like a
lot more programming work than writing a square-wave Fourier transform
program.

   All I'm doing is trying to answer the very intriguing question that
beginners ask, but us old-timers tend to forget - Why are the intensity
of the Bragg spots the square of the amplitude of SIN waves?  The answer
I'm proposing is that the illumination source is a Sin wave so the
diffraction spots are in reference to Sin waves.  If Bob could give us
square waves the spot intensity would be proportional to the square of
the square wave Fourier transform of the density.  If ALS could give us
triangular waves their spots would tell us about the triangular wave
Fourier transform.

   While you want to continue to live in the Sin-wave world despite
having square waves in your experiment, I could be perverse and do the
same from my world.  Your Sin waves can be expressed as a sum of the
harmonics of my square waves and I could say that the intensity of what
you call the 1,2,3 reflection contains information from what I would
call the 1,2,3 and 2,4,6 and 3,6,9 (and so on) reflections.  The
mathematics is general and not specific to Sin waves.  It just happens
that it is easier for Bob to provide us with Sin wave illumination and
so our analysis uses Sin waves.

   This is quite abstract, but in the free electron laser world the
pulses are getting so short that they can't make the plane-wave
approximation and have to analyze their images in terms of the wave
packet, with its inherent bandwidth and coherence between the individual
frequencies within the packet.  See, my Sin-wave bias is showing -
"bandwidth" and "frequencies" both come from an insistence on reducing
all problems to Sin waves.  Maybe the free electron people would do
better by following Ethan and thinking about wavelets...

Dale Tronrud

> 
> best,
> 
> Kay
> 


Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-12 Thread Kay Diederichs
On Fri, 10 Nov 2017 14:04:26 -0800, Dale Tronrud  wrote:
...
>
>   My belief is that the fact that our spot intensities represent the
>amplitude (squared) of a series of Sin waves is the result of the hard
>work of people like Bob who give us monochromatic illumination.
>"Monochromatic" simply means it is a pure Sin wave.  If Bob could get
>that shiny new ring of his to produce an electromagnetic square wave his
>users would still get diffraction patterns with spots but they would
>have to come up with programs that would perform Fourier summations of
>square waves to calculate electron density.  Our instrument is an analog
>computer for calculating the Sin wave Fourier transform of the electron
>density of our crystal because we designed it to do exactly that.
>
>Dale Tronrud
>
...

Hi Dale,

Well, perhaps I understand you wrongly, but I'd say if Bob would succeed in 
making his synchrotron produce "square" instead of sine waves then we would not 
have to change our programs too much, because a "square wave" can be viewed as 
(or decomposed into) superpositions of a sine wave of a given frequency/energy 
with its higher harmonics, at known amplitude ratios.
This would be similar in some way to a Laue experiment, but not using a 
continuum of energies, only discrete ones. The higher harmonics would just 
change the intensities a bit (e.g. the 1,2,3 reflection would get some 
additional intensity from the 2,4,6 and 3,6,9 reflection), and that change 
could to a large extent be accounted for computationally, like we currently do 
in de-twinning with low alpha. 
That would probably be done in data processing, and might not affect the 
downstream steps like map calculation.

best,

Kay


Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Dale Tronrud
On 11/10/2017 1:38 PM, Robert Sweet wrote:
> This has been a fascinating thread. Thanks.
> 
> I will dip my oar in the water.  Here are a couple of snippets.
> 
>> Jacob: It was good of proto-crystallographers to invent diffraction as
>> a way to apply Fourier Series.
> 
> and
> 
>> Ethan: So here's the brain-teaser: Why does Nature use Fourier
>> transforms rather than Wavelet transforms? Or does she?
> 
> Probably Jacob was joking, but I believe we should say that physicists
> (and Ms. Nature) employ the Fourier transform/synthesis because this
> models pretty precisely the way that we believe light rays/waves of all
> energies interfere with one another.
> 
> Warm regards, Bob

   My belief is that the fact that our spot intensities represent the
amplitude (squared) of a series of Sin waves is the result of the hard
work of people like Bob who give us monochromatic illumination.
"Monochromatic" simply means it is a pure Sin wave.  If Bob could get
that shiny new ring of his to produce an electromagnetic square wave his
users would still get diffraction patterns with spots but they would
have to come up with programs that would perform Fourier summations of
square waves to calculate electron density.  Our instrument is an analog
computer for calculating the Sin wave Fourier transform of the electron
density of our crystal because we designed it to do exactly that.

Dale Tronrud


> 
> 
> On Fri, 10 Nov 2017, Keller, Jacob wrote:
> 
 My understanding is that EM people will routinely switch to
 diffraction mode when they want accurate measurements.  You lose the
 phase information but, since EM lenses tend to have imperfections,
 you get better measurements of the intensities.
>>
>> Only to my knowledge in the case of crystalline samples like 2D crystals.
>>
 Of course the loss of phases is a serious problem when you don't
 have a model of the object as precise as our atomic models.
>>
>> From where does this precision arise, I wonder? I guess priors for
>> atom-based models are pretty invariant. On the other hand, who says
>> that such priors, albeit of many more varieties, don't exist for
>> larger biological samples, such as zebrafish brains and drosophila
>> embryos/larvae? Anyway, right now, the state of the art of modelling
>> in these fluorescence data sets is hand-drawing circles around things
>> that look interesting, hoping the sample does not shift too much, or
>> perhaps using some tracking. But it could be so much better!
>>
>> JPK
>>
>>
> 


Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Robert Sweet

This has been a fascinating thread. Thanks.

I will dip my oar in the water.  Here are a couple of snippets.

Jacob: It was good of proto-crystallographers to invent diffraction as a 
way to apply Fourier Series.


and

Ethan: So here's the brain-teaser: Why does Nature use Fourier 
transforms rather than Wavelet transforms? Or does she?


Probably Jacob was joking, but I believe we should say that physicists 
(and Ms. Nature) employ the Fourier transform/synthesis because this 
models pretty precisely the way that we believe light rays/waves of all 
energies interfere with one another.


Warm regards, Bob


On Fri, 10 Nov 2017, Keller, Jacob wrote:


My understanding is that EM people will routinely switch to diffraction mode 
when they want accurate measurements.  You lose the phase information but, 
since EM lenses tend to have imperfections, you get better measurements of the 
intensities.


Only to my knowledge in the case of crystalline samples like 2D crystals.


Of course the loss of phases is a serious problem when you don't have a model 
of the object as precise as our atomic models.


From where does this precision arise, I wonder? I guess priors for atom-based 
models are pretty invariant. On the other hand, who says that such priors, 
albeit of many more varieties, don't exist for larger biological samples, such 
as zebrafish brains and drosophila embryos/larvae? Anyway, right now, the state 
of the art of modelling in these fluorescence data sets is hand-drawing circles 
around things that look interesting, hoping the sample does not shift too much, 
or perhaps using some tracking. But it could be so much better!

JPK




Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Keller, Jacob
>>My understanding is that EM people will routinely switch to diffraction mode 
>>when they want accurate measurements.  You lose the phase information but, 
>>since EM lenses tend to have imperfections, you get better measurements of 
>>the intensities.

Only to my knowledge in the case of crystalline samples like 2D crystals.

>>Of course the loss of phases is a serious problem when you don't have a model 
>>of the object as precise as our atomic models.

From where does this precision arise, I wonder? I guess priors for atom-based 
models are pretty invariant. On the other hand, who says that such priors, 
albeit of many more varieties, don't exist for larger biological samples, such 
as zebrafish brains and drosophila embryos/larvae? Anyway, right now, the state 
of the art of modelling in these fluorescence data sets is hand-drawing circles 
around things that look interesting, hoping the sample does not shift too much, 
or perhaps using some tracking. But it could be so much better!

JPK



Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Dale Tronrud
On 11/10/2017 7:55 AM, Keller, Jacob wrote:
> "Quality of image" has a lot of parameters, including resolution, noise, 
> systematic errors, etc. I am not aware of a global "quality of image" metric.
> 
> One other consideration, not related to your comment: imagine if we had an 
> x-ray lens through which we could take confocal images of a protein molecule 
> or crystal, output as a voxel array. Would we really still prefer to measure 
> diffraction patterns rather than the equivalent real space image, even 
> assuming we had some perfect way to solve the phase problem? Or conversely, 
> should we try to do fluorescence imaging in diffraction mode, due to its 
> purported information efficiency?

   It depends on the quality of your lens.  My understanding is that EM
people will routinely switch to diffraction mode when they want accurate
measurements.  You lose the phase information but, since EM lenses tend
to have imperfections, you get better measurements of the intensities.
Of course the loss of phases is a serious problem when you don't have a
model of the object as precise as our atomic models.

   The lens in a microscope tends to be of very high quality and you
don't have precise models of the object to calculate phases so there is
no advantage of going to "diffraction mode"..

Dale Tronrud

> 
> JPK
> 
> -Original Message-
> From: herman.schreu...@sanofi.com [mailto:herman.schreu...@sanofi.com] 
> Sent: Friday, November 10, 2017 10:22 AM
> To: Keller, Jacob <kell...@janelia.hhmi.org>; CCP4BB@JISCMAIL.AC.UK
> Subject: AW: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum
> 
> At the bottom line, it is the quality of the image, not only the amount of 
> pixels that counts. Adding more megapixels to a digital camera with a poor 
> lens (as some manufacturers did), did not result in any sharper or better 
> images.
> Herman
> 
> 
> -Ursprüngliche Nachricht-
> Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von 
> Keller, Jacob
> Gesendet: Freitag, 10. November 2017 15:48
> An: CCP4BB@JISCMAIL.AC.UK
> Betreff: [EXTERNAL] Re: [ccp4bb] AW: Re: [ccp4bb] Basic 
> Crystallography/Imaging Conundrum
> 
> It seems, then, to be generally agreed that the conversion between voxels and 
> Fourier terms was valid, each containing the same amount of information, but 
> the problem was in the representation, and there was just trickery of the 
> eye. I was thinking and hoping this would be so, since it allows a pretty 
> direct comparison of crystal data to microscopic imaging data. I guess a 
> litmus test would be to decide whether a voxel version of the electron 
> density map would work equivalently well in crystallographic software, which 
> I suspect it would. If so, then the same techniques--so effective in 
> extracting information for the relatively information-poor crystal 
> structures--could be used on fluorescence imaging data, which come in voxels.
> 
> Regarding information-wealth, in Dale's example, the whole hkl set was 4.1 
> MB. One frame in a garden-variety XYZT fluorescence image, however, contains 
> about 2000 x 2000 x 100 voxels at 16-bit, i.e., 400 million bits or 50 MB. In 
> some data sets, these frames come at 10 Hz or more. I suspect that the 
> I/sigma is also much better in the latter. So, with these data, and keeping a 
> data:parameters ratio of ~4, one could model about 100 million parameters. 
> This type of modelling, or any type of modelling for that matter, remains 
> almost completely absent in the imaging world, perhaps because the data size 
> is currently so unwieldy, perhaps also because sometimes people get nervous 
> about model biases, perhaps also because people are still improving the 
> imaging techniques. But just imagine what could be done with some 
> crystallography-style modelling!
> 
> Jacob Keller
> 
> 
> 
> -----Original Message-----
> From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of Tristan 
> Croll
> Sent: Friday, November 10, 2017 8:36 AM
> To: CCP4BB@JISCMAIL.AC.UK
> Subject: Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum
> 
> Or a nice familiar 2D example: the Ramachandran plot with 7.5 degree binning, 
> as a grid (left) or with bicubic smoothing (right). Different visualisations 
> of the same data, but the right-hand image uses it better.
> 
> On 2017-11-10 08:24, herman.schreu...@sanofi.com wrote:
>> In line with Dale's suggestions, I would suggest that you reformat 
>> your voxel map into the format of an electron density map and look at 
>> it with coot. I am sure it will look much better and much more like 
>> the electron density we are used to look at. Alternatively, you c

Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Dale Tronrud
   A second observation of the same experimental quantity does not
double the amount of "information".  We know from the many discussions
on this forum that the improvement of multiplicity is diminishing with
repetition.

   Measuring "information content" is very hard.  You can't just count
the bytes and say that measures the information content.  My example of
an oversampled map proves the point - The file is much bigger but can be
calculated exactly from the same, relatively small, number of
reflections.  The ultimate extreme is a map calculated from just the
F000 term.  One number can produces a map with gigibytes of data - It
just happens that all the numbers are equal.

   While our Bragg spots are pretty much independent measurements, after
merging, Herman is right about microscopes.  The physical nature of the
instrument introduces relationships between the values of the voxels so
the information content is smaller, perhaps by a lot, than the number of
bytes in the image.  You have to have a deep understanding of the lens
system to work out what is going on.  And a second image of the same
instrument of the same object measured a mSec later will be very highly
correlated with the first and add very little new "information" to the
experiment.

   BTW while we write maps as a set of numbers arranged in the 3D array,
it is not equivalent to an image.  The pixels, or voxels in 3D, indicate
the average value of that region while our map files contain the value
of the density at a particular point.  Our numbers are very distinct,
while pixels can be quite confusing.  In many detectors the area
averaged over is somewhat larger than the spacing of the pixels giving
the illusion of greater detail w/o actually providing more information.
This occurs in our CCD detectors where the X-ray photons are converted
to a lower frequency light by some sort of phosphor and in a microscope
by a poor lens (also as mentioned by Herman).

   Measuring information content is hard, which is why it is usually not
considered a rigorous quantity.  The classic example is the value of
ratio of the circumference of a circle to its diameter.  This number has
an infinite number of digits which could be considered an infinite
amount of information.  I can simply type "Pi", however, and accurately
express that infinity of information.  Just how much information is present?

Dale Tronrud

On 11/10/2017 6:47 AM, Keller, Jacob wrote:
> It seems, then, to be generally agreed that the conversion between voxels and 
> Fourier terms was valid, each containing the same amount of information, but 
> the problem was in the representation, and there was just trickery of the 
> eye. I was thinking and hoping this would be so, since it allows a pretty 
> direct comparison of crystal data to microscopic imaging data. I guess a 
> litmus test would be to decide whether a voxel version of the electron 
> density map would work equivalently well in crystallographic software, which 
> I suspect it would. If so, then the same techniques--so effective in 
> extracting information for the relatively information-poor crystal 
> structures--could be used on fluorescence imaging data, which come in voxels.
> 
> Regarding information-wealth, in Dale's example, the whole hkl set was 4.1 
> MB. One frame in a garden-variety XYZT fluorescence image, however, contains 
> about 2000 x 2000 x 100 voxels at 16-bit, i.e., 400 million bits or 50 MB. In 
> some data sets, these frames come at 10 Hz or more. I suspect that the 
> I/sigma is also much better in the latter. So, with these data, and keeping a 
> data:parameters ratio of ~4, one could model about 100 million parameters. 
> This type of modelling, or any type of modelling for that matter, remains 
> almost completely absent in the imaging world, perhaps because the data size 
> is currently so unwieldy, perhaps also because sometimes people get nervous 
> about model biases, perhaps also because people are still improving the 
> imaging techniques. But just imagine what could be done with some 
> crystallography-style modelling!
> 
> Jacob Keller
> 
> 
> 
> -Original Message-
> From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of Tristan 
> Croll
> Sent: Friday, November 10, 2017 8:36 AM
> To: CCP4BB@JISCMAIL.AC.UK
> Subject: Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum
> 
> Or a nice familiar 2D example: the Ramachandran plot with 7.5 degree binning, 
> as a grid (left) or with bicubic smoothing (right). Different visualisations 
> of the same data, but the right-hand image uses it better.
> 
> On 2017-11-10 08:24, herman.schreu...@sanofi.com wrote:
>> In line with Dale's suggestions, I would suggest that you reformat 
>> your voxel map into the format of an electron density map and l

Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Keller, Jacob
"Quality of image" has a lot of parameters, including resolution, noise, 
systematic errors, etc. I am not aware of a global "quality of image" metric.

One other consideration, not related to your comment: imagine if we had an 
x-ray lens through which we could take confocal images of a protein molecule or 
crystal, output as a voxel array. Would we really still prefer to measure 
diffraction patterns rather than the equivalent real space image, even assuming 
we had some perfect way to solve the phase problem? Or conversely, should we 
try to do fluorescence imaging in diffraction mode, due to its purported 
information efficiency?

JPK

-Original Message-
From: herman.schreu...@sanofi.com [mailto:herman.schreu...@sanofi.com] 
Sent: Friday, November 10, 2017 10:22 AM
To: Keller, Jacob <kell...@janelia.hhmi.org>; CCP4BB@JISCMAIL.AC.UK
Subject: AW: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

At the bottom line, it is the quality of the image, not only the amount of 
pixels that counts. Adding more megapixels to a digital camera with a poor lens 
(as some manufacturers did), did not result in any sharper or better images.
Herman


-Ursprüngliche Nachricht-
Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von Keller, 
Jacob
Gesendet: Freitag, 10. November 2017 15:48
An: CCP4BB@JISCMAIL.AC.UK
Betreff: [EXTERNAL] Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging 
Conundrum

It seems, then, to be generally agreed that the conversion between voxels and 
Fourier terms was valid, each containing the same amount of information, but 
the problem was in the representation, and there was just trickery of the eye. 
I was thinking and hoping this would be so, since it allows a pretty direct 
comparison of crystal data to microscopic imaging data. I guess a litmus test 
would be to decide whether a voxel version of the electron density map would 
work equivalently well in crystallographic software, which I suspect it would. 
If so, then the same techniques--so effective in extracting information for the 
relatively information-poor crystal structures--could be used on fluorescence 
imaging data, which come in voxels.

Regarding information-wealth, in Dale's example, the whole hkl set was 4.1 MB. 
One frame in a garden-variety XYZT fluorescence image, however, contains about 
2000 x 2000 x 100 voxels at 16-bit, i.e., 400 million bits or 50 MB. In some 
data sets, these frames come at 10 Hz or more. I suspect that the I/sigma is 
also much better in the latter. So, with these data, and keeping a 
data:parameters ratio of ~4, one could model about 100 million parameters. This 
type of modelling, or any type of modelling for that matter, remains almost 
completely absent in the imaging world, perhaps because the data size is 
currently so unwieldy, perhaps also because sometimes people get nervous about 
model biases, perhaps also because people are still improving the imaging 
techniques. But just imagine what could be done with some crystallography-style 
modelling!

Jacob Keller



-Original Message-
From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of Tristan 
Croll
Sent: Friday, November 10, 2017 8:36 AM
To: CCP4BB@JISCMAIL.AC.UK
Subject: Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

Or a nice familiar 2D example: the Ramachandran plot with 7.5 degree binning, 
as a grid (left) or with bicubic smoothing (right). Different visualisations of 
the same data, but the right-hand image uses it better.

On 2017-11-10 08:24, herman.schreu...@sanofi.com wrote:
> In line with Dale's suggestions, I would suggest that you reformat 
> your voxel map into the format of an electron density map and look at 
> it with coot. I am sure it will look much better and much more like 
> the electron density we are used to look at. Alternatively, you could 
> display an bona fide electron density map as voxel blocks and I am 
> sure it will look similar to the voxel map you showed in your first 
> email.
> 
> Best,
> Herman
> 
> -Ursprüngliche Nachricht-
> Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von 
> Dale Tronrud
> Gesendet: Freitag, 10. November 2017 08:08
> An: CCP4BB@JISCMAIL.AC.UK
> Betreff: [EXTERNAL] Re: [ccp4bb] Basic Crystallography/Imaging 
> Conundrum
> 
>Ethan and I apparently agree that anomalous scattering is "normal"
> and Friedel's Law is just an approximation.  I'll presume that your 
> "unique" is assuming otherwise and your 62,500 reflections only 
> include half of reciprocal space.  The full sphere of data would 
> include 125,000 reflections.  Since the cube root of 125,000 is 50 you 
> get a range of indices from -25 to +25 which would give you 2 A 
> resolution, which is still far from your hope of 1 A.
> 
>For your test case of 

[ccp4bb] AW: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Herman . Schreuder
At the bottom line, it is the quality of the image, not only the amount of 
pixels that counts. Adding more megapixels to a digital camera with a poor lens 
(as some manufacturers did), did not result in any sharper or better images.
Herman


-Ursprüngliche Nachricht-
Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von Keller, 
Jacob
Gesendet: Freitag, 10. November 2017 15:48
An: CCP4BB@JISCMAIL.AC.UK
Betreff: [EXTERNAL] Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging 
Conundrum

It seems, then, to be generally agreed that the conversion between voxels and 
Fourier terms was valid, each containing the same amount of information, but 
the problem was in the representation, and there was just trickery of the eye. 
I was thinking and hoping this would be so, since it allows a pretty direct 
comparison of crystal data to microscopic imaging data. I guess a litmus test 
would be to decide whether a voxel version of the electron density map would 
work equivalently well in crystallographic software, which I suspect it would. 
If so, then the same techniques--so effective in extracting information for the 
relatively information-poor crystal structures--could be used on fluorescence 
imaging data, which come in voxels.

Regarding information-wealth, in Dale's example, the whole hkl set was 4.1 MB. 
One frame in a garden-variety XYZT fluorescence image, however, contains about 
2000 x 2000 x 100 voxels at 16-bit, i.e., 400 million bits or 50 MB. In some 
data sets, these frames come at 10 Hz or more. I suspect that the I/sigma is 
also much better in the latter. So, with these data, and keeping a 
data:parameters ratio of ~4, one could model about 100 million parameters. This 
type of modelling, or any type of modelling for that matter, remains almost 
completely absent in the imaging world, perhaps because the data size is 
currently so unwieldy, perhaps also because sometimes people get nervous about 
model biases, perhaps also because people are still improving the imaging 
techniques. But just imagine what could be done with some crystallography-style 
modelling!

Jacob Keller



-Original Message-
From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of Tristan 
Croll
Sent: Friday, November 10, 2017 8:36 AM
To: CCP4BB@JISCMAIL.AC.UK
Subject: Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

Or a nice familiar 2D example: the Ramachandran plot with 7.5 degree binning, 
as a grid (left) or with bicubic smoothing (right). Different visualisations of 
the same data, but the right-hand image uses it better.

On 2017-11-10 08:24, herman.schreu...@sanofi.com wrote:
> In line with Dale's suggestions, I would suggest that you reformat 
> your voxel map into the format of an electron density map and look at 
> it with coot. I am sure it will look much better and much more like 
> the electron density we are used to look at. Alternatively, you could 
> display an bona fide electron density map as voxel blocks and I am 
> sure it will look similar to the voxel map you showed in your first 
> email.
> 
> Best,
> Herman
> 
> -Ursprüngliche Nachricht-
> Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von 
> Dale Tronrud
> Gesendet: Freitag, 10. November 2017 08:08
> An: CCP4BB@JISCMAIL.AC.UK
> Betreff: [EXTERNAL] Re: [ccp4bb] Basic Crystallography/Imaging 
> Conundrum
> 
>Ethan and I apparently agree that anomalous scattering is "normal"
> and Friedel's Law is just an approximation.  I'll presume that your 
> "unique" is assuming otherwise and your 62,500 reflections only 
> include half of reciprocal space.  The full sphere of data would 
> include 125,000 reflections.  Since the cube root of 125,000 is 50 you 
> get a range of indices from -25 to +25 which would give you 2 A 
> resolution, which is still far from your hope of 1 A.
> 
>For your test case of 1 A resolution with 50 A cell lengths you 
> want your indices to run from -50 to +50 giving a box of reflections 
> in reciprocal space 101 spots wide in each direction and a total of
> 101^3 =
> 1,030,301 reflections. (or 515,150.5 reflections for your Friedel 
> unique with the "half" reflection being the F000 which would then be 
> purely real valued.)
> 
>Assuming you can fit your structure factors into 16 bits (You had 
> better not have many more than 10,000 atoms if you don't want your
> F000 to overflow.) the information content will be 1,030,301 * 2 * 16 
> bits (The "2" because they are complex.) giving 32,969,632 bits.
> 
>If you spread this same amount of information across real space you 
> will have 1,030,301 complex density values in a 50x50x50 A space 
> giving a sampling rate along each axis of 101 samples/unit cell.
> 
>Complex density values?  The re

Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Keller, Jacob
It seems, then, to be generally agreed that the conversion between voxels and 
Fourier terms was valid, each containing the same amount of information, but 
the problem was in the representation, and there was just trickery of the eye. 
I was thinking and hoping this would be so, since it allows a pretty direct 
comparison of crystal data to microscopic imaging data. I guess a litmus test 
would be to decide whether a voxel version of the electron density map would 
work equivalently well in crystallographic software, which I suspect it would. 
If so, then the same techniques--so effective in extracting information for the 
relatively information-poor crystal structures--could be used on fluorescence 
imaging data, which come in voxels.

Regarding information-wealth, in Dale's example, the whole hkl set was 4.1 MB. 
One frame in a garden-variety XYZT fluorescence image, however, contains about 
2000 x 2000 x 100 voxels at 16-bit, i.e., 400 million bits or 50 MB. In some 
data sets, these frames come at 10 Hz or more. I suspect that the I/sigma is 
also much better in the latter. So, with these data, and keeping a 
data:parameters ratio of ~4, one could model about 100 million parameters. This 
type of modelling, or any type of modelling for that matter, remains almost 
completely absent in the imaging world, perhaps because the data size is 
currently so unwieldy, perhaps also because sometimes people get nervous about 
model biases, perhaps also because people are still improving the imaging 
techniques. But just imagine what could be done with some crystallography-style 
modelling!

Jacob Keller



-Original Message-
From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of Tristan 
Croll
Sent: Friday, November 10, 2017 8:36 AM
To: CCP4BB@JISCMAIL.AC.UK
Subject: Re: [ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

Or a nice familiar 2D example: the Ramachandran plot with 7.5 degree binning, 
as a grid (left) or with bicubic smoothing (right). Different visualisations of 
the same data, but the right-hand image uses it better.

On 2017-11-10 08:24, herman.schreu...@sanofi.com wrote:
> In line with Dale's suggestions, I would suggest that you reformat 
> your voxel map into the format of an electron density map and look at 
> it with coot. I am sure it will look much better and much more like 
> the electron density we are used to look at. Alternatively, you could 
> display an bona fide electron density map as voxel blocks and I am 
> sure it will look similar to the voxel map you showed in your first 
> email.
> 
> Best,
> Herman
> 
> -Ursprüngliche Nachricht-
> Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von 
> Dale Tronrud
> Gesendet: Freitag, 10. November 2017 08:08
> An: CCP4BB@JISCMAIL.AC.UK
> Betreff: [EXTERNAL] Re: [ccp4bb] Basic Crystallography/Imaging 
> Conundrum
> 
>Ethan and I apparently agree that anomalous scattering is "normal"
> and Friedel's Law is just an approximation.  I'll presume that your 
> "unique" is assuming otherwise and your 62,500 reflections only 
> include half of reciprocal space.  The full sphere of data would 
> include 125,000 reflections.  Since the cube root of 125,000 is 50 you 
> get a range of indices from -25 to +25 which would give you 2 A 
> resolution, which is still far from your hope of 1 A.
> 
>For your test case of 1 A resolution with 50 A cell lengths you 
> want your indices to run from -50 to +50 giving a box of reflections 
> in reciprocal space 101 spots wide in each direction and a total of
> 101^3 =
> 1,030,301 reflections. (or 515,150.5 reflections for your Friedel 
> unique with the "half" reflection being the F000 which would then be 
> purely real valued.)
> 
>Assuming you can fit your structure factors into 16 bits (You had 
> better not have many more than 10,000 atoms if you don't want your
> F000 to overflow.) the information content will be 1,030,301 * 2 * 16 
> bits (The "2" because they are complex.) giving 32,969,632 bits.
> 
>If you spread this same amount of information across real space you 
> will have 1,030,301 complex density values in a 50x50x50 A space 
> giving a sampling rate along each axis of 101 samples/unit cell.
> 
>Complex density values?  The real part of the density is what we 
> call the electron density and the imaginary part we call the anomalous 
> density.  If there is no anomalous scattering then Friedel's Law holds 
> and the number of unique reflections is cut in half and the density 
> values are purely real valued - The information content in both spaces 
> is cut in half and they remain equal.
> 
>By sampling your unit cell with 101 samples their rate is half that 
> of the wavelength of the highest frequency refle

[ccp4bb] AW: Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

2017-11-10 Thread Herman . Schreuder
In line with Dale's suggestions, I would suggest that you reformat your voxel 
map into the format of an electron density map and look at it with coot. I am 
sure it will look much better and much more like the electron density we are 
used to look at. Alternatively, you could display an bona fide electron density 
map as voxel blocks and I am sure it will look similar to the voxel map you 
showed in your first email.

Best,
Herman

-Ursprüngliche Nachricht-
Von: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] Im Auftrag von Dale 
Tronrud
Gesendet: Freitag, 10. November 2017 08:08
An: CCP4BB@JISCMAIL.AC.UK
Betreff: [EXTERNAL] Re: [ccp4bb] Basic Crystallography/Imaging Conundrum

   Ethan and I apparently agree that anomalous scattering is "normal"
and Friedel's Law is just an approximation.  I'll presume that your "unique" is 
assuming otherwise and your 62,500 reflections only include half of reciprocal 
space.  The full sphere of data would include 125,000 reflections.  Since the 
cube root of 125,000 is 50 you get a range of indices from -25 to +25 which 
would give you 2 A resolution, which is still far from your hope of 1 A.

   For your test case of 1 A resolution with 50 A cell lengths you want your 
indices to run from -50 to +50 giving a box of reflections in reciprocal space 
101 spots wide in each direction and a total of 101^3 =
1,030,301 reflections. (or 515,150.5 reflections for your Friedel unique with 
the "half" reflection being the F000 which would then be purely real valued.)

   Assuming you can fit your structure factors into 16 bits (You had better not 
have many more than 10,000 atoms if you don't want your F000 to overflow.) the 
information content will be 1,030,301 * 2 * 16 bits (The "2" because they are 
complex.) giving 32,969,632 bits.

   If you spread this same amount of information across real space you will 
have 1,030,301 complex density values in a 50x50x50 A space giving a sampling 
rate along each axis of 101 samples/unit cell.

   Complex density values?  The real part of the density is what we call the 
electron density and the imaginary part we call the anomalous density.  If 
there is no anomalous scattering then Friedel's Law holds and the number of 
unique reflections is cut in half and the density values are purely real valued 
- The information content in both spaces is cut in half and they remain equal.

   By sampling your unit cell with 101 samples their rate is half that of the 
wavelength of the highest frequency reflection.  (e.q. a sampling rate of 0.5 A 
for 1 A resolution data)  This is, of course, the Nyquist Theorem which states 
that you have to sample at twice the frequency of the highest resolution 
Fourier coefficient.

  This is exactly how an FFT works.  It allocates the memory required to store 
the structure factors and it returns the map in that same array - The number of 
bytes is unchanged.  It also guarantees that the calculation is reversible as 
no information is lost in either direction.

   So, why does your blocky image look so bad?  First you have sampled too 
coarsely.  You should have twice the sampling rate in each direction.

   The next point is more subtle.  You are displaying each voxel as a block.  
This is not correct.  The sharp lines that occur at the boundaries between the 
blocks is a high frequency feature which is not consistent with a 1 A 
resolution image.  Your sample points should be displayed at discrete points 
since they are not the average density within a block but the value of the 
density at one specific point.

   What is the density of the map between the sampled points?  The Fourier 
series provides all the information needed to calculate them and you can 
calculate values for as fine a sampling rate as you like, just remember that 
you are not adding any more information because these new points are correlated 
with each other.

   If you have only the samples of a map and want to calculate Fourier 
coefficients there are many sets of Fourier coefficients that will reproduce 
the sampled points equally well.  We specify a unique solution in the FFT by 
defining that all reflections of resolution higher than 1 A must be identically 
equal to zero.  When you calculate a map from a set of coefficients that only 
go to 1 A resolution this is guaranteed.

   When you are calculating coefficients from any old map you had better ensure 
that the map you are sampling does not contain information of a higher 
resolution than twice your sampling rate.  This is a problem when calculating 
Fcalc from an atomic model.  You calculate a map from the model and FFT it, but 
you can't sample that map at 1/2 the resolution of your interest.  You must 
sample that map much more finely because an atomic model implies Fourier 
coefficients of very high resolution.
(Otherwise phase extension would be impossible)  This problem was discussed in 
detail in Lynn Ten Eyck's 1976 paper on Fcalc FFT's but is often