Hi. I'm running an experiment with 13 bioreplicates, 2 technical replicates, 3 time points and 2 conditions. Each replicate has 8 fractions. The MaxQtoMSstatsFormat() function appears to run smoothly and correctly identifies the fractions, but the dataProcess() function is not recognising any technical replicates. Currently I receive this output:
Group1 Group2
# runs 7 6
# bioreplicates 7 6
# tech. replicates 0 0
Which is immediately followed by this error:
simpleError in .Primitive("length")(newABUNDANCE, keep = TRUE): 2 arguments passed to 'length' which requires 1>
In addition: Warning messages:
1: In dcast.data.table(run_info, GROUP_ORIGINAL + SUBJECT_ORIGINAL ~ :
'fun.aggregate' is NULL, but found duplicate row/column combinations, so defaulting to length(). That is, the variables [GROUP_ORIGINAL, SUBJECT_ORIGINAL, FRACTION] used in 'formula' do not uniquely identify rows in the input 'data'. In such cases, 'fun.aggregate' is used to derive a single representative value for each combination in the output data.table, for example by summing or averaging (fun.aggregate=sum or fun.aggregate=mean, respectively). Check the resulting table for values larger than 1 to see which combinations were not unique. See ?dcast.data.table for more details.
Which I'm assuming is the direct consequence of the fact that the technical replicates are not recognized (I may be wrong though).
I'm fairly sure the problem lies somewhere in the annotation file I created for the analysis. I tried to also include a TechReplicates column as I saw this was suggested in other similar cases, but I still get the same results.
I'm attaching the annotation file I'm using. If you have any suggestions on how to overcome this issue or shed any light into what I'm doing wrong it'd be greatly appreciated.