<?xml version="1.0"?>
<workflow>
  <head>
    <name>protein_distance_phylogeny</name>
    <version>1.1</version>
    <doc>
      <title>simple protein distance phylogeny workflow</title>
      <description>performs a multiple alignment and makes a phylogeny using a distance method on a set of protein sequences</description>
    </doc>
    <interface type="graph">
      <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1240 86"><style xmlns="http://www.w3.org/1999/xhtml">
				g{
					fill: white; stroke:black; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px;
				}

				text{
					fill: black; stroke: none;
				}				

                .jobstatus.building text{
                    fill: darkorange;
                }
                
                .jobstatus.submitted text, .jobstatus.pending text, .jobstatus.running text, .jobstatus.hold text{
                    fill: darkorange;
                }
                
                .jobstatus.error text, .jobstatus.killed text{
                    fill: red;
                }
                
                .jobstatus.finished text{
                    fill: green;
                }
                
                a.jobstatus:hover{
                	stroke-width: 2px;
                }
            </style>
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 82)">
<title>_anonymous_0</title>
<a xlink:title="simple protein distance phylogeny workflow">
<polygon points="-4,5 -4,-82 1237,-82 1237,5 -4,5"/>
<text text-anchor="middle" x="616" y="-9.4">simple protein distance phylogeny workflow</text>
</a>
<!-- 1 -->
<g id="node1" class="node"><title>1</title>
<a xlink:title="Align the sequences using Clustal-W">
<polygon points="0.5,-25.5 0.5,-78.5 457.5,-78.5 457.5,-25.5 0.5,-25.5"/>
<text text-anchor="middle" x="229" y="-61.9">clustalw-multialign</text>
<polyline points="0.5,-52.5 457.5,-52.5 "/>
<text text-anchor="middle" x="65" y="-35.4">Input sequences</text>
<polyline points="129.5,-25.5 129.5,-52.5 "/>
<text text-anchor="middle" x="263" y="-35.4">Align the sequences using Clustal-W</text>
<polyline points="396.5,-25.5 396.5,-52.5 "/>
<text text-anchor="middle" x="427" y="-35.4">aligfile</text>
</a>
</g>
<!-- 2 -->
<g id="node2" class="node"><title>2</title>
<a xlink:title="Compute my distance matrix">
<polygon points="494.5,-25.5 494.5,-78.5 819.5,-78.5 819.5,-25.5 494.5,-25.5"/>
<text text-anchor="middle" x="657" y="-61.9">protdist</text>
<polyline points="494.5,-52.5 819.5,-52.5 "/>
<text text-anchor="middle" x="519.5" y="-35.4">infile</text>
<polyline points="544.5,-25.5 544.5,-52.5 "/>
<text text-anchor="middle" x="652" y="-35.4">Compute my distance matrix</text>
<polyline points="759.5,-25.5 759.5,-52.5 "/>
<text text-anchor="middle" x="789.5" y="-35.4">outfile</text>
</a>
</g>
<!-- 1&#45;&gt;2 -->
<g id="edge2" class="edge"><title>1:aligfile-&gt;2:infile</title>
<path d="M458,-39C470,-39 475.25,-39 483.88,-39"/>
<polygon points="484,-42.5001 494,-39 484,-35.5001 484,-42.5001"/>
</g>
<!-- 3 -->
<g id="node4" class="node"><title>3</title>
<a xlink:title="Perform neighbor-joining">
<polygon points="856.5,-25.5 856.5,-78.5 1231.5,-78.5 1231.5,-25.5 856.5,-25.5"/>
<text text-anchor="middle" x="1044" y="-61.9">neighbor</text>
<polyline points="856.5,-52.5 1231.5,-52.5 "/>
<text text-anchor="middle" x="881.5" y="-35.4">infile</text>
<polyline points="906.5,-25.5 906.5,-52.5 "/>
<text text-anchor="middle" x="999.5" y="-35.4">Perform neighbor-joining</text>
<polyline points="1092.5,-25.5 1092.5,-52.5 "/>
<text text-anchor="middle" x="1162" y="-35.4">Phylogenetic Tree</text>
</a>
</g>
<!-- 2&#45;&gt;3 -->
<g id="edge4" class="edge"><title>2:outfile-&gt;3:infile</title>
<path d="M820,-39C832,-39 837.25,-39 845.88,-39"/>
<polygon points="846,-42.5001 856,-39 846,-35.5001 846,-42.5001"/>
</g>
</g>
</svg>
    </interface>
    
    
    
  <interface type="form" generated="true"><fieldset xmlns="http://www.w3.org/1999/xhtml" class="parameter " title="" data-datatype="Sequence" data-datatype-superclass="" data-biotype="Protein " data-card="" data-formats="" data-parametername="sequences"><legend xmlns:xhtml="http://www.w3.org/1999/xhtml">Input sequences</legend><xhtml:textarea xmlns:xhtml="http://www.w3.org/1999/xhtml" name="sequences" cols="60" rows="7"> </xhtml:textarea></fieldset></interface><interface type="job_input" generated="true"><div xmlns="http://www.w3.org/1999/xhtml" data-parametername="sequences" class="parameter " title="" data-datatype="Sequence" data-datatype-superclass="" data-biotype="Protein " data-card="" data-formats=""><xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml" class="prompt">Input sequences</xhtml:span><xhtml:i xmlns:xhtml="http://www.w3.org/1999/xhtml">
				(Protein Sequence)
			</xhtml:i></div></interface><interface type="job_output" generated="true"><div xmlns="http://www.w3.org/1999/xhtml" data-parametername="tree" class="parameter " title="" data-datatype="Tree" data-datatype-superclass="" data-biotype="Protein " data-card="" data-formats=""><xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml" class="prompt">Phylogenetic Tree</xhtml:span><xhtml:i xmlns:xhtml="http://www.w3.org/1999/xhtml">
				(Protein Tree)
			</xhtml:i></div></interface></head>
  <flow>
    <task id="1" service="clustalw-multialign" suspend="false">
      <description>Align the sequences using Clustal-W</description>
      <inputValue name="outputformat">PHYLIPI</inputValue>
    </task>
    <task id="2" service="protdist" suspend="true">
      <description>Compute my distance matrix</description>
    </task>
    <task id="3" service="neighbor" suspend="false">
      <description>Perform neighbor-joining</description>
    </task>
    <link toTask="1" fromParameter="1" toParameter="infile"/>
    <link fromTask="1" toTask="2" fromParameter="aligfile" toParameter="infile"/>
    <link fromTask="2" toTask="3" fromParameter="outfile" toParameter="infile"/>
    <link fromTask="3" fromParameter="treefile" toParameter="2"/>
  </flow>
  <parameters>
    <parameter id="1">
      <name>sequences</name>
      <prompt>Input sequences</prompt>
      <type>
        <datatype>
          <class>Sequence</class>
        </datatype>
        <biotype>Protein</biotype>
      </type>
      
      
    <interface type="form" generated="true"><xhtml:fieldset xmlns:xhtml="http://www.w3.org/1999/xhtml"><xhtml:legend>Input sequences</xhtml:legend><xhtml:textarea name="sequences" cols="60" rows="7"> </xhtml:textarea></xhtml:fieldset></interface><interface generated="true" type="job_input"><div xmlns="http://www.w3.org/1999/xhtml" class="parameter " title="" data-datatype="Sequence" data-datatype-superclass="" data-biotype="Protein " data-card="" data-formats="" data-parametername="sequences"><xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml" class="prompt">Input sequences</xhtml:span><xhtml:i xmlns:xhtml="http://www.w3.org/1999/xhtml">
				(Protein Sequence)
			</xhtml:i></div></interface></parameter>
    <parameter id="2" isout="true">
      <name>tree</name>
      <prompt>Phylogenetic Tree</prompt>
      <type>
        <datatype>
          <class>Tree</class>
        </datatype>
        <biotype>Protein</biotype>
      </type>
      
    <interface generated="true" type="job_output"><div xmlns="http://www.w3.org/1999/xhtml" class="parameter " title="" data-datatype="Tree" data-datatype-superclass="" data-biotype="Protein " data-card="" data-formats="" data-parametername="tree"><xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml" class="prompt">Phylogenetic Tree</xhtml:span><xhtml:i xmlns:xhtml="http://www.w3.org/1999/xhtml">
				(Protein Tree)
			</xhtml:i></div></interface></parameter>
  </parameters>
</workflow>

