Spin glasses, tubes and proteins