We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1aa93 commit 5840c21Copy full SHA for 5840c21
matlab/CodeWebTool.m
@@ -75,6 +75,12 @@
75
error('data.value does not have the same number of rows as data.gene')
76
end
77
78
+% If there are negative values, shift positive
79
+if any(any(data.value <= 0))
80
+ warning('there are negative expression values, adding mininmum + 1e-2 to all values')
81
+ data.value = data.value + abs(min(min(data.value))) + 1e-2;
82
+end
83
+
84
% get the threshold value and the histogram for the complete dataset and
85
% print a figure
86
if SampleNumber>1
0 commit comments