Beispiel #1
0
 public uint_vectorEnumerator(uint_vector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Beispiel #2
0
 public corrected_intensity_metric(uint lane, uint tile, uint cycle, uint_vector called_counts) : this(c_csharp_metricsPINVOKE.new_corrected_intensity_metric__SWIG_6(lane, tile, cycle, uint_vector.getCPtr(called_counts)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #3
0
 public q_metric(uint lane, uint tile, uint cycle, uint_vector qscore_hist) : this(c_csharp_metricsPINVOKE.new_q_metric__SWIG_2(lane, tile, cycle, uint_vector.getCPtr(qscore_hist)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #4
0
 public uint_vector(uint_vector other) : this(c_csharp_runPINVOKE.new_uint_vector__SWIG_1(uint_vector.getCPtr(other)), true)
 {
     if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #5
0
 public void set(uint lane, uint tile, uint cycle, uint_vector qscore_hist)
 {
     c_csharp_metricsPINVOKE.q_metric_set(swigCPtr, lane, tile, cycle, uint_vector.getCPtr(qscore_hist));
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #6
0
 public void set(uint lane, uint tile, uint cycle, uint_vector called_counts)
 {
     c_csharp_metricsPINVOKE.corrected_intensity_metric_set(swigCPtr, lane, tile, cycle, uint_vector.getCPtr(called_counts));
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #7
0
 public void SetRange(int index, uint_vector values)
 {
     c_csharp_runPINVOKE.uint_vector_SetRange(swigCPtr, index, uint_vector.getCPtr(values));
     if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #8
0
        public uint_vector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = c_csharp_runPINVOKE.uint_vector_GetRange(swigCPtr, index, count);
            uint_vector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new uint_vector(cPtr, true);

            if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
            {
                throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #9
0
        public static uint_vector Repeat(uint value, int count)
        {
            global::System.IntPtr cPtr = c_csharp_runPINVOKE.uint_vector_Repeat(value, count);
            uint_vector           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new uint_vector(cPtr, true);

            if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
            {
                throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #10
0
        public void TestWriteToBinaryBuffer()
        {
            run_metrics metrics = new run_metrics();
            base_corrected_intensity_metrics expected_metrics = metrics.corrected_intensity_metric_set();

            expected_metrics.set_version(3);
            uint_vector  calledCounts1       = new uint_vector(new uint[] { 52, 1049523, 654071, 500476, 982989 });
            float_vector correctedIntCalled1 = new float_vector(new float[] { 245, 252, 61, 235 });

            expected_metrics.insert(new corrected_intensity_metric(7, 1114, 1, correctedIntCalled1, (calledCounts1)));
            uint_vector  calledCounts2       = new uint_vector(new uint[] { 0, 1063708, 582243, 588028, 953132 });
            float_vector correctedIntCalled2 = new float_vector(new float[] { 232, 257, 68, 228 });

            expected_metrics.insert(new corrected_intensity_metric(7, 1114, 2, (correctedIntCalled2), (calledCounts2)));
            uint_vector  calledCounts3       = new uint_vector(new uint[] { 0, 1022928, 617523, 594836, 951825 });
            float_vector correctedIntCalled3 = new float_vector(new float[] { 227, 268, 68, 229 });

            expected_metrics.insert(new corrected_intensity_metric(7, 1114, 3, (correctedIntCalled3), (calledCounts3)));

            byte[] expected_binary_data = new byte[metrics.calculate_buffer_size(metric_group.CorrectedInt)];
            metrics.write_metrics_to_buffer(metric_group.CorrectedInt, expected_binary_data, (uint)expected_binary_data.Length);
        }
        protected override void SetUp()
        {
            uint_vector  calledCounts1       = new uint_vector(new uint[] { 52, 1049523, 654071, 500476, 982989 });
            float_vector correctedIntCalled1 = new float_vector(new float[] { 245, 252, 61, 235 });

            expected_metrics.Clear();
            expected_metrics.Add(new corrected_intensity_metric(7, 1114, 1, correctedIntCalled1, (calledCounts1)));
            uint_vector  calledCounts2       = new uint_vector(new uint[] { 0, 1063708, 582243, 588028, 953132 });
            float_vector correctedIntCalled2 = new float_vector(new float[] { 232, 257, 68, 228 });

            expected_metrics.Add(new corrected_intensity_metric(7, 1114, 2, (correctedIntCalled2), (calledCounts2)));
            uint_vector  calledCounts3       = new uint_vector(new uint[] { 0, 1022928, 617523, 594836, 951825 });
            float_vector correctedIntCalled3 = new float_vector(new float[] { 227, 268, 68, 229 });

            expected_metrics.Add(new corrected_intensity_metric(7, 1114, 3, (correctedIntCalled3), (calledCounts3)));

            int[] tmp = new int[] { 3, 34, 7, 0, 90, 4, 1, 0, -11, 0, -4, 0, 61, 0, -21, 0, 52, 0, 0, 0, -77, 3, 16, 0, -9, -6, 9, 0,
                                    -4, -94, 7, 0, -51, -1, 14, 0, 7, 0, 90, 4, 2, 0, -24, 0, 1, 1, 68, 0, -28, 0, 0, 0, 0, 0, 28, 59,
                                    16, 0, 99, -30, 8, 0, -4, -8, 8, 0, 44, -117, 14, 0, 7, 0, 90, 4, 3, 0, -29, 0, 12, 1, 68, 0, -27,
                                    0, 0, 0, 0, 0, -48, -101, 15, 0, 51, 108, 9, 0, -108, 19, 9, 0, 17, -122, 14, 0 };
            SetupBuffers(tmp, Version);
        }
Beispiel #12
0
        public uint_vector lanes()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_q_collapsed_metrics_lanes(swigCPtr), true);

            return(ret);
        }
		protected override void SetUp()
		{
			uint_vector calledCounts1 = new uint_vector(new uint[]{52, 1049523, 654071, 500476, 982989});
			ushort_vector correctedIntCalled1 = new ushort_vector(new ushort[]{245, 252, 61, 235});
			expected_metrics.Clear();
			expected_metrics.Add(new corrected_intensity_metric(7, 1114, 1, correctedIntCalled1, (calledCounts1)));
			uint_vector calledCounts2 = new uint_vector(new uint[]{0, 1063708, 582243, 588028, 953132});
			ushort_vector correctedIntCalled2 = new ushort_vector(new ushort[]{232, 257, 68, 228});
			expected_metrics.Add(new corrected_intensity_metric(7, 1114, 2, (correctedIntCalled2), (calledCounts2)));
			uint_vector calledCounts3 = new uint_vector(new uint[]{0, 1022928, 617523, 594836, 951825});
			ushort_vector correctedIntCalled3 = new ushort_vector(new ushort[]{227, 268, 68, 229});
			expected_metrics.Add(new corrected_intensity_metric(7, 1114, 3, (correctedIntCalled3), (calledCounts3)));

			int[] tmp = new int[]{3, 34, 7, 0, 90, 4, 1, 0, -11, 0, -4, 0, 61, 0, -21, 0, 52, 0, 0, 0, -77, 3, 16, 0, -9, -6, 9, 0,
				-4, -94, 7, 0, -51, -1, 14, 0, 7, 0, 90, 4, 2, 0, -24, 0, 1, 1, 68, 0, -28, 0, 0, 0, 0, 0, 28, 59,
				16, 0, 99, -30, 8, 0, -4, -8, 8, 0, 44, -117, 14, 0, 7, 0, 90, 4, 3, 0, -29, 0, 12, 1, 68, 0, -27,
				0, 0, 0, 0, 0, -48, -101, 15, 0, 51, 108, 9, 0, -108, 19, 9, 0, 17, -122, 14, 0
			};
			SetupBuffers (tmp,Version);
		}
Beispiel #14
0
        public uint_vector lanes()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_basecalling_metrics_lanes(swigCPtr), true);

            return(ret);
        }
Beispiel #15
0
        public uint_vector cycles()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_extended_tile_metrics_cycles(swigCPtr), true);

            return(ret);
        }
Beispiel #16
0
        public uint_vector qscoreHist()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.q_metric_qscoreHist__SWIG_1(swigCPtr), false);

            return(ret);
        }
Beispiel #17
0
        public uint_vector lanes()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_registration_metrics_lanes(swigCPtr), true);

            return(ret);
        }
Beispiel #18
0
        public uint_vector get_issues_for_entry()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.run_diagnostics_metric_get_issues_for_entry(swigCPtr), false);

            return(ret);
        }
Beispiel #19
0
        public uint_vector confusion_matrix()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.alignment_metric_confusion_matrix(swigCPtr), false);

            return(ret);
        }
Beispiel #20
0
        public uint_vector cycles()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_color_matrix_metrics_cycles(swigCPtr), true);

            return(ret);
        }
Beispiel #21
0
        public uint_vector cycles()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_corrected_intensity_metrics_cycles(swigCPtr), true);

            return(ret);
        }
Beispiel #22
0
 public corrected_intensity_metric(uint lane, uint tile, uint cycle, ushort average_cycle_intensity, float signal_to_noise, float_vector corrected_int_called, ushort_vector corrected_int_all, uint_vector called_counts) : this(c_csharp_metricsPINVOKE.new_corrected_intensity_metric__SWIG_2(lane, tile, cycle, average_cycle_intensity, signal_to_noise, float_vector.getCPtr(corrected_int_called), ushort_vector.getCPtr(corrected_int_all), uint_vector.getCPtr(called_counts)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Beispiel #23
0
        public uint_vector lanes()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_run_diagnostics_metrics_lanes(swigCPtr), true);

            return(ret);
        }
Beispiel #24
0
        public uint_vector cycles()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_dynamic_phasing_metrics_cycles(swigCPtr), true);

            return(ret);
        }
Beispiel #25
0
        public uint_vector tile_numbers()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_error_metrics_tile_numbers(swigCPtr), true);

            return(ret);
        }
Beispiel #26
0
        public uint_vector tile_numbers_for_lane(uint lane)
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_static_run_metrics_tile_numbers_for_lane(swigCPtr, lane), true);

            return(ret);
        }
Beispiel #27
0
        public uint_vector mismatch_cluster_counts()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.error_metric_mismatch_cluster_counts(swigCPtr), false);

            return(ret);
        }
Beispiel #28
0
        public uint_vector calledCounts()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.corrected_intensity_metric_calledCounts__SWIG_0(swigCPtr), false);

            return(ret);
        }
Beispiel #29
0
        public uint_vector cycles()
        {
            uint_vector ret = new uint_vector(c_csharp_metricsPINVOKE.base_static_run_metrics_cycles(swigCPtr), true);

            return(ret);
        }
Beispiel #30
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(uint_vector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }