Functional immune profiling