Project

General

Profile

Actions

Bug #1438

open

Matlab scripts to read MRC files are reading angles incorrectly

Added by Amber Herold about 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/03/2011
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
No
Workaround:

Description

They should be read as floats instead of longs, per the following message:

From: Matthew Sochor <>
Date: September 26, 2011 11:45:33 AM PDT
To: "" <>
Subject: read MRC file matlab scripts

Hi,

I found your Matlab scripts (http://emg.nysbc.org/software/mrctools/mrc_specification.php) to read Chimera .mrc files. Thanks for writing these, they worked great.

One thing I did find which I wanted to share with you, the file did not read in the cellx, celly or cellz's correctly (or the angles that followed for that matter). If you read it as a float instead of a long it does however work.

Here are the relevant lines:

...
mx = fread(fid,1,'long');
my = fread(fid,1,'long');
mz = fread(fid,1,'long');
cellx = fread(fid,1,'float');
celly = fread(fid,1,'float');
cellz = fread(fid,1,'float');
...

Thanks,
Matt

Also, are we goign to contnue to offer a mrc reading module?

No data to display

Actions

Also available in: Atom PDF