Example #1
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(image_dimensions obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #2
0
 public info(string name, string date, string instrument_name, uint run_number, uint version, flowcell_layout flowcell, string_vector channels, image_dimensions image_dim) : this(c_csharp_runPINVOKE.new_info__SWIG_1(name, date, instrument_name, run_number, version, flowcell_layout.getCPtr(flowcell), string_vector.getCPtr(channels), image_dimensions.getCPtr(image_dim)), true)
 {
     if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
        protected override void SetUp()
        {
            string xml_file = "<?xml version=\"1.0\"?>\n" +
                              "<RunInfo xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" Version=\"2\">\n" +
                              "  <Run Id=\"120705_M00903_0009_A000000000-A12V4\" Number=\"8\">\n" +
                              "    <Flowcell>000000000-A12V4</Flowcell>\n" +
                              "    <Instrument>M00903</Instrument>\n" +
                              "    <Date>120705</Date>\n" +
                              "    <Reads>\n" +
                              "      <Read NumCycles=\"251\" Number=\"1\" IsIndexedRead=\"N\" />\n" +
                              "      <Read NumCycles=\"12\" Number=\"2\" IsIndexedRead=\"Y\" />\n" +
                              "      <Read NumCycles=\"251\" Number=\"3\" IsIndexedRead=\"N\" />\n" +
                              "    </Reads>\n" +
                              "    <FlowcellLayout LaneCount=\"1\" SurfaceCount=\"2\" SwathCount=\"1\" TileCount=\"14\" />\n" +
                              "  </Run>\n" +
                              "</RunInfo>";

            string_vector Tiles         = new string_vector();
            string_vector ImageChannels = new string_vector();

            read_info[] ReadsArr = new read_info[] {
                /*Number,    IsIndexedRead, CycleStart, CycleEnd*/
                new read_info(1, 1, 251, false),
                new read_info(2, 252, 263, true),
                new read_info(3, 264, 514, false)
            };
            read_info_vector Reads = new read_info_vector();

            for (int i = 0; i < ReadsArr.Length; i++)
            {
                Reads.Add(ReadsArr[i]);
            }
            tile_naming_method TileNamingConvention = tile_naming_method.UnknownTileNamingMethod;
            uint            LaneCount      = 1;
            uint            SurfaceCount   = 2;
            uint            SwathCount     = 1;
            uint            TileCount      = 14;
            uint            SectionPerLane = 1;
            uint            LanePerSection = 1;
            flowcell_layout FlowcellLayout = new flowcell_layout(
                LaneCount,
                SurfaceCount,
                SwathCount,
                TileCount,
                SectionPerLane,
                LanePerSection,
                Tiles,
                TileNamingConvention);

            string           Run_Id          = "120705_M00903_0009_A000000000-A12V4";
            string           Date            = "120705";
            string           InstrumentName  = "M00903";
            uint             RunNumber       = 8;
            uint             version         = 2;
            image_dimensions ImageDimensions = new image_dimensions(/*Width*/ 0, /*Height*/ 0);

            expected_run_info = new info(Run_Id,
                                         Date,
                                         InstrumentName,
                                         RunNumber,
                                         version,
                                         FlowcellLayout,
                                         ImageChannels,
                                         ImageDimensions,
                                         Reads);
            run_info.parse(xml_file);
        }
Example #4
0
        public image_dimensions dimensions_of_image()
        {
            image_dimensions ret = new image_dimensions(c_csharp_runPINVOKE.info_dimensions_of_image(swigCPtr), false);

            return(ret);
        }