Help with design.matrix
1
0
Entering edit mode
@andrearodriguez-martinez13-11026
Last seen 23 days ago
United Kingdom

I am analysing some proteomics data from an experiment with the following experimental design:

  • 3 donors, each treated with:
    • placebo - 3 technical replicates
    • drug - 3 technical replicates
      sample_id   patient_id   treatment
      1                   A                  placebo
      2                   A                  placebo
      3                   A                  placebo
      4                   B                  placebo
      5                   B                  placebo
      6                   B                  placebo
      7                   C                  placebo
      8                   C                  placebo
      9                   C                  placebo
      10                 A                   drug
      11                 A                   drug
      12                 A                   drug
      13                 B                   drug
      14                 B                   drug
      15                 B                   drug
      16                 C                   drug
      17                 C                   drug
      18                 C                   drug
      

I am interested in answering the following question, for each peptide: Is there a difference between treatment and placebo? I would like to take into account the technical replicates (i.e. patient_id; treatment combination) and the fact that in both treatments samples were coming from the same donors

I am not sure how the design.matrix should look like

Many thanks

Andrea

limma • 296 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 17 hours ago
United States

Probably

design <- model.matrix(~treatment + patient)

Although if the technical replicates are just re-runs of the same sample prep you might consider

design <- model.matrix(~treatment)
fit <- lmFit(<data goes here>, design, block = patient)

To fit a GLS model instead.

0
Entering edit mode

many thanks! don't I need to use duplicateCorrelation() to estimate the between replicates?

0
Entering edit mode

That's correct. I was thinking of voomLmFit, which does it for you.

ADD REPLY
0
Entering edit mode

many thanks!

Login before adding your answer.

Traffic: 734 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6