Here's a toy example of the problem I'm dealing with
I have gene expression data from two patients' multiple tissues
p1t1 p2t1 p1t2 p2t2 ... g1 24.1 54.1 42.4 81.2 g2 52.5 62.5 2.1 8.3 g3 90.6 81.4 10.9 40.1 g4 2.3 32.1 83.3 1.4
pitj refers to sample tissue
j from patient
i. And the rows
g1...g4 refer to genes measurements in each sample. I want to determine if the corresponding tissues from each patient have similar gene expression patterns. Now, because of different experimental protocols, the values in column
p1tj will be different than the values in column
p2tj. So to account for this, I'd like to instead compare the ranks of the genes in
p2tj. If the ranks of the genes are similar between the two, then I might be able to reasonably say that they have similar expression patterns. For example,
t1 seems to have similar expression pattern in both patients, even though the magnitude and relative differences between the genes in each column are different. The ranks are the same. For tissue 2, the ranks are different. And though the magnitude of the genes are similar, I would consider these two samples to not have similar expression.
So I'd like to take the above matrix and calculate the ranks of each gene in each column
p1t1 p2t1 p1t2 p2t2 ... g1 2 2 3 4 g2 3 3 1 2 g3 4 4 2 3 g4 1 1 4 1
Here, it's more obvious that the first two columns (which correspond to the same tissue in the patients) have the same ranks. And the 3rd and 4th columns (corresponding to the same tissues in the patients) have different ranks. So I want to be able to say that t1 is the same in both patients, and tissue 2 is different.
This seems like a hypothesis test. But what would the null and alternative hypotheses be?
- Null: The two two tissues are different
- Alternative: The two tissues are the same
Is this right? Because this would correspond to there being a $\neq$ in the null hypothesis, which I don't think I've ever seen. Also, how would I calculate the p-value for such a hypothesis test?
This seems like a Mann-Whitney test, but there, the null is usually that the two groups are the same (i.e. the revers of my null and alternative hypotheses). The reason I chose my null this way, is because I want the test to provide sufficient evidence against them being different, so I can reasonably say they are the same. I guess this is opposite to the usual use case for the test (where you usually want evidence against the two groups being the same, like in treatment groups). So is there some way to tweak the Mann-Whitney test? Or is there another type of test I can do where the null hypothesis can contain a $\neq$?
I really appreciate the help here. Thank you