[MMTK] Creation of a protein from a sequence

Konrad Hinsen hinsen@cnrs-orleans.fr
Mon, 6 Aug 2001 16:55:18 +0200

> I am trying to create a protein by specifying the chain sequence and the
> position of the center of mass. I am using the following commands

What do you expect as a result? With only the sequence but no
configuration, all atom positions are necessarily undefined. There is
no way to define the center of mass without having atom positions.

> in centerOfMass
>     mr = mr + a._mass * a.position(conf)
> TypeError: number coercion failed

a.position(conf) will return None, meaning "undefined position".
The attempt to multiply None by the mass causes the error.

Konrad Hinsen                            | E-Mail: hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais