The immune system is part of a whole-organism regulatory network