You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2b6d375
Browse filesBrowse the repository at this point in the historyBrowse files
Expect.equal y1.Length 3"unit bandwidth leaves the three distinct target score bins"
177
+
y1 |> Array.iter (fun value -> Expect.isTrue (abs (value -(1.0/3.0))<=1e-6)"each unit-bandwidth target bin has relative frequency one third")
178
+
Expect.equal y100.Length 1"bandwidth 100 pools the target scores into one bin"
179
+
if y100.Length =1then
180
+
Expect.isTrue (abs (y100.[0]-1.0)<=1e-6)"the pooled target bin has relative frequency one"
181
+
// three distinct scores with unit bandwidth occupy three bins of relative frequency 1/3 each; a 100-wide bandwidth pools them into one bin of frequency 1 - counting, not implementation output. The -50 decoy scores prove the target trace reads TargetScore (target normalization is correct today; only the decoy side is pended).
182
+
)
183
+
184
+
testCase "the q-value scatter pairs each protein's identity-appropriate score with its q-value"<|fun _ ->
Expect.isTrue trace.Success "the Q-Values trace with x and y arrays is present"
220
+
if trace.Success then
221
+
letxValues= parseNumbers trace.Groups.[1].Value
222
+
letyValues= parseNumbers trace.Groups.[2].Value
223
+
Expect.equal xValues.Length yValues.Length "the Q-Values x and y arrays have equal length"
224
+
letpairs= Array.zip xValues yValues
225
+
lethasPair x y = pairs |> Array.exists (fun(actualX,actualY)-> abs (actualX - x)<=1e-9&& abs (actualY - y)<=1e-9)
226
+
Expect.isTrue (hasPair 12.00.01)"the target is paired with its target score and q-value"
227
+
Expect.isTrue (hasPair 3.00.20)"the decoy is paired with its decoy score and q-value"
228
+
Expect.isFalse (hasPair 99.00.20)"the decoy is not plotted at its target score"
229
+
// a target is plotted at its target score, a decoy at its decoy score, each with its own q-value - the central inference result of the report; pair membership is order-agnostic.
230
+
)
231
+
232
+
testCase "the absolute-frequency axis carries the raw target and decoy counts"<|fun _ ->
Expect.equal sums [|2.0;3.0|]"the absolute-frequency traces sum to the two raw partition counts"
261
+
// the report exposes an absolute-frequency axis; its traces must total the actual 3 targets and 2 decoys - input counting, robust to bin positions and trace order.
0 commit comments