PCA reveals effects of individual and colony genotype on aggression-related brain gene expression. Co- and cross-fostering produced the following four groups of soldiers, guards, and foragers: AA, AHB reared in AHB colony; EA, EHB in AHB colony; AE, AHB in EHB colony; and EE, EHB in EHB colony. Groups with similar expression coefficients are more similar to each other in terms of brain gene expression. The first pattern (PC1) reflects variation in brain gene expression that is similar across the four groups; PC2 is associated with differences in individual (AHB or EHB) genotype; PC3, with differences in colony genotype; and PC4, with differences in cross-fostered vs. non-cross-fostered bees.