<?xml version="1.0" encoding="UTF-8"?>

<gating:Gating-ML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:gating="http://www.isac-net.org/std/Gating-ML/v2.0/gating"
  xmlns:transforms="http://www.isac-net.org/std/Gating-ML/v2.0/transformations"
  xmlns:data-type="http://www.isac-net.org/std/Gating-ML/v2.0/datatypes"
  xsi:schemaLocation="
        http://www.isac-net.org/std/Gating-ML/v2.0/gating ../XSD/Gating-ML.v2.0.xsd
        http://www.isac-net.org/std/Gating-ML/v2.0/transformations ../XSD/Transformations.v2.0.xsd
        http://www.isac-net.org/std/Gating-ML/v2.0/datatypes ../XSD/DataTypes.v2.0.xsd">
  
  <data-type:custom_info>
    This Gating-ML 2.0 file is part of Gating-ML examples - an informative part of Gating-ML 2.0 specification.
    <author>
      <name>Josef Spidlen</name>
      <email>jspidlen@bccrc.ca</email>
    </author>
    <copyright>
      Copyright (c) 2012 ISAC (International Society for Advancement of Cytometry). 
      Free of charge distribution and read-only usage permited. Modification
      and all other rights reserved. For all other uses please contact ISAC.
    </copyright>
  </data-type:custom_info>
  
  <transforms:transformation transforms:id="myLiln">
    <transforms:flin transforms:T="1023" transforms:A="100" />
  </transforms:transformation>
  
  <transforms:transformation transforms:id="logicle1">
    <transforms:logicle transforms:T="10000" transforms:M="4.5" transforms:W="0.5" transforms:A="0" />
  </transforms:transformation>
  
  <gating:PolygonGate gating:id="G1">
    <gating:dimension gating:compensation-ref="FCS">
      <data-type:fcs-dimension data-type:name="FSC-H" />
    </gating:dimension>
    <gating:dimension gating:compensation-ref="FCS">
      <data-type:fcs-dimension data-type:name="SSC-H" />
    </gating:dimension>
    <gating:vertex>
      <gating:coordinate data-type:value="200" />
      <gating:coordinate data-type:value="200" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="800" />
      <gating:coordinate data-type:value="300" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="700" />
      <gating:coordinate data-type:value="500"/>
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="500" />
      <gating:coordinate data-type:value="450"/>
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="300" />
      <gating:coordinate data-type:value="250"/>
    </gating:vertex>
  </gating:PolygonGate>
  
  <gating:PolygonGate gating:id="G2" gating:parent_id="G1">
    <gating:dimension gating:compensation-ref="FCS" gating:transformation-ref="logicle1">
      <data-type:fcs-dimension data-type:name="FL1-H" />
    </gating:dimension>
    <gating:dimension gating:compensation-ref="FCS">
      <data-type:fcs-dimension data-type:name="FL2-H" />
    </gating:dimension>
    <gating:vertex>
      <gating:coordinate data-type:value="0.1" />
      <gating:coordinate data-type:value="0.3" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="0.4" />
      <gating:coordinate data-type:value="0.35" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="0.7" />
      <gating:coordinate data-type:value="0.35" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="0.7" />
      <gating:coordinate data-type:value="0.7" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="0.2" />
      <gating:coordinate data-type:value="0.6" />
    </gating:vertex>
    <gating:vertex>
      <gating:coordinate data-type:value="0.15" />
      <gating:coordinate data-type:value="0.4" />
    </gating:vertex>
  </gating:PolygonGate>
  
  <gating:QuadrantGate gating:id="G3">
    <gating:divider gating:id="FL3" gating:compensation-ref="FCS" gating:transformation-ref="logicle1">
      <data-type:fcs-dimension data-type:name="FL3-H" />
      <gating:value>0.25</gating:value>
      <gating:value>0.5</gating:value>
      <gating:value>0.75</gating:value>
    </gating:divider>
    <gating:Quadrant gating:id="Q1G3">
      <gating:position gating:divider_ref="FL3" gating:location="0.2"/>
    </gating:Quadrant>
    <gating:Quadrant gating:id="Q2G3">
      <gating:position gating:divider_ref="FL3" gating:location="0.4"/>
    </gating:Quadrant>
    <gating:Quadrant gating:id="Q3G3">
      <gating:position gating:divider_ref="FL3" gating:location="0.6"/>
    </gating:Quadrant>
    <gating:Quadrant gating:id="Q4G3">
      <gating:position gating:divider_ref="FL3" gating:location="0.8"/>
    </gating:Quadrant>
  </gating:QuadrantGate>
  
  <gating:RectangleGate gating:id="G4">
    <gating:dimension gating:compensation-ref="uncompensated"
       gating:transformation-ref="myLiln" gating:max="0.6" gating:min="0.35">
      <data-type:fcs-dimension data-type:name="SSC-H" />
    </gating:dimension>
  </gating:RectangleGate>
  
</gating:Gating-ML>
