Update memory-size log message.
[lightning.git] / slice_test.go
index 4278f13e203aa31e371f989d956488a51f98114a..3bc3d8b82c9286dfda3008a3b01f8662d760fcd6 100644 (file)
@@ -227,7 +227,7 @@ pipeline1dup/input2 0
                        "-chunked-hgvs-matrix=true",
                        "-chi2-case-control-file=" + tmpdir + "/casecontrol.tsv",
                        "-chi2-case-control-column=CC",
-                       "-chi2-p-value=0.05",
+                       "-chi2-p-value=0.5",
                        "-min-coverage=0.75",
                        "-input-dir=" + slicedir,
                        "-output-dir=" + npydir,
@@ -259,7 +259,7 @@ pipeline1dup/input2 0
                        "-chunked-onehot=true",
                        "-chi2-case-control-file=" + tmpdir + "/casecontrol.tsv",
                        "-chi2-case-control-column=CC",
-                       "-chi2-p-value=0.05",
+                       "-chi2-p-value=0.5",
                        "-min-coverage=0.75",
                        "-input-dir=" + slicedir,
                        "-output-dir=" + npydir,
@@ -303,7 +303,7 @@ pipeline1dup/input2 0
                        "-single-onehot=true",
                        "-chi2-case-control-file=" + tmpdir + "/casecontrol.tsv",
                        "-chi2-case-control-column=CC",
-                       "-chi2-p-value=0.05",
+                       "-chi2-p-value=0.5",
                        "-min-coverage=0.75",
                        "-input-dir=" + slicedir,
                        "-output-dir=" + npydir,
@@ -317,17 +317,15 @@ pipeline1dup/input2       0
                defer f.Close()
                npy, err := gonpy.NewReader(f)
                c.Assert(err, check.IsNil)
-               c.Check(npy.Shape, check.DeepEquals, []int{4, 16})
-               onehot, err := npy.GetInt8()
+               c.Check(npy.Shape, check.DeepEquals, []int{2, 16})
+               onehot, err := npy.GetUint32()
                if c.Check(err, check.IsNil) {
                        for r := 0; r < npy.Shape[0]; r++ {
                                c.Logf("%v", onehot[r*npy.Shape[1]:(r+1)*npy.Shape[1]])
                        }
-                       c.Check(onehot, check.DeepEquals, []int8{
-                               0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, // input1
-                               0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, // input2
-                               0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, // dup/input1
-                               0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, // dup/input2
+                       c.Check(onehot, check.DeepEquals, []uint32{
+                               0, 2, 1, 3, 0, 2, 1, 3, 0, 2, 1, 3, 0, 2, 0, 2,
+                               1, 1, 2, 2, 5, 5, 7, 7, 9, 9, 11, 11, 13, 13, 15, 15,
                        })
                }
        }