This is my sample data frame:
sampleTable = data.frame( condition = c("ctrl","ctrl","ctrl","resistant","resistant","resistant"), replicate = c(1:3,1:3), row.names = c("Ctrl1","Ctrl2","Ctrl4","AS4","BD1","BS1"), stringsAsFactors = TRUE, check.names = FALSE, libType = c("paired-end", "paired-end", "paired-end", "paired-end", "paired-end", "paired-end"), countName = c("Ctrl1_DEXSeq.tabular", "Ctrl2_DEXSeq.tabular", "Ctrl4_DEXSeq.tabular", "AS4_DEXSeq.tabular", "BD1_DEXSeq.tabular", "BS1_DEXSeq.tabular") )
I am sure the tabular files are correct because I checked them by comparing the RPMs with those obtained with htseq.
Nevertheless, when I test for DEU and estimate exon FC, the results seem to be fine but the 3 controls and the 3 experimental groups are evidently swapped.
In this picture for instance the RPMs belonging to the last exons are clearly higher in the control tab files as compared to the others:
Could it be that the samples are erroneously processed alphabetically and so the AS4, BD1 and BS1 come first to the Ctrls?
Thank you in advance!
Best,
Luca
Please post the complete R code that you used to get from the sample and count tables to the plot you posted. Thanks.
Could you also the output of your sessionInfo() please?
It'll take some time...BRB!
Thank you all!!
Thank you in advance for your help!
Please also post the relevant lines of your count tables that lead you to think that 'control' is expressed above 'resistant', and the output of
sizeFactors(dxd)