[Biopython] PDB bfactor

Peter Cock p.j.a.cock at googlemail.com
Mon Oct 25 15:19:20 UTC 2010


On Mon, Oct 25, 2010 at 4:10 PM, Fabian Glaser <fglaser at technion.ac.il> wrote:
> Dear all,
>
> I am trying to modify the bfactor column of PDB files. That's not a
> problem with the atom.bfactor = XXX and PDB parser. But what I am
> interested in is to save 3 digits after the zero, that is 0.344, but
> the atom.bfactor object doesn't allow more than two (0.34).
>
> Is it possible to force atom.bfactor to write 3 digits?
>
> Thanks a lot,
>
> fabian

Hi,

Do you mean the temperature factor in an ATOM line,
columns 61 to 66?

http://www.wwpdb.org/documentation/format32/sect9.html

According to the spec that should be formatted as "Real (6.2)",
which I think means at most six characters and fixed two decimal
places, i.e. something like XXX.XX, which means you can't store
0.344 here, according to the spec you can only store 0.34.

Peter



More information about the Biopython mailing list