On the computation of the tertiary structure of globular proteins