annotate pangenomeCogAnalysis.xml @ 2:0428ce25da81 draft

Uploaded
author mgarnier
date Fri, 02 Jul 2021 14:53:33 +0000
parents 731fb6cb324b
children 27c5a6f2301c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
1 <tool id="pangenome_cog_analysis" name="Pangenome COG Analysis" version="1.0">
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
2 <description>Provide statistics from pangenome matrix and COG annotations </description>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
3 <!-- <requirements>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
4 <requirement type="package" version=""></requirement>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
5 </requirements> -->
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
6 <command detect_errors="aggressive"><![CDATA[
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
7 #import re
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
8
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
9 ## Creates symlinks for each input file based on the Galaxy 'element_identifier'
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
10 ## Used so that a human-readable name appears in the output table (instead of 'dataset_xyz.dat')
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
11 #set $named_input_files = ''
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
12 #for $input_file in $input_files
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
13 ## Add single quotes around each input file identifier
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
14 #set $_input_file = "'{}'".format($input_file.element_identifier)
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
15 ln -s '${input_file}' ${_input_file} &&
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
16 #set $named_input_files = $named_input_files + ',' + $_input_file
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
17 #end for
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
18
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
19 perl ${__tool_directory__}/pangenomeCogAnalysis_V1.pl $input $input2 $named_input_files $input_files $gff_files order $output $output2 $output3 $output4 $output5
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
20 ]]></command>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
21
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
22
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
23
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
24 <inputs>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
25 <param format="tabular" name="input" type="data" label="Pangenome Matrix" help="Headers must be: Cluster,genes_strain1,genes_strain2..."/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
26 <param format="tabular" name="input2" type="data" label="Strains group file (example species information)" help="Headers must be: strain1,groupinfo"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
27 <param type="data" name="input_files" format="txt" multiple="true" label="Collection of COG files" help="Each files must be named with the same strain name as defined in Strain group file. Headers must be Gene,COG,COGcategory"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
28 <param type="data" name="gff_files" format="gff3" multiple="true" label="Collection of GFF files for preparing Circos track" help="Not necessarily annotations from all strains, only those that you want to be represented as Circos tracks"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
29 <!--<param format="tabular" name="input_files" type="data" multiple="true" label="Annotation files"/>-->
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
30 </inputs>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
31
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
32 <outputs>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
33 <data format="txt" name="output" label="List of group-specific clusters"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
34 <data format="tabular" name="output2" label="COG category count average per group"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
35 <data format="tabular" name="output3" label="Detailed COG category count values per group"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
36 <data format="tabular" name="output4" label="COG category count average"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
37 <data format="tabular" name="output5" label="Core-genes coordinates"/>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
38 </outputs>
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
39
731fb6cb324b Uploaded
mgarnier
parents:
diff changeset
40 </tool>