Re: AMBER: How to delete particular frame from mdcrd file (not with ptraj).

From: Steven Winfield <saw44.cam.ac.uk>
Date: Wed, 22 Aug 2007 11:12:16 +0100

Dear Saurabh,

You could work out how many lines per frame there are in the mdcrd file
then use 'head' to cut out the frames before the bad one, 'tail' to get
those frames after the bad one, then 'cat' the two results into a new
mdcrd file:

$ head -n (lines/frame x frames before) mdcrd > before.mdcrd
$ tail -n (lines/frame x frames after) mdcrd > after.mdcrd
$ cat before.mdcrd after.mdcrd > new.mdcrd

Steve.

saurabh agrawal wrote:
> Hello All,
>
> One frame of my mdcrd file is gone bad and not
> readable with ptraj or VMD software.
> I can see them through Chimera but since chimera do
> not have the facility of deleting a particule frame
> form whole trajectory, I am unable to do that.
>
> I need to delete that frame for rmsd generation and
> other analysis through ptraj.
>
> Please let me know the possible ways for doing this.
>
> waiting for kind replys.
>
> saurabh
>
>
> Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/
> -----------------------------------------------------------------------
> 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 Sun Aug 26 2007 - 06:07:06 PDT
Custom Search