Details
-
Type:
Task
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Story Points:2
-
Sprint:Fall 6
Description
The Markdown document comparing mutant and wildtype genotypes at the same temperature produced different results between versions.
The results file made by commit bba3f03 for 34 degrees, 75 minutes comparison reports a less extreme test statistic than the newer results file.
Muday lab reported this.
Old results file:
- MvW.34.75-SL5.txt
New results file:
- MvW-SL5.txt
Markdown: FindMutantVsWildtypeDEGenes-DESeq2.Rmd
Bug:
There was a bug in the MvW markdown. This bug included not containing the accurate results that were seen before in the MvW.34.75-SL5.txt results file. In the MvW-SL5.txt you could see that the statistics were different and had opposite symbols for negative and positive numbers.
Find Bug:
Under 'Perform the Comparisons' section of the markdown the following code was the issue:
The reason this was the issue was because there was no definition of 'lfcThreshold' so the default was set to 0. Then there was no contrast so the reference wild type, VF36, was being subtracted first and causing incorrect symbols.
Fix Bug:
Now we know what the issue is we can fix the code to show the correct results:
rs = results(dds,alpha=Q, lfcThreshold = lfcThreshold, contrast = c("condition", group_2, group_1))The 'lfcThreshold' is now fixed to 1 which was defined at the beginning of the markdown. So now the correct pvalues should be showing. The contrast now has the 'ARE' (group_2) genotype subtracting with the wiltype 'VF36' (group_1). So now the symbols should be correct.
Note: Q has also been changed back to 0.05 which is what it was originally. Also the comps table, which includes the sum of significant genes, has also changed.