P-values are not sensitive to the direction of comparision. I assume you are asking the direction of enrichment analysis. This post may be helpful
P-values are not sensitive to the direction of comparision. I assume you are asking the direction of enrichment analysis. This post may be helpful