I will use C++23 for the implementation.

Charles what do you think about that? Should I make it conditionally compilable?

Paul

On 04/11/2025 16:23, Marcin Wojdyr wrote:

Dear all,

just for the record, I used IMOD newstack to obtain a file in mode 12,
and gave it a try and implemented reading it in C++ (in gemmi not Coot).
Mode 12 uses half-precision (2-byte) float. Which is supported by C++
since C++23 (as std::float16_t).
If working with older C++, the easiest way is to use a third-party
library for 2-byte float. I used this:
     https://sourceforge.net/projects/half
and it seems to work.

Cheers,
Marcin

On Mon, Nov 3, 2025 at 3:52 PM Alexis Rohou <[email protected]> wrote:
Hi Marcin,

CryoSPARC, RELION, cisTEM, ChimeraX, IMOD, Phenix, MOE and (I assume) some 
other packages handle mode 12.

There must be files available that you could download. Or just convert any MRC 
file you already have with IMOD (off the top of my head: newstack -mode 12 
old.mrc new.mrc).

Cheers,
Alexis

—
Alexis Rohou
Distinguished Scientist
Director of CryoEM
Genentech, Department of Structural Biology
1 DNA Way
South San Francisco, CA 94080
(cell) 781 249 9629


Sent from a mobile device, with apologies for brevity, typos, swypos, and 
predictive text errors.


On Mon, Nov 3, 2025 at 4:47 AM Marcin Wojdyr <[email protected]> wrote:
Hi Alexis,
That's a relatively new mode. I don't know any software that handles
it. Are there any publically available examples of such files?

Marcin

On Fri, Oct 31, 2025 at 8:24 PM Alexis Rohou
<[email protected]> wrote:
Hi Paul,

Unless I'm mistaken, coot doesn't handle MRC maps in mode 12 (16-bit floats) 
correctly. At least with coot-1.1.19 I couldn't get such a map to display, but 
converting it to mode 2 (32-bit floats) and loading the converted map works 
just as expected.

If that's all correct, I would humbly request that support be added for mode 12 
MRC maps, which I work with very frequently.

Cheers,
Alexis

--
Alexis Rohou
Distinguished Scientist
Director of CryoEM
Genentech, Department of Structural Biology
1 DNA Way
South San Francisco, CA 94080
Cell: 781 249 9629
Pronouns: he/him/his

________________________________

To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1
########################################################################

To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1

This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/



########################################################################

To unsubscribe from the COOT list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/WA-JISC.exe?SUBED1=COOT&A=1

This message was issued to members of www.jiscmail.ac.uk/COOT, a mailing list 
hosted by www.jiscmail.ac.uk, terms & conditions are available at 
https://www.jiscmail.ac.uk/policyandsecurity/

Reply via email to