[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ccp4bb]: re-arranging column order?



***  For details on how to be removed from this list visit the  ***
***          CCP4 home page http://www.ccp4.ac.uk         ***

Be aware that there is no check regarding change of hand/det if
you do it this way....xprep or a mtz manipulation file 
(reindex etc) would be safer.

BR

> -----Original Message-----
> From: owner-ccp4bb@dl.ac.uk [mailto:owner-ccp4bb@dl.ac.uk] On 
> Behalf Of JP Cartailler
> Sent: Sunday, November 24, 2002 8:46 PM
> Cc: ccp4bb@dl.ac.uk
> Subject: Re: [ccp4bb]: re-arranging column order?
> 
> 
> ***  For details on how to be removed from this list visit the  ***
> ***          CCP4 home page http://www.ccp4.ac.uk         ***
> 
> awk is perfect for that:
> 
> i.e. say you have:
> 
> Col1	Col2	Col3
> H	K	L
> 
> at the shell prompt:
> 
> awk '{print $3 $2 $1}' < HKL.in
> 
> would print
> 
> L	K	H
> 
> for additional formating, see 'man awk'
> 
> best,
> 
> jp
> 
> On Sun, 24 Nov 2002, Fred Berkovitch wrote:
> 
> > ***  For details on how to be removed from this list visit the  ***
> > ***          CCP4 home page http://www.ccp4.ac.uk         ***
> > 
> > Can someone please explain how I would use mtzutils (or any other 
> > program)
> > to rearrange my columns?  For instance, if column 1=H 2=K 
> 3=L how could I 
> > rearrange them so that 1=L 2=K 3=H?  If anyone has a script 
> that does a 
> > similar re-arrangement, would you mind posting it?  Thank 
> you for your help.
> > 
> > -Fred
> > 
>