Beispiel #1
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);
        }
Beispiel #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();
		}