Re: AMBER: WARNING in readAmberTrajectory(): Set #7918 is corrupted (-)

From: Steven Winfield <saw44.cam.ac.uk>
Date: Wed, 26 Mar 2008 15:22:26 +0000

You could figure out how many lines there are per frame and then use the
 'head' and 'tail' unix commands to cut out the required part.

e.g:
head -n (lines/frame * 7918) infile | tail -n (lines/frame) > outfile

Steve.

Qi Yan wrote:
> It seems I can use "more" to view my trajectory, but there are all
> coordinate numbers in trajectory which is hard to read and find where is
> the error frame.
>
>
> -----Original Message-----
> From: owner-amber.scripps.edu on behalf of Da-Wei Li
> Sent: Tue 3/25/2008 12:08 PM
> To: amber.scripps.edu
> Subject: Re: AMBER: WARNING in readAmberTrajectory(): Set #7918 is
> corrupted (-)
>
> Hi,
>
> Do you use ASCII format? If so, you can use any TEXT editor(for
> example, MS word or an simple "more" command under linux) software to
> check whether there is an error or not. You can also split the file if
> it is because ptraj cannot handle large files (>4G).
>
> Here is the format of amber files: http://amber.scripps.edu/formats.html
>
>
>
> dawei
> -----------------------------------------------------------------------
> The AMBER Mail Reflector
> To post, send mail to amber.scripps.edu
> To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
>
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Fri Apr 18 2008 - 21:14:11 PDT
Custom Search