JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for CCP4BB Archives


CCP4BB Archives

CCP4BB Archives


CCP4BB@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CCP4BB Home

CCP4BB Home

CCP4BB  November 2017

CCP4BB November 2017

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

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

From:

Dale Tronrud <[log in to unmask]>

Reply-To:

Dale Tronrud <[log in to unmask]>

Date:

Fri, 10 Nov 2017 08:12:20 -0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (265 lines)

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: [log in to unmask] [mailto:[log in to unmask]] 
> Sent: Friday, November 10, 2017 10:22 AM
> To: Keller, Jacob <[log in to unmask]>; [log in to unmask]
> 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:[log in to unmask]] Im Auftrag von Keller, Jacob
> Gesendet: Freitag, 10. November 2017 15:48
> An: [log in to unmask]
> 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:[log in to unmask]] On Behalf Of Tristan Croll
> Sent: Friday, November 10, 2017 8:36 AM
> To: [log in to unmask]
> 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, [log in to unmask] 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:[log in to unmask]] Im Auftrag von 
>> Dale Tronrud
>> Gesendet: Freitag, 10. November 2017 08:08
>> An: [log in to unmask]
>> 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 forgotten.  Gerard Bricogne's papers on NCS averaging from 
>> the 1970's also discusses these matters in great depth.
>>
>>    In summary, your blocky picture (even with double sampling) is not 
>> a valid representation because it is not blurry like a 1 A resolution 
>> map should be.  To create an accurate image you need to oversample the 
>> map sufficiently to prevent the human eye from detecting aliasing 
>> artifacts such as the straight lines visible in your blocky picture.
>> This requires very fine sampling because the eye is very sensitive to 
>> straight lines.  When using a map for any purpose other than FFTing 
>> you will need to oversample the map by some amount to prevent aliasing 
>> artifacts and the amount of oversampling will depend on what you are 
>> doing to the map (Again, see Gerard's papers.)  Such an oversampled 
>> map will have many more voxels but no more information because the 
>> density values are correlated.
>>
>> Dale Tronrud
>>
>> On 11/9/2017 4:10 PM, Keller, Jacob wrote:
>>> Dear Crystallographers,
>>>
>>>  
>>>
>>> I have been considering a thought-experiment of sorts for a while, 
>>> and wonder what you will think about it:
>>>
>>>  
>>>
>>> Consider a diffraction data set which contains 62,500 unique 
>>> reflections from a 50 x 50 x 50 Angstrom unit cell, with each 
>>> intensity measured perfectly with 16-bit depth. (I am not sure what 
>>> resolution this corresponds to, but it would be quite high even in 
>>> p1, I think--probably beyond 1.0 Angstrom?). Thus, there are 62,500 x
>>> 16 bits (125 KB) of information in this alone, and there is an HKL 
>>> index associated with each intensity, so that I suppose contains 
>>> information as well. One could throw in phases at 16-bit as well, and 
>>> get a total of 250 KB for this dataset.
>>>
>>>  
>>>
>>> Now consider an parallel (equivalent?) data set, but this time 
>>> instead of reflection intensities you have a real space voxel map of 
>>> the same
>>> 50 x 50 x 50 unit cell consisting of 125,000 voxels, each of which 
>>> has a 16-bit electron density value, and an associated xyz index 
>>> analogous to the hkl above. That makes a total of 250 KB, with each 
>>> voxel a 1 Angstrom cube. It seems to me this level of graininess 
>>> would be really hard to interpret, especially for a static picture of 
>>> a protein structure. (see attached: top is a ~1 Ang/pixel 
>>> down-sampled version of the image below).
>>>
>>>  
>>>
>>> Or, if we wanted smaller voxels still, let's say by half, we would 
>>> have to reduce the bit depth to 2 bits. But this would still only 
>>> yield half-Angstrom voxels, each with only four possible electron 
>>> density values.
>>>
>>>  
>>>
>>> Is this comparison apt? Off the cuff, I cannot see how a 50 x 50 
>>> pixel image corresponds at all to the way our maps look, especially 
>>> at around
>>> 1 Ang resolution. Please, if you can shoot down the analogy, do.
>>>
>>>  
>>>
>>> Assuming that it is apt, however: is this a possible way to see the 
>>> power of all of our Bayesian modelling? Could one use our modelling 
>>> tools on such a grainy picture and arrive at similar results?
>>>
>>>  
>>>
>>> Are our data sets really this poor in information, and we just model 
>>> the heck out of them, as perhaps evidenced by our scarily low 
>>> data:parameters ratios?
>>>
>>>  
>>>
>>> My underlying motivation in this thought experiment is to illustrate 
>>> the richness in information (and poorness of modelling) that one 
>>> achieves in fluorescence microscopic imaging. If crystallography is 
>>> any measure of the power of modelling, one could really go to town on 
>>> some of these terabyte 5D functional data sets we see around here at 
>>> Janelia (and on YouTube).
>>>
>>>  
>>>
>>> What do you think?
>>>
>>>  
>>>
>>> Jacob Keller
>>>
>>>  
>>>
>>> +++++++++++++++++++++++++++++++++++++++++++++++++
>>>
>>> Jacob Pearson Keller
>>>
>>> Research Scientist / Looger Lab
>>>
>>> HHMI Janelia Research Campus
>>>
>>> 19700 Helix Dr, Ashburn, VA 20147
>>>
>>> (571)209-4000 x3159
>>>
>>> +++++++++++++++++++++++++++++++++++++++++++++++++
>>>
>>>  
>>>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager