Yes, sorry for the mistake;

Smith,
did you try to open your .mtz file with matzdmp from a terminal window? is it 
possible to redirect the output from mtzdmp to a new file, I mean:

>mtzdmp corrupted_file.mtz > recovered_file.mtz

???
I don’t know...

Fulvio



Il giorno 05/mar/2015, alle ore 16:18, Harry Powell <ha...@mrc-lmb.cam.ac.uk> 
ha scritto:

> Hi Fulvio
> 
> MTZ files are binary, so I don't think they have line-endings in the sense 
> that text files do.
> 
> On 5 Mar 2015, at 15:09, Fulvio Saccoccia, Sapienza wrote:
> 
>> Sorry, my previous post was not properly attached; I attached my idea:
>> 
>> Dear Smith,
>>    It is curious; I am not sure about what I am going to suggest since I 
>> never had that problem but the simplest explanation I found is that you have 
>> some Line Endings issues. Windows, Mac and Unix all use different codes to 
>> end a line in a text file. A file that is scripted with Windows has Windows 
>> line ending (DOS-like) and may not be properly read on Mac or Linux machine. 
>> Let me explain: by using WordPad and notepad you might have changed the end 
>> line of your PDB/mtz file from UNIX-based (or Mac) line endings to 
>> Windows-based Line endings. Line endings cannot be detected by simple 
>> inspecting the file, but some programs (in this case Coot) can have problem 
>> to open them.
>> To be safe, try by opening your files with such a program (TextWrangler for 
>> ex. in Mac) and save the file with the correct line ending for your machine 
>> (Mac, Linux or Windows). I attached a picture for reference to show you the 
>> option you have in TextWrangler when you use Save as… option (other text 
>> editors should have similar options)
>> <sconosciuto.png>
>> 
>> Best wishes
>> Fulvio
>> 
>> 
>> Il giorno 05/mar/2015, alle ore 14:51, Robbie Joosten 
>> <robbie_joos...@hotmail.com> ha scritto:
>> 
>>> Hi Smith,
>>> 
>>> If this is really the problem Ian describes, you can try the Linux programs 
>>> unix2dos and dos2unix the change the line endings. A potential source of 
>>> the problem might be copying the file with certain (S)FTP clients: in 
>>> 'text-mode' they change the line endings to your OS default to be user 
>>> friendly.
>>> 
>>> Cheers,
>>> Robbie
>>> 
>>>> -----Original Message-----
>>>> From: CCP4 bulletin board [mailto:CCP4BB@JISCMAIL.AC.UK] On Behalf Of
>>>> Ian Tickle
>>>> Sent: Thursday, March 05, 2015 14:04
>>>> To: CCP4BB@JISCMAIL.AC.UK
>>>> Subject: Re: [ccp4bb] how to recover my data
>>>> 
>>>> Hi Smith
>>>> 
>>>> 
>>>> I sympathise with your plight - I have had to do similar things in the 
>>>> past for
>>>> other people!  I think your most fruitful course of action would be to 
>>>> talk to
>>>> the technician who recovered your data because only he knows what he
>>>> actually did to recover it.
>>>> 
>>>> 
>>>> From your description of your recovery of the PDB file it looks to me like 
>>>> a
>>>> line terminator issue, i.e. was the original file created in Linux, 
>>>> Windows or
>>>> Mac?  This is relevant because the line terminators are different and it
>>>> sounds like the technician didn't simply copy the file, he changed the line
>>>> terminators.  If he did the same with the MTZ file thinking it was a text 
>>>> file
>>>> the additional line terminators would corrupt the binary data making it
>>>> impossible to read with any of the CCP4 MTZ utilities.  If you can 
>>>> understand
>>>> exactly what the technician did you may be able to reverse it and recover 
>>>> the
>>>> binary data.
>>>> 
>>>> 
>>>> Hope this helps!
>>>> 
>>>> 
>>>> Cheers
>>>> 
>>>> 
>>>> -- Ian
>>>> 
>>>> 
>>>> On 5 March 2015 at 05:36, Smith Lee <00000459ef8548d5-dmarc-
>>>> requ...@jiscmail.ac.uk> wrote:
>>>> 
>>>> 
>>>> 
>>>>    Dear All,
>>>> 
>>>>    Recently my computer hardware has been broken and all the data
>>>> has been recovered to movable hardware by technician. However I find the
>>>> recovered PDB file and the MTZcould not be openned by Coot. Then I open
>>>> the revovered PDB file by WordPad, and from WordPad I copied it to
>>>> notepad and save it as pdb file. I find the Coot can open the notepad saved
>>>> pdb file, thus my pdb files can be succesfully recovered from the hardware.
>>>> 
>>>>    But will you please tell me how to have Coot open my mtz file? After
>>>> data recovery by the technicial, the data size of the mtz file did not 
>>>> decrease,
>>>> thus I think there is a way to have it recovered.
>>>> 
>>>>    I have not noticed there were similar or identical posts as mine for
>>>> recovery data before in the CCP4 mail list.
>>>> 
>>>>    Thus I am looking forward to getting a reply from you on how to
>>>> recover my mtz file.
>>>> 
>>>> 
>>>>    Smith
>>>> 
>>>> 
>> 
> 
> Harry
> --
> Dr Harry Powell, MRC Laboratory of Molecular Biology, Francis Crick Avenue, 
> Cambridge Biomedical Campus, Cambridge CB2 0QH
> Chairman of International Union of Crystallography Commission on 
> Crystallographic Computing
> Chairman of European Crystallographic Association SIG9 (Crystallographic 
> Computing) 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

Reply via email to