Exemplo n.º 1
0
        protected void SetUp()
        {
            index_metric_header header   = new index_metric_header();
            index_info_vector   indices1 = new index_info_vector();

            indices1.Add(new index_info("ATCACGAC-AAGGTTCA", "1", "TSCAIndexes", 4570));
            expected_metrics.Add(new index_metric(1, 12106, 3, indices1));
            index_info_vector indices2 = new index_info_vector();

            indices2.Add(new index_info("ACAGTGGT-AAGGTTCA", "2", "TSCAIndexes", 4477));
            expected_metrics.Add(new index_metric(2, 12106, 3, indices2));
            index_info_vector indices3 = new index_info_vector();

            indices3.Add(new index_info("CAGATCCA-AAGGTTCA", "3", "TSCAIndexes", 4578));
            expected_metrics.Add(new index_metric(3, 12106, 3, indices3));

            int[] tmp = new int[] { 1
                                    , 1, 0, 74, 47, 3, 0
                                    , 17, 0, 65, 84, 67, 65, 67, 71, 65, 67, 45, 65, 65, 71, 71, 84, 84, 67, 65, 218, 17, 0, 0, 1, 0, 49, 11, 0, 84, 83, 67, 65, 73, 110
                                    , 100, 101, 120, 101, 115
                                    , 2, 0, 74, 47, 3, 0 // changed to lane 2
                                    , 17, 0, 65, 67, 65, 71, 84, 71, 71, 84, 45, 65, 65, 71, 71, 84, 84, 67, 65, 125, 17, 0, 0, 1, 0, 50, 11, 0, 84, 83, 67, 65, 73, 110
                                    , 100, 101, 120, 101, 115
                                    , 3, 0, 74, 47, 3, 0 // changed to lane 3
                                    , 17, 0, 67, 65, 71, 65, 84, 67, 67, 65, 45, 65, 65, 71, 71, 84, 84, 67, 65, 226, 17, 0, 0, 1, 0, 51, 11, 0, 84, 83, 67, 65, 73, 110
                                    , 100, 101, 120, 101, 115 };
            expected_binary_data = new byte[tmp.Length];
            for (int i = 0; i < expected_binary_data.Length; i++)
            {
                expected_binary_data[i] = (byte)tmp[i];
            }
            expected_metric_set = new base_index_metrics(expected_metrics, Version, header);
            c_csharp_comm.read_interop_from_buffer(expected_binary_data, (uint)expected_binary_data.Length, actual_metric_set);
        }
Exemplo n.º 2
0
		protected void SetUp()
		{

	        base_read_metric_header header = new base_read_metric_header();
		    index_info_vector indices1 = new index_info_vector();
		    indices1.Add(new index_info("ATCACGAC-AAGGTTCA", "1", "TSCAIndexes", 4570));
			expected_metrics.Add(new index_metric(1, 12106, 3, indices1));
		    index_info_vector indices2 = new index_info_vector();
		    indices2.Add(new index_info("ACAGTGGT-AAGGTTCA", "2", "TSCAIndexes", 4477));
			expected_metrics.Add(new index_metric(2, 12106, 3, indices2));
		    index_info_vector indices3 = new index_info_vector();
		    indices3.Add(new index_info("CAGATCCA-AAGGTTCA", "3", "TSCAIndexes", 4578));
			expected_metrics.Add(new index_metric(3, 12106, 3, indices3));

			int[] tmp = new int[]{1
              ,1,0,74,47,3,0
              ,17,0,65,84,67,65,67,71,65,67,45,65,65,71,71,84,84,67,65,218,17,0,0,1,0,49,11,0,84,83,67,65,73,110
              ,100,101,120,101,115
              ,2,0,74,47,3,0 // changed to lane 2
              ,17,0,65,67,65,71,84,71,71,84,45,65,65,71,71,84,84,67,65,125,17,0,0,1,0,50,11,0,84,83,67,65,73,110
              ,100,101,120,101,115
              ,3,0,74,47,3,0 // changed to lane 3
              ,17,0,67,65,71,65,84,67,67,65,45,65,65,71,71,84,84,67,65,226,17,0,0,1,0,51,11,0,84,83,67,65,73,110
              ,100,101,120,101,115
			};
			expected_binary_data = new byte[tmp.Length];
			for(int i=0;i<expected_binary_data.Length;i++) expected_binary_data[i] = (byte)tmp[i];
			expected_metric_set = new base_index_metrics(expected_metrics, Version, header);
			c_csharp_comm.read_interop_from_buffer(expected_binary_data, (uint)expected_binary_data.Length, actual_metric_set);
			actual_metrics = actual_metric_set.metrics();
		}
Exemplo n.º 3
0
 public static void summarize_index_metrics(base_index_metrics index_metrics, base_tile_metrics tile_metrics, uint lane_count, index_flowcell_summary summary)
 {
     c_csharp_summaryPINVOKE.summarize_index_metrics__SWIG_1(base_index_metrics.getCPtr(index_metrics), base_tile_metrics.getCPtr(tile_metrics), lane_count, index_flowcell_summary.getCPtr(summary));
     if (c_csharp_summaryPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_summaryPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 4
0
 public void set_index_metric_set(base_index_metrics metrics)
 {
     c_csharp_run_metricsPINVOKE.run_metrics_set_index_metric_set(swigCPtr, base_index_metrics.getCPtr(metrics));
     if (c_csharp_run_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_run_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 5
0
        public base_index_metrics index_metric_set()
        {
            base_index_metrics ret = new base_index_metrics(c_csharp_run_metricsPINVOKE.run_metrics_index_metric_set(swigCPtr), false);

            return(ret);
        }