Recognition of structural domains in globular proteins