To study immune-mediated diseases, which can affect the expression of thousands of genes among many different cell types and organs, is a daunting challenge. However, for effective diagnosis and therapeutic treatment it is relevant to understand the regulatory functions of disease. In this thesis, we hypothesized that regulatory functions in complex diseases can be effectively prioritized based on so called digital twins, which are based on high-resolution single cell data in combination with network theories. More specifically, we tested if digital twins could be used on a patient-group level to prioritize cell types, genes, and/or organs based on their regulatory function in the disease progression. If this hypothesis is true, potential biomarkers and therapeutic targets can be identified for optimized diagnosis and treatment. The long-term goal is to construct digital twins for personalized medicine, to predict the optimal treatment strategies for the individual patients. Although, this is a very ambitious goal which could not be reached through this thesis, relevant steps towards it have been reached.