| 
3
 | 
     1 <tool id="encode" name="encode" version="1.0.0">
 | 
| 
 | 
     2   <description>encode genotypes for further machine learning analysis</description>
 | 
| 
 | 
     3   <command interpreter="Rscript">
 | 
| 
 | 
     4 	  encode.R $config > ${output1}
 | 
| 
 | 
     5   </command>
 | 
| 
 | 
     6   
 | 
| 
 | 
     7   <inputs>
 | 
| 
 | 
     8 	<param name="genotype" type="data"
 | 
| 
 | 
     9 		label="genotype data" help="genotype must be a .csv" 
 | 
| 
 | 
    10 	/>
 | 
| 
 | 
    11 		  
 | 
| 
 | 
    12 	<param name="separator" type="text" value="/"
 | 
| 
 | 
    13 			  label="separator of the heterozygous" help=" caracter used to separate heterozygous in the genotype" 
 | 
| 
 | 
    14 	/>
 | 
| 
 | 
    15 	
 | 
| 
 | 
    16 	<param name="encodedPath" type="text"
 | 
| 
 | 
    17 			label="path to the output file" help= " a .csv extension is automatically added by OGHMA" 
 | 
| 
 | 
    18 	/>
 | 
| 
 | 
    19   </inputs>
 | 
| 
 | 
    20   
 | 
| 
 | 
    21   
 | 
| 
 | 
    22     <configfiles>
 | 
| 
 | 
    23     <configfile name="config">
 | 
| 
 | 
    24 ## Desc: this file is sourced in encode wrapper script
 | 
| 
 | 
    25 ##  as means to pass all galaxy params to R
 | 
| 
 | 
    26 "${genotype}" -> genotype
 | 
| 
 | 
    27 "${separator}" -> sep
 | 
| 
 | 
    28 "${encodedPath}" -> out
 | 
| 
 | 
    29 
 | 
| 
 | 
    30     </configfile>
 | 
| 
 | 
    31 </configfiles>
 | 
| 
 | 
    32   
 | 
| 
 | 
    33 <outputs>
 | 
| 
 | 
    34 	<data format="tabular" name="output1" label="encoded data" />
 | 
| 
 | 
    35 </outputs>
 | 
| 
 | 
    36   
 | 
| 
 | 
    37   <help>
 | 
| 
 | 
    38 	  Takes the genotype and encode them in the desired schem (usually 3 integer like 1/2/3) for  minor homozygous/heterozygous/major homozygous. The output is a .csv file that may be use by other tools in the OGHMA workflow.
 | 
| 
 | 
    39   </help>
 | 
| 
 | 
    40   </tool> |