示例#1
0
        protected override void SetUp()
        {
            uint[] hist1 = new uint[] { 0, 267962, 118703, 4284, 2796110, 0, 0 };
            uint[] hist2 = new uint[] { 0, 241483, 44960, 1100, 2899568, 0, 0 };
            uint[] hist3 = new uint[] { 0, 212144, 53942, 427, 2920598, 0, 0 };

            expected_metrics.Add(new q_metric(7, 1114, 1, hist1, (uint)hist1.Length));
            expected_metrics.Add(new q_metric(7, 1114, 2, hist2, (uint)hist2.Length));
            expected_metrics.Add(new q_metric(7, 1114, 3, hist3, (uint)hist3.Length));


            ushort[]           lower     = new ushort[] { 2, 10, 20, 25, 30, 35, 40 };
            ushort[]           upper     = new ushort[] { 9, 19, 24, 29, 34, 39, 40 };
            ushort[]           value     = new ushort[] { 2, 14, 21, 27, 32, 36, 40 };
            q_score_bin_vector headervec = new q_score_bin_vector();

            for (int i = 0; i < lower.Length; i++)
            {
                headervec.Add(new q_score_bin(lower[i], upper[i], value[i]));
            }

            int[] tmp = new int[] {
                6, 34, 1, 7, 2, 10, 20, 25, 30, 35, 40, 9, 19, 24, 29, 34, 39, 40, 2, 14, 21, 27, 32, 36, 40
                , 7, 0, 90, 4, 1, 0, 0, 0, 0, 0, -70, 22, 4, 0, -81, -49, 1, 0, -68, 16, 0, 0, 78, -86, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 7, 0, 90, 4, 2, 0, 0, 0, 0, 0, 75, -81, 3, 0, -96, -81, 0, 0, 76, 4, 0, 0, 112, 62, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 7, 0, 90, 4, 3, 0, 0, 0, 0, 0, -80, 60, 3, 0, -74, -46, 0, 0, -85, 1, 0, 0, -106, -112, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0
            };
            SetupBuffers(tmp, Version, new q_score_header(headervec));
        }
示例#2
0
 public static void populate_legacy_q_score_bins(q_score_bin_vector q_score_bins, instrument_type instrument, uint count)
 {
     c_csharp_run_metricsPINVOKE.populate_legacy_q_score_bins__SWIG_0(q_score_bin_vector.getCPtr(q_score_bins), (int)instrument, count);
     if (c_csharp_run_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_run_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#3
0
        protected override void SetUp()
        {
            const uint bin_count = 7;

            QVal[] hist1 = new QVal[] { new QVal(1, 45272), new QVal(3, 33369), new QVal(4, 1784241) };
            QVal[] hist2 = new QVal[] { new QVal(1, 45229), new QVal(3, 34304), new QVal(4, 1792186) };
            QVal[] hist3 = new QVal[] { new QVal(1, 49152), new QVal(3, 37440), new QVal(4, 1806479) };

            expected_metrics.Add(new q_metric(1, 1103, 1, ToHist(hist1), bin_count));
            expected_metrics.Add(new q_metric(1, 1104, 1, ToHist(hist2), bin_count));
            expected_metrics.Add(new q_metric(1, 1108, 1, ToHist(hist3), bin_count));


            ushort[]           lower     = new ushort[] { 1, 10, 20, 25, 30, 35, 40 };
            ushort[]           upper     = new ushort[] { 9, 19, 24, 29, 34, 39, 41 };
            ushort[]           value     = new ushort[] { 1, 14, 22, 27, 33, 37, 40 };
            q_score_bin_vector headervec = new q_score_bin_vector();

            for (int i = 0; i < lower.Length; i++)
            {
                headervec.Add(new q_score_bin(lower[i], upper[i], value[i]));
            }

            int[] tmp = new int[] {
                5, 206,
                1, 7,
                1, 10, 20, 25, 30, 35, 40, 9, 19, 24, 29, 34, 39, 41, 1, 14, 22, 27, 33, 37, 40,
                1, 0, 79, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 216, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 89, 130, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 57, 27, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                1, 0, 80, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 173, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 88, 27, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                1, 0, 84, 4, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 146, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, 144, 27, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
                , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
            };
            SetupBuffers(tmp, Version, new q_score_header(headervec));
        }
示例#4
0
 public static void populate_legacy_q_score_bins(base_q_by_lane_metrics q_metric_set, q_score_bin_vector q_score_bins, instrument_type instrument)
 {
     c_csharp_run_metricsPINVOKE.populate_legacy_q_score_bins__SWIG_2(base_q_by_lane_metrics.getCPtr(q_metric_set), q_score_bin_vector.getCPtr(q_score_bins), (int)instrument);
     if (c_csharp_run_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_run_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#5
0
		protected override void SetUp()
		{
		    uint[] hist1 = new uint[]{0, 267962, 118703, 4284, 2796110, 0, 0};
		    uint[] hist2 = new uint[]{0,241483, 44960, 1100, 2899568, 0 ,0};
		    uint[] hist3 = new uint[]{0,212144, 53942, 427, 2920598, 0, 0};

            expected_metrics.Add(new q_metric(7, 1114, 1, hist1, (uint)hist1.Length));
            expected_metrics.Add(new q_metric(7, 1114, 2, hist2, (uint)hist2.Length));
            expected_metrics.Add(new q_metric(7, 1114, 3, hist3, (uint)hist3.Length));


            ushort[] lower = new ushort[]{2, 10, 20, 25, 30, 35, 40};
            ushort[] upper = new ushort[]{9, 19, 24, 29, 34, 39, 40};
            ushort[] value = new ushort[]{2, 14, 21, 27, 32, 36, 40};
            q_score_bin_vector headervec = new q_score_bin_vector();
            for(int i=0;i<lower.Length;i++)
                headervec.Add(new q_score_bin(lower[i], upper[i], value[i]));

			int[] tmp = new int[]{
                6,34,1,7,2,10,20,25,30,35,40,9,19,24,29,34,39,40,2,14,21,27,32,36,40
                ,7,0,90,4,1,0,0,0,0,0,-70,22,4,0,-81,-49,1,0,-68,16,0,0,78,-86,42,0,0,0,0,0,0,0,0,0
                ,7,0,90,4,2,0,0,0,0,0,75,-81,3,0,-96,-81,0,0,76,4,0,0,112,62,44,0,0,0,0,0,0,0,0,0
                ,7,0,90,4,3,0,0,0,0,0,-80,60,3,0,-74,-46,0,0,-85,1,0,0,-106,-112,44,0,0,0,0,0,0,0,0,0
			};
			SetupBuffers (tmp, Version, new q_score_header(headervec));
		}
示例#6
0
		protected override void SetUp()
		{
		    const uint binCount = 7;
		    QVal[] hist1 = new QVal[]{new QVal(1,45272), new QVal(3,33369), new QVal(4,1784241)};
		    QVal[] hist2 = new QVal[]{new QVal(1,45229), new QVal(3,34304), new QVal(4,1792186)};
		    QVal[] hist3 = new QVal[]{new QVal(1,49152), new QVal(3,37440), new QVal(4,1806479)};

            expected_metrics.Add(new q_metric(1, 1103, 1, ToHist(hist1), binCount));
            expected_metrics.Add(new q_metric(1, 1104, 1, ToHist(hist2), binCount));
            expected_metrics.Add(new q_metric(1, 1108, 1, ToHist(hist3), binCount));


            ushort[] lower = new ushort[]{1, 10, 20, 25, 30, 35, 40};
            ushort[] upper = new ushort[]{9, 19, 24, 29, 34, 39, 41};
            ushort[] value = new ushort[]{1, 14, 22, 27, 33, 37, 40};
            q_score_bin_vector headervec = new q_score_bin_vector();
            for(int i=0;i<lower.Length;i++)
                headervec.Add(new q_score_bin(lower[i], upper[i], value[i]));

			int[] tmp = new int[]{
                5,206,
                1,7,
                1,10,20,25,30,35,40,9,19,24,29,34,39,41,1,14,22,27,33,37,40,
                1,0,79,4,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,216,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,89,130,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,177,57,27,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,
                1,0,80,4,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,173,176,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,186,88,27,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,
                1,0,84,4,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,0,64,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,144,27,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
                ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
			};
			SetupBuffers (tmp, Version, new q_score_header(headervec));
		}