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

Re: [ccp4bb]: PHS files made by XFIT



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

How about this?

cat foobar.phs | gawk '{printf("%4d %4d %4d %11.6f %11.6f
%6.2f\n",$1,$2,$3,$4,$5,$6)}'

- JT

Paul Hubbard wrote:

> ***  For details on how to be removed from this list visit the  ***
> ***          CCP4 home page http://www.ccp4.ac.uk         ***
>
> Hi,
>
> This ultimately is a CCP4-related question. I want to take a PHS file
> made by XFIT and convert it to an MTZ file. However, the PHS is not
> justified, i.e.:
>
>    2   0   5 1056.129028 2462.555664 270.00
>    2   3   4 468.581848 533.688110 167.90
>    0   1   6 1170.407471 2805.206299  90.00
>
> Does anyone know a way of reformatting a file like this, so all the
> columns are correctly aligned?
>
> Thanks
>
> Paul Hubbard
> Dept. of Biochemistry
> Medical College of Wisconsin
> Phone: 414-456 4305
> Fax: 414-456 6510
> URL: iris9.biochem.mcw.edu

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Dr. Jeffrey S. Taylor       Duke University Medical Center
Department of Biochemistry  Box 3711, Nanaline Duke Bld
Phone (919) 681-5266        Durham, NC 27710