<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pise PUBLIC "pise2.dtd" "pise2.dtd" >
<pise>
	<head>
		<title>TrimAl on XSEDE</title>
		<version>1.2.59</version>
		<description>Trim alignments using TrimAl - run on XSEDE</description>
		<authors>Salvador Capella-Gutierrez, Jose M. Silla-Martinez and
                Toni Gabaldon.</authors>
		<reference>Salvador Capella-Gutierrez, Jose M. Silla-Martinez and Toni Gabaldon. trimAl: a tool for automated alignment trimming (2009).
		</reference>
		<category>Phylogeny / Alignment</category>
	</head>
	
	<command>trimal_xsede</command>
	
<!--

trimAl 1.2rev59. Copyright (C) 2009. Salvador Capella-Gutierrez and Toni GabaldÃn.

trimAl webpage: http://trimal.cgenomics.org

This program is free software: you can redistribute it and/or modify 
it under the terms of the GNU General Public License as published by 
the Free Software Foundation, the last available version.

Please cite:    Salvador Capella-Gutierrez, Jose M. Silla-Martinez and
                Toni Gabaldon. trimAl: a tool for automated alignment 
                trimming (2009).

Basic usage
        trimal -in <inputfile> -out <outputfile> -(other options).

Common options (for a complete list please see the User Guide or visit http://trimal.cgenomics.org):

    -h                       Print this information and show some examples.
    -*version                Print the trimAl version.

    -in <inputfile>          Input file in several formats (clustal, fasta, NBRF/PIR, nexus, phylip3.2, phylip).
    -compareset <inputfile>  Input list of paths for the files containing the alignments to compare.
    -matrix <inpufile>       Input file for user-defined similarity matrix (default is Blosum62).

    -out <outputfile>        Output alignment in the same input format (default stdout). (default input format)
    -htmlout <outputfile>    Get a summary of trimal's work in an HTML file.

    -clustal                 Output file in CLUSTAL format
    -fasta                   Output file in FASTA format
    -nbrf                    Output file in NBRF/PIR format
    -nexus                   Output file in NEXUS format
    -mega                    Output file in MEGA format
    -phylip3.2               Output file in PHYLIP3.2 format
    -phylip                  Output file in PHYLIP/PHYLIP4 format

    -complementary           Get the complementary alignment.
    -colnumbering            Get the relationship between the columns in the old and new alignment.

    -select { n,l,m-k }      Selection of columns to be removed from the alignment. (see User Guide).
    -gt -gapthreshold <n>    1 - (fraction of sequences with a gap allowed).
    -st -simthreshold <n>    Minimum average similarity allowed.
    -ct -conthreshold <n>    Minimum consistency value allowed.
    -cons <n>                Minimum percentage of the positions in the original alignment to conserve.

    -nogaps                  Remove all positions with gaps in the alignment.
    -noallgaps               Remove columns composed only by gaps.

    -gappyout                Use automated selection on "gappyout" mode. This method only uses information based on gaps' distribution. (see User Guide).
    -strict                  Use automated selection on "strict" mode. (see User Guide).
    -strictplus              Use automated selection on "strictplus" mode. (see User Guide).
                             (Optimized for Neighbour Joining phylogenetic tree reconstruction).

    -automated1              Use a heuristic selection of the automatic method based on similarity statistics. (see User Guide).
                             (Optimized for Maximum Likelihood phylogenetic tree reconstruction).

    -resoverlap              Minimum overlap of a positions with other positions in the column to be considered a "good position". (see User Guide).
    -seqoverlap              Minimum percentage of "good positions" that a sequence must have in order to be conserved. (see User Guide).

    -w <n>                   (half) Window size, score of position i is the average of the window (i - n) to (i + n).
    -gw <n>                  (half) Window size only applies to statistics/methods based on Gaps.
    -sw <n>                  (half) Window size only applies to statistics/methods based on Similarity.
    -cw <n>                  (half) Window size only applies to statistics/methods based on Consistency.

    -sgc                     Print gap percentage count for columns in the input alignment.
    -sgt                     Print accumulated gap percentage count.
    -scc                     Print conservation values for columns in the input alignment.
    -sct                     Print accumulated conservation values count.
    -sfc                     Print compare values for columns in the selected alignment from compare files method.
    -sft                     Print accumulated compare values count for the selected alignment from compare files method.
    -sident                  Print identity statistics for all sequences in the alignemnt. (see User Guide).
 -->
<!-- readal 
cipres@comet-ln2:/projects/ps-ngbt/opt/comet/trimal/trimAl/source>/projects/ps-ngbt/opt/comet/trimal/trimAl/source/readal

readAl 1.2rev59. Copyright (C) 2009. Salvador Capella-Gutierrez and Toni GabaldÃ³n.

readAl webpage: http://trimal.cgenomics.org

This program is free software: you can redistribute it and/or modify 
it under the terms of the GNU General Public License as published by 
the Free Software Foundation, the last available version.

Basic usage
        readal -in <inputfile> -out <outputfile> -(format options).

    -h                       Prints this information and show some examples.
    -*version                Prints the readAl version.

    -in <inputfile>          Input file in several formats (clustal, fasta, NBRF/PIR, nexus, phylip3.2, phylip, mega).
    -out <outputfile>        Output alignment in the same input format (default stdout).

    -format                  Prints the the input file format (fasta, clustal, ...) and kind (single or multi).
    -type                    Prints the input file type (Nucleotides or Amino Acids).

    -clustal                 Output file in CLUSTAL format
    -fasta                   Output file in FASTA format
    -nbrf                    Output file in NBRF/PIR format
    -nexus                   Output file in NEXUS format
    -mega                    Output file in MEGA format
    -phylip3.2               Output file in PHYLIP3.2 format
    -phylip                  Output file in PHYLIP/PHYLIP4 format
 -->

<parameters> 

<!--  submission on comet: the invocation line and any needed thread specification  -->
					<parameter ismandatory="1" ishidden="1" type="String">
						<name>trimal_comet</name>
						<attributes>
<!--  							<precond>
								<language>perl</language>
								<code>!$no_beagle &amp;&amp; $which_beast eq "0"</code>		
							</precond> -->
							<format>
								<language>perl</language>	
<!-- trimal
/projects/ps-
ngbt/opt/comet/trimal/trimAl/source/trimal
 -->	
								<code>"<![CDATA[trimal_expanse
								]]>"</code>
							</format>
							<group>0</group>
						</attributes>
					</parameter>													

<!-- choose the numer of cores as required for memory-->									
				<parameter type="String" ishidden="1" >
					<name>number_nodes</name>
					<attributes>
						<group>2</group>
						<paramfile>scheduler.conf</paramfile>
						<format>
							<language>perl</language>
							<code>
									"nodes=1\\n" .
									"node_exclusive=0\\n" .
									"mem=" . (int($select_numcores*(248/32))) . "G\\n" .
									"threads_per_process=$select_numcores\\n"
							</code>
						</format>
					</attributes>
				</parameter>
				
<!-- 
trimAl 1.2rev59. Copyright (C) 2009. Salvador Capella-Gutierrez and Toni GabaldÃ³n.

trimAl webpage: http://trimal.cgenomics.org

This program is free software: you can redistribute it and/or modify 
it under the terms of the GNU General Public License as published by 
the Free Software Foundation, the last available version.

Please cite:    Salvador Capella-Gutierrez, Jose M. Silla-Martinez and
                Toni Gabaldon. trimAl: a tool for automated alignment 
                trimming (2009).

Basic usage
        trimal -in <inputfile> -out <outputfile> -(other options).

Common options (for a complete list please see the User Guide or visit http://trimal.cgenomics.org):

    -h                       Print this information and show some examples.
    -*version                Print the trimAl version.

    -nogaps                  Remove all positions with gaps in the alignment.
    -noallgaps               Remove columns composed only by gaps.

    -gappyout                Use automated selection on "gappyout" mode. This method only uses information based on gaps' distribution. (see User Guide).
    -strict                  Use automated selection on "strict" mode. (see User Guide).
    -strictplus              Use automated selection on "strictplus" mode. (see User Guide).
                             (Optimized for Neighbour Joining phylogenetic tree reconstruction).

    -automated1              Use a heuristic selection of the automatic method based on similarity statistics. (see User Guide).
                             (Optimized for Maximum Likelihood phylogenetic tree reconstruction).

    -resoverlap              Minimum overlap of a positions with other positions in the column to be considered a "good position". (see User Guide).
    -seqoverlap              Minimum percentage of "good positions" that a sequence must have in order to be conserved. (see User Guide).

    -w <n>                   (half) Window size, score of position i is the average of the window (i - n) to (i + n).
    -gw <n>                  (half) Window size only applies to statistics/methods based on Gaps.
    -sw <n>                  (half) Window size only applies to statistics/methods based on Similarity.
    -cw <n>                  (half) Window size only applies to statistics/methods based on Consistency.

    -sgc                     Print gap percentage count for columns in the input alignment.
    -sgt                     Print accumulated gap percentage count.
    -scc                     Print conservation values for columns in the input alignment.
    -sct                     Print accumulated conservation values count.
    -sfc                     Print compare values for columns in the selected alignment from compare files method.
    -sft                     Print accumulated compare values count for the selected alignment from compare files method.
    -sident                  Print identity statistics for all sequences in the alignemnt. (see User Guide). -->
<!-- input file specification -->
<!--     -in <inputfile>          Input file in several formats (clustal, fasta, NBRF/PIR, nexus, phylip3.2, phylip). -->
		<parameter issimple="1" ismandatory="1" isinput="1" type="Sequence">
			<name>infile</name>
			<attributes>
				<prompt>Input File</prompt>
				<format>
					<language>perl</language>
					<code>"-in infile.txt"</code>
				</format>
				<group>99</group>
<!-- this file designator seems to come at the end of the command string, so we set if for 99 currently -->
				<filenames>infile.txt</filenames>
			</attributes>
		</parameter>
<!-- not supported yet:    -compareset <inputfile>  Input list of paths for the files containing the alignments to compare. -->
<!-- Results section. To start we return all results files available-->

		<parameter ishidden="1" type="Results">
			<name>all_results</name>
			<attributes>
				<filenames>*</filenames>
			</attributes>
		</parameter>
		
<!-- This section provides visible queries that help configure the interface  -->
<!-- this sets the run time -->
				<parameter type="Float" issimple="1" ismandatory="1">
					<name>runtime</name> 
					<attributes>
						<group>1</group>
						<paramfile>scheduler.conf</paramfile>
						<prompt>Maximum Hours to Run (up to 168 hours)</prompt>
						<vdef>
							<value>0.5</value>
						</vdef>
						<ctrls>
							<ctrl>
								<message>The maximum hours to run must be less than 168</message>
								<language>perl</language>
								<code>$runtime &gt; 168.0</code>
							</ctrl>
							<ctrl>
								<message>The maximum hours to run must be greater than 0.05</message>
								<language>perl</language>
								<code>$runtime &lt; 0.05</code>
							</ctrl>
						</ctrls>
						<format>
							<language>perl</language>
							<code>"runhours=$value\\n"</code>
						</format>
<!--  codon partitioning, less than 1.8.3 -->
						<warns>
							<warn>
								<message>The job will run on 1 processor as configured. If it runs for the entire configured time, it will consume 1 X $runtime cpu hours</message>
								<language>perl</language>
								<code>$select_numcores &lt;= 1 </code>
							</warn>
							<warn>
								<message>The job will run on $select_numcores processor as configured. If it runs for the entire configured time, it will consume $select_numcores X $runtime cpu hours</message>
								<language>perl</language>
								<code>$select_numcores &gt; 1 </code>
							</warn>
						</warns>
						<comment>
<value>Estimate the maximum time your job will need to run. We recommend testimg initially with a &lt; 0.5hr test run because Jobs set for 0.5 h or less dependably run immediately in the "debug" queue. 
Once you are sure the configuration is correct, you then increase the time. The reason is that jobs &gt; 0.5 h are submitted to the "normal" queue, where jobs configured for 1 or a few hours times may
	run sooner than jobs configured for the full 168 hours. 
</value>
						</comment>
					</attributes>
				</parameter>

<!--         -complementary   Get the complementary alignment. -->
				<parameter type="Integer" issimple="1">
					<name>select_numcores</name> 
					<attributes>
						<prompt>How many cores?</prompt>
						<vdef>
							<value>1</value>
						</vdef>
						<ctrls>
							<ctrl>
								<message>The number of cores cannot exceed 8</message>
								<language>perl</language>
								<code>$select_numcores &gt; 8 </code>
							</ctrl>
						</ctrls>
						<warns>
							<warn>
								<message>Please adjust the number of cores only if your job ran out of memory</message>
								<language>perl</language>
								<code>$select_numcores &gt; 1 </code>
							</warn>
						</warns>
					</attributes>
				</parameter>
				
<!--         -complementary   Get the complementary alignment. -->
				<parameter type="Switch" issimple="1">
					<name>select_complementary</name> 
					<attributes>
						<prompt>Get the complementary alignment  (-complementary)</prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-complementary":""</code>
						</format>
						<comment>
<value>complementary: This parameter lets the user get the complementary alignment, in
other   words,   when   the   user   uses   this   parameter   trimAl   will   render   the
columns/sequences that would be deleted from the original alignment.</value>
						</comment>
					</attributes>
				</parameter>
<!--     -colnumbering            Get the relationship between the columns in the old and new alignment -->
				<parameter type="Switch" issimple="1">
					<name>select_colnumbering</name> 
					<attributes>
						<prompt>Get the relationship between the columns in the old and new alignment (-colnumbering) </prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-colnumbering":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry, colnumbering cant be used with statistical options</message>
								<language>perl</language>
								<code>$select_colnumbering &amp;&amp; ($specify_noallgaps || $specify_gappyout || $specify_strict || $specify_strictplus || $specify_automated1 )</code>
							</ctrl>
						</ctrls>
						<comment>
<value>colnumbering: This parameter will provide you the relationship between the column
numbers in the trimmed and the original alignment.</value>
						</comment>
					</attributes>
				</parameter>
				
				<!--     -matrix <inpufile>       Input file for user-defined similarity matrix (default is Blosum62). -->
				<parameter type="InFile" >
					<name>similarity_matrixfile</name> 
					<attributes>
						<prompt>Specify a user-defined similarity matrix file</prompt>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-matrix similarity_matrix.txt":""</code>
						</format>
						<filenames>similarity_matrix.txt</filenames>
					</attributes>
				</parameter>
				
<parameter type="Paragraph">
	<paragraph>
		<name>manual_params</name>
		<prompt>Manual Selection Parameters</prompt>
		<parameters> 

<!--     -select { n,l,m-k }  Selection of columns to be removed from the alignment. (see User Guide). -->
				<parameter type="String">
					<name>select_columns</name> 
					<attributes>
						<prompt>Selection of columns to be removed from the alignment. (-select) </prompt>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-select { $value }":""</code>
						</format>
						<ctrls>
<!--((noallgaps) || (gappyout) || (strict) || (strictplus) || (automated1) || nogaps )-->
							<ctrl>
								<message>Sorry you cant mix manual and automatic analyses</message>
								<language>perl</language>
								<code>defined $select_columns  &amp;&amp; ($specify_noallgaps || $specify_nogaps || $specify_strict || $specify_strictplus || $specify_automated1 || $specify_gappyout ) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>This  algorithm  simply  removes  a  set  of  columns  as  indicated  by  the  user.
The  set  of columns that will be removed has to be provided as individual column numbers separated 
by  commas,  and/or  blocks  of  consecutive  columns  indicated  as  the  first  and  last  column number separated by hyphen. 
In the following example: select {n,l,m-k} where n and l are interpreted as single column numbers while m-k is a range of columns 
(from column m to column k, both included) to be deleted. Note that the numbering of the columns starts by 0. For instance, the command: 
select {2,7,20-25,80-100} will  remove  columns  2  and 7  and  two  blocks  of  columns  ranging  from  column  20  to  25 
and 80 to 100, respectively.</value>
						</comment>
					</attributes>
				</parameter>

<!--  gap threshold -gt-->
				<parameter type="Float">
					<name>specify_gapthreshold</name> 
					<attributes>
						<prompt>Fraction of sequences with a gap allowed (-gt) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-gt $value":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry the gap threshold is a percentage, and must be less than or equal to one.</message>
								<language>perl</language>
								<code>defined $specify_gapthreshold &amp;&amp; $specify_gapthreshold &gt; 1</code>
							</ctrl>
							<ctrl>
								<message>Sorry you cant mix manual and automatic analyses</message>
								<language>perl</language>
								<code>defined $select_columns  &amp;&amp; ($specify_noallgaps || $specify_nogaps || $specify_strict || $specify_strictplus || $specify_automated1 || $specify_gappyout ) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>After the selection of a gap score cutoff point, trimAl removes all of those columns that do not reach this value. In practice, this method basically detects the bimodal distribution 
of gap scores (gap rich and gap poor columns) in an alignment to subsequently get rid of the  gap-rich  mode.</value>
						</comment>
					</attributes>
				</parameter>
								  
<!--     -st -simthreshold <n>    Minimum average similarity allowed.  -->				
				<parameter type="Float">
					<name>specify_similarity</name> 
					<attributes>
						<prompt>Minimum average similarity allowed (-st) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-st $value":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry the similarity threshold is a percentage, and must be less tan or equal to one.</message>
								<language>perl</language>
								<code>defined $specify_similarity &amp;&amp; $specify_similarity &gt; 1</code>
							</ctrl>
							<ctrl>
								<message>Sorry you cant mix manual and automatic analyses</message>
								<language>perl</language>
								<code>defined $select_columns  &amp;&amp; ($specify_noallgaps || $specify_nogaps || $specify_strict || $specify_strictplus || $specify_automated1 || $specify_gappyout ) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>After the selection of a gap score cutoff point, trimAl removes all of those columns that do not reach this value. In practice, this method basically detects the bimodal distribution 
of gap scores (gap rich and gap poor columns) in an alignment to subsequently get rid of the  gap-rich  mode.</value>
						</comment>
					</attributes>
				</parameter>  
				
<!--    specify_consistency -ct. only for multiple alignment comparisons				
				<parameter type="Float" >
					<name>specify_consistency</name> 
					<attributes>
						<prompt>Minimum consistency value allowed (-ct) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-ct $value":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry the consistency threshold is a percentage, and must be less tan or equal to one.</message>
								<language>perl</language>
								<code>defined $specify_consistency &amp;&amp; $specify_consistency &gt; 1</code>
							</ctrl>
						</ctrls>
						<comment>
<value>The  column  consistency  score  can  only  be  computed  when  more  than  one  alignment  for the same set and in the same order of sequences is provided. 
Each  alignment,  called  reference  alignment  when  selected,  is  compared  with  the  rest  of the alignments. Then each pair of aligned residues in the reference alignment is compared 
with the other alignments and 1.0 is added to the cumulative score every time the same aligned residue pair is found in one of the other alignments. This cumulative score is then 
divided by the total number of alignments considered and by the total number of pairs in the  reference  alignment;  so  that  the  final  score  ranges  from  0  (no  aligned  pair  found  in the  other  alignments)  to  1  (all  alignments  have  the  same  pairs  and  are  thus  fully consistent).</value>
						</comment>
					</attributes>
				</parameter>  -->
<!--     -cons <n>                Minimum percentage of the positions in the original alignment to conserve.  -->				
				<parameter type="Float" >
					<name>specify_mincon</name> 
					<attributes>
						<prompt>Minimum percentage of the positions in the original alignment to conserve (-cons) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-cons $value":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry the conserved percentage must be greater than or equal to zero.</message>
								<language>perl</language>
								<code>defined $specify_mincon &amp;&amp; $specify_mincon &lt; 0</code>
							</ctrl>
							<ctrl>
								<message>Sorry the percentage must be less than or equal to 100</message>
								<language>perl</language>
								<code>defined $specify_mincon &amp;&amp; $specify_mincon &gt; 100</code>
							</ctrl>
							<ctrl>
								<message>Sorry you cant mix manual and automatic analyses</message>
								<language>perl</language>
								<code>defined $specify_mincon &amp;&amp; ($specify_noallgaps || $specify_nogaps || $specify_strict || $specify_strictplus || $specify_automated1 || $specify_gappyout ) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>The  user  can  set  up  a  conservation  threshold which  refers  to  the 
minimum  percentage  of  columns  from  the  input  alignment  that  should  be  part  of  the 
trimmed alignment. This threshold is defined between 0 and 100. This threshold overrides 
all other thresholds.</value>
						</comment>
					</attributes>
				</parameter>

</parameters>
</paragraph>
</parameter>

				   
<parameter type="Paragraph">
	<paragraph>
		<name>window_params</name>
		<prompt>Window Parameters (used only for Manual Methods)</prompt>
		<parameters> 

    <!--  

    -w <n>                   (half) Window size, score of position i is the average of the window (i - n) to (i + n).
    -gw <n>                  (half) Window size only applies to statistics/methods based on Gaps.
    -sw <n>                  (half) Window size only applies to statistics/methods based on Similarity.
    -cw <n>                  (half) Window size only applies to statistics/methods based on Consistency.
. -->
				<parameter type="Integer" >
					<name>specify_windowsize</name> 
					<attributes>
						<prompt>Window size, score of position i is the average of the window (i - n) to (i + n) (-w)</prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-w $value":""</code>
						</format>
						<comment>
<value>This value establishes the number of columns at each side of a given position that trimAl has to consider when computing some scores,
such as gap, conservation or consistency scores, for that position. When a window size is given, trimAl provides the average value of all columns considered</value>
						</comment>
					</attributes>
				</parameter>  
				
				<parameter type="Integer" >
					<name>specify_gapwindowsize</name> 
					<attributes>
						<prompt>Window size only applies to statistics/methods based on Gaps (-gw)</prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-gw $value":""</code>
						</format>
						<comment>
<value>This value establishes the number of columns at each side of a given position that trimAl has to consider when computing some scores,
 gap for that position. When a window size is given, trimAl provides the average value of all columns considered</value>
						</comment>
					</attributes>
				</parameter>  
				
				<parameter type="Integer" >
					<name>specify_simwindowsize</name> 
					<attributes>
						<prompt>Window size only applies to statistics/methods based on Similarity (-sw)</prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-sw $value":""</code>
						</format>
						<comment>
<value>This value establishes the number of columns at each side of a given position that trimAl has to consider when computing some scores,
similarity for that position. When a window size is given, trimAl provides the average value of all columns considered</value>
						</comment>
					</attributes>
				</parameter> 
				
				<parameter type="Integer" >
					<name>specify_conwindowsize</name> 
					<attributes>
						<prompt>Window size only applies to statistics/methods based on Consistency (-cw)</prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-cw $value":""</code>
						</format>
						<comment>
<value>This value establishes the number of columns at each side of a given position that trimAl has to consider when computing some scores,
consistency for that position. When a window size is given, trimAl provides the average value of all columns considered</value>
						</comment>
					</attributes>
				</parameter>
			</parameters>
		</paragraph>
</parameter>
 
 <parameter type="Paragraph">
	<paragraph>
		<name>autorun_params</name>
		<prompt>Automatic Run Parameters</prompt>
		<parameters> 

<!-- -nogaps --> 			
				<parameter type="Switch" >
					<name>specify_nogaps</name> 
					<attributes>
						<prompt>Remove all positions with gaps in the alignment (-nogaps)</prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>($value) ? "-nogaps":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Gap removal can not be used with manual removal of columns (-select)</message>
								<language>perl</language>
								<code>$specify_nogaps &amp;&amp; $select_columns</code>
							</ctrl>
						</ctrls>
						
						<comment>
<value>nogaps is equivalent  to -gt  1; deletes all columns with at least one gap in it</value>
						</comment>
					</attributes>
				</parameter>

<!--       -noallgaps               Remove columns composed only by gaps. -->				
				<parameter type="Switch" >
					<name>specify_noallgaps</name> 
					<attributes>
						<prompt>Remove columns composed only by gaps. (-noallgaps) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>($value) ? "-noallgaps":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry you cant use -nogaps and -noallgaps together</message>
								<language>perl</language>
								<code>$specify_nogaps &amp;&amp; $specify_noallgaps</code>
							</ctrl>
<!--((noallgaps) || (gappyout) || (strict) || (strictplus) || (automated1) || nogaps )-->
							<ctrl>
								<message>Sorry you cant select multiple automatic analyses</message>
								<language>perl</language>
								<code>$specify_noallgaps &amp;&amp; ($specify_nogaps || $specify_strict || $specify_strictplus || $specify_automated1 || $specify_gappyout ) </code>
							</ctrl>
						</ctrls>
						
						<comment>
<value>noallgaps removes those columns composed only by gaps</value>
						</comment>
					</attributes>
				</parameter>
		
<!--        -gappyout                Use automated selection on "gappyout" mode. This method only uses information based on gaps' distribution. (see User Guide). -->				
				<parameter type="Switch" >
					<name>specify_gappyout</name> 
					<attributes>
						<prompt>Use automated selection on "gappyout" mode (-gappyout) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>($value) ? "-gappyout":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry you cant select multiple automatic analyses</message>
								<language>perl</language>
								<code>$specify_gappyout &amp;&amp; ($specify_nogaps || $specify_strict || $specify_strictplus || $specify_automated1) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>Use automated selection on "gappyout" mode. This method only uses information based on gaps' distribution. (see User Guide). </value>
						</comment>
					</attributes>
				</parameter>
     
<!--        -strict                   -strict                  Use automated selection on "strict" mode.  -->				
				<parameter type="Switch" >
					<name>specify_strict</name> 
					<attributes>
						<prompt> Use automated selection on "strict" mode (-strict) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>($value) ? "-strict":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry you cant select multiple automatic analyses</message>
								<language>perl</language>
								<code>$specify_strict &amp;&amp; ($specify_nogaps ||  $specify_strictplus || $specify_automated1) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>  Use automated selection on "strict" mode. This  method  combines  a  gappyout  trimming  with  a  subsequent  trimming  based  on  an 
automatically  selected  similarity  threshold. (see User Guide). </value>
						</comment>
					</attributes>
				</parameter>
				
<!--        -strictplus                     Use automated selection on "strictplus" mode.  -->				
				<parameter type="Switch" >
					<name>specify_strictplus</name> 
					<attributes>
						<prompt> Use automated selection on "strictplus" mode (-strictplus) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>($value) ? "-strictplus":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Sorry you cant select multiple automatic analyses</message>
								<language>perl</language>
								<code>$specify_strictplus &amp;&amp;($specify_nogaps ||  $specify_automated1) </code>
							</ctrl>
						</ctrls>
						<comment>
<value>  Use automated selection on "strictplus" mode. (Optimized for Neighbour Joining phylogenetic tree reconstruction). This   method   is   similar   to   the -strict   method,   but   they  differ   in   that 
-strictplus automatically  selects  the  block  size  for  the  final  step  of  the  algorithm.   (see User Guide). </value>
						</comment>
					</attributes>
				</parameter>
<!-- 
    -automated1              Use a heuristic selection of the automatic method based on similarity statistics. (see User Guide).
                             (Optimized for Maximum Likelihood phylogenetic tree reconstruction). -->
			
				<parameter type="Switch" >
					<name>specify_automated1</name> 
					<attributes>
						<prompt>Use a heuristic selection of the automatic method based on similarity statistics. (-automated1) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>($value) ? "-automated1":""</code>
						</format>
						<comment>
<value>Use a heuristic selection of the automatic method based on similarity statistics. (see User Guide). (Optimized for Maximum Likelihood phylogenetic tree reconstruction). </value>
						</comment>
					</attributes>
				</parameter>
				
<!-- -resoverlap   Minimum overlap of a positions with other positions in the column to be considered a "good position". (see User Guide). The  residue  overlap  threshold  (-resoverlap)  corresponds  to  the  minimum  residue overlap score for each residue-->
				<parameter type="Float" >
					<name>specify_resoverlap</name> 
					<attributes>
						<prompt>Minimum overlap of a positions with other positions in the column (-resoverlap) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-resoverlap $value":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>The overlap value should be between 0 and 1</message>
								<language>perl</language>
								<code>$specify_resoverlap &lt; 0 || $specify_resoverlap &gt; 1 </code>
							</ctrl>
							<ctrl>
								<message>Please specify the sequence overlap value</message>
								<language>perl</language>
								<code>$specify_resoverlap &amp;&amp; !defined $specify_seqoverlap </code>
							</ctrl>
						</ctrls>
						<comment>
<value>  Minimum overlap of a positions with other positions in the column to be considered a "good position". (see User Guide). The  residue  overlap  threshold  (-resoverlap)  corresponds  to  the  minimum  residue overlap score for each residue</value>
						</comment>
					</attributes>
				</parameter>

<!--  -seqoverlap  Minimum percentage of "good positions" that a sequence must have in order to be conserved. (see User Guide).-->
				<parameter type="Float" >
					<name>specify_seqoverlap</name> 
					<attributes>
						<prompt>Minimum percentage of "good positions" that a sequence must have (-seqoverlap) </prompt>
						<precond>
							<language>perl</language>
							<code>!defined $select_columns &amp;&amp; !defined $specify_gapthreshold &amp;&amp; !defined $specify_similarity &amp;&amp;!defined $specify_mincon</code>
						</precond>
						<format>
							<language>perl</language>
							<code>(defined $value) ? "-seqoverlap $value":""</code>
						</format>
						<ctrls>
							<ctrl>
								<message>Please specify the residue overlap value</message>
								<language>perl</language>
								<code>$specify_seqoverlap &amp;&amp; !defined $specify_resoverlap </code>
							</ctrl>
						</ctrls>
						<comment>
<value>The sequence overlap threshold (-seqoverlap) sets up the minimum percentage of the residues for each sequence that should pass the residue overlap threshold in order to 
maintain  the  sequence  in  the  new  alignment. Sequences that do not pass the sequence overlap threshold will be removed from the alignment</value>
						</comment>
					</attributes>
				</parameter>
				
			</parameters>
		</paragraph>
</parameter>
			
<parameter type="Paragraph">
	<paragraph>
		<name>output_params</name>
		<prompt>Output Parameters</prompt>
		<parameters>
<!-- 
    -out <outputfile>        Output alignment in the same input format (default stdout). (default input format)
    -htmlout <outputfile>    Get a summary of trimal's work in an HTML file.
 -->				
		<parameter issimple="0" ishidden="0" type="String">
			<name>out_filename</name>
			<attributes>
				<prompt>Specify the name of the output file</prompt>
				<format>
					<language>perl</language>
					<code>($value) ? "-out $out_filename":""</code>
				</format>
				<group>4</group>
			</attributes>
		</parameter>

		<parameter type="Switch">
			<name>out_htmlfilename</name>
			<attributes>
				<prompt>Output file in html format</prompt>
				<format>
					<language>perl</language>
					<code>($value) ? "-htmlout $out_filename.html":""</code>
				</format>
				<group>4</group>
			</attributes>
		</parameter>

<!-- -clustal                 Output file in CLUSTAL format
     -fasta                   Output file in FASTA format
     -nbrf                    Output file in NBRF/PIR format
     -nexus                   Output file in NEXUS format
     -mega                    Output file in MEGA format
     -phylip3.2               Output file in PHYLIP3.2 format
     -phylip                  Output file in PHYLIP/PHYLIP4 format -->
     
		<parameter issimple="0" ismandatory="0" type="Excl">
			<name>output_format</name>
			<attributes>
				<prompt>Specify the output format </prompt>
				<vlist>
					<value></value>
					<label>Same as input</label>
					<value>-clustal</value>
					<label>Clustal</label>
					<value>-fasta</value>
					<label>Fasta</label>
					<value>-nbrf</value>
					<label>NBRF</label>
					<value>-nexus</value>
					<label>Nexus</label>
					<value>-mega</value>
					<label>Mega</label>
					<value>-phylip3.2</value>
					<label>Phylip 3.2</label>
					<value>-phylip</value>
					<label>Phylip</label>
				</vlist>
				<vdef>
					<value></value>				
				</vdef>
				<format>
					<language>perl</language>
					<code>$value</code>
				</format>
				<group>4</group>
				<comment>
<value>trimAl can change the output format for a given alignment. By default the output format is the
same as the input one, but you can produce an output in different format with these options:.</value>
				</comment>
			</attributes>
		</parameter>
		
<!--    -sgc   Print gap percentage count for columns in the input alignment. -->
				<parameter type="Switch" >
					<name>print_sgc</name> 
					<attributes>
						<prompt>Print gap percentage count for columns in the input alignment. (-sgc) </prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-sgc":""</code>
						</format>
					</attributes>
				</parameter>

<!--  -sgt      Print accumulated gap percentage count. -->
    				<parameter type="Switch" >
					<name>print_sgt</name> 
					<attributes>
						<prompt>Print accumulated gap percentage count (-sgt) </prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-sgt":""</code>
						</format>
					</attributes>
				</parameter>
				
<!--     -scc    Print conservation values for columns in the input alignment. -->
    				<parameter type="Switch" >
					<name>print_scc</name> 
					<attributes>
						<prompt>Print conservation values for columns in the input alignment (-scc) </prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-scc":""</code>
						</format>
					</attributes>
				</parameter>
				
 <!--    -sct   Print accumulated conservation values count.. -->
    				<parameter type="Switch" >
					<name>print_sct</name> 
					<attributes>
						<prompt>Print accumulated conservation values count (-sct) </prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-sct":""</code>
						</format>
					</attributes>
				</parameter>

   <!-- -sfc Print compare values for columns in the selected alignment from compare files method. -->
   <!--	not relevant if the comapre files method is not available			<parameter type="Switch" >
					<name>print_sfc</name> 
					<attributes>
						<prompt>Print compare values for columns in the selected alignment from compare files method (-sfc) </prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-sfc":""</code>
						</format>
 						<ctrls>
							<ctrl>
								<message>Sorry, you cant use both -sfc and -sft options at the same time</message>
								<language>perl</language>
								<code>$print_sfc &amp;&amp; $print_sft</code>
							</ctrl>
						</ctrls>  
					</attributes>
				</parameter> -->

   <!--  not relevant if the comapre files method is not available -sft  Print accumulated compare values count for the selected alignment from compare files method.
    				<parameter type="Switch" >
					<name>print_sft</name> 
					<attributes>
						<prompt>Print accumulated compare values count for the selected alignment from compare files method (-sft)</prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-sft":""</code>
						</format>
					</attributes>
				</parameter>  -->
				
   <!-- -sident   Print identity statistics for all sequences in the alignemnt. (see User Guide). -->
        			<parameter type="Switch" >
					<name>print_sident</name> 
					<attributes>
						<prompt>Print identity statistics for all sequences in the alignment. (-sident)</prompt>
						<format>
							<language>perl</language>
							<code>($value) ? "-sident":""</code>
						</format>
					</attributes>
				</parameter>
	
</parameters>

</paragraph>
</parameter>

	
</parameters>
</pise>


