Sensing the shape of functional proteins with topology