A statistical-physics exploration of the proteome