Hej,
I am analysing data were bacterial communities were exposed to a toxin. I have paired data (before / after) for each community. However, we applied the toxin in a concentration gradient (with no replicates per level but for the control). Now I am interested in finding those OTU's where the difference (before/after exposure within each community) correlate with exposure concentration.
I tried ~BOT + Sampling + Tox
but I get the error message the model matrix is not full rank, so the model cannot be fit as specified. One or more variables or interaction terms in the design formula are linear combinations of the others and must be removed.
I probably can make it work by dividing the Tox column into two or three groups (e.g. control, low, high) but this grouping would be somewhat arbitrary. Any pointers would be highly appreciated!
(ps.: I know that the data structure is not ideal but the design was not chosen primarily for DE)
The data look like:
BOT | Sampling | Tox |
---|---|---|
1 | Mid | 0 |
1 | End | 0 |
2 | Mid | 0 |
2 | End | 0 |
3 | Mid | 0 |
3 | End | 0 |
4 | Mid | 1 |
4 | End | 1 |
5 | Mid | 2 |
5 | End | 2 |
6 | Mid | 3 |
6 | End | 3 |
7 | Mid | 4 |
7 | End | 4 |
8 | Mid | 5 |
8 | End | 5 |
9 | Mid | 6 |
9 | End | 6 |
Let me see if I understand, you want to see if the LFCs change for Tox > 0, relative to Tox = 0. Any kind of change, or are you interested in strictly increasing / decreasing change. Because of the lack of replicates, you'll need to specify a bit more about what kind of changes you're interested in over the range Tox > 0.
Yes, that is it. In the range for Tox > 0, I expect the LFC for those OTUs that are sensitive to the treatment to react stronger at stronger concentrations but the response can be expected to be non-linear (i.e. no reaction at low C, then increasingly stronger reactions which might reach a plateau - i.e. dose-response curve like behaviour). Both, changes in positive and negative direction are possible (some OTUs are inhibited, others could be resistant and profit from competitive release). Does this help?