Hi, just for fun and to demonstrate what can go horribly wrong if you blindly use utilities that were specifically designed for changing the line terminators in an ASCII file, I applied these utilities to an MTZ file.
First I used 'todos' to simulate what I suspect the technician has done: todos < original.mtz > original+todos.mtz Then I used 'tounix' in an attempt to recover the original file, as others have suggested: tounix < original+todos.mtz > original+todos+tounix.mtz What can possibly go wrong? The log files from mtzdump are attached - see for yourself! (the mtzdump on original+todos.mtz went into an infinite loop and I had to kill the process). Cheers -- Ian On 6 March 2015 at 07:20, Smith Lee < 00000459ef8548d5-dmarc-requ...@jiscmail.ac.uk> wrote: > Dear All, > > For the issue of the recovery of the mtz file, I have tried randomly to > use excel to open one specific mtz file, however in this way all the mtz > files in the computer will have a excel icon (X), although the file > extension is still .mtz. If I tried further to open one specific mtz file > (with excel icon) with the notepad, all the mtz files will have the notepad > icon. If I tried further to open one specific mtz file (with notepad icon) > with the wordpad, all the mtz files will have the wordpad icon. > > I hope these cluses can be helpful for you to give me the advise on > recovery of mtz files. > > Smith > > > On Thursday, March 5, 2015 11:51 PM, Robbie Joosten < > robbie_joos...@hotmail.com> wrote: > > > 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 > > > > > > >
original.log
Description: Binary data
original+todos.log
Description: Binary data
original+todos+tounix.log
Description: Binary data