9
|
1 <tool id="PanExplorer" name="PanExplorer" version="1.0">
|
2
|
2 <description> Bacterial pan-genome analysis </description>
|
|
3 <requirements>
|
|
4 <!--
|
|
5 <requirement type="package" version="2.2.26">blast-legacy</requirement>
|
|
6 <requirement type="package" version="7.480">mafft</requirement>
|
|
7 <requirement type="package" version="14.137">mcl</requirement>
|
|
8 <requirement type="package" version="3.697">phylip</requirement>
|
|
9 <requirement type="package" version="1.7.2">perl-bioperl</requirement>
|
|
10 -->
|
7
|
11 <requirement type="package" version="1.30">perl-yaml</requirement>
|
|
12 <requirement type="package" version="3.8.7">singularity</requirement>
|
2
|
13
|
|
14 </requirements>
|
|
15
|
|
16 <command><![CDATA[
|
7
|
17
|
2
|
18 export PANEX_PATH=${__tool_directory__};
|
|
19
|
|
20 perl ${__tool_directory__}/Perl/generateConfig.pl '$private_genomes' '$input' config.yaml '$private_genomes_fasta';
|
|
21
|
|
22 cat config.yaml >$logfile;
|
|
23
|
11
|
24 wget -O \$PANEX_PATH/panexplorer.sif https://panexplorer.southgreen.fr/singularity/panexplorer.sif >>$logfile 2>&1;
|
10
|
25
|
2
|
26
|
|
27
|
|
28
|
|
29 #if $software=="pgap"
|
|
30 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_PGAP_heatmap_upset_COG >snakefile;
|
|
31 #else if $software=="roary"
|
|
32 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_roary_heatmap_upset_COG >snakefile;
|
|
33 #else if $software=="orthofinder"
|
|
34 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_orthofinder_heatmap_upset >snakefile;
|
|
35 #else if $software=="cactus"
|
|
36 cp -rf \$PANEX_PATH/Snakemake_files/Snakefile_wget_cactus_heatmap_upset_COG2 snakefile;
|
|
37 #else if $software=="pggb"
|
|
38 sed "s/identity\=30/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_pggb_heatmap_upset_COG >snakefile;
|
|
39 #else
|
|
40 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_panacota_heatmap_upset_COG >snakefile;
|
|
41 #end if
|
|
42
|
|
43 singularity exec \$PANEX_PATH/panexplorer.sif snakemake --cores 1 -s snakefile >>$logfile 2>&1;
|
|
44
|
|
45
|
|
46 cp -rf outputs/upsetr.svg $upset;
|
|
47 cp -rf outputs/pav_matrix.tsv $output;
|
|
48 cp -rf outputs/heatmap.svg.gz $heatmap;
|
|
49 cp -rf outputs/heatmap.svg.heatmap_plotly.html $heatmap_html;
|
|
50 cp -rf outputs/rarefaction_curves.txt $rarefaction_curves;
|
|
51 cp -rf outputs/rarefaction_curves.svg $rarefaction_curves_svg;
|
|
52 cp -rf outputs/heaps.tsv $heaps;
|
|
53 cp -rf outputs/heatmap.svg.complete.pdf.distance_matrix.txt $distance_matrix;
|
|
54 cp -rf outputs/heatmap.svg.complete.pdf.distance_matrix.hclust.newick $njtree;
|
|
55
|
|
56 #if $software!="orthofinder"
|
|
57 cp -rf outputs/GCskew.txt $gcfile;
|
|
58 cp -rf outputs/cog_output.txt $cogfile;
|
|
59 cp -rf outputs/cog_stats.txt $outcog_stat;
|
|
60 cp -rf outputs/cog_stats2.txt $outcog_stat2;
|
|
61 cp -rf outputs/cog_of_clusters.txt $outcog_clusters;
|
|
62 cp -rf outputs/genomes/genes.txt $genes;
|
|
63 cp -rf outputs/fastani.out.matrix.complete $fastani;
|
|
64 cp -rf outputs/fastani.out.svg $ani_svg;
|
|
65 #end if
|
|
66
|
|
67 #if $software=="pggb"
|
|
68 cp -rf outputs/all_genomes.vcf $vcf;
|
|
69 #else
|
|
70 touch $vcf;
|
|
71 #end if
|
|
72 ]]></command>
|
|
73
|
|
74
|
|
75 <inputs>
|
|
76 <param name="input" type="text" multiple="true" label="List of genbank identifiers" help="Coma separated list (ex: CP000235.1,CP001079.1,CP001759.1,CP015994.2)"/>
|
|
77 <param name="private_genomes" type="data" format="zip" label="Zip of genbank or GFF files" optional="true"/>
|
|
78 <param name="private_genomes_fasta" type="data" format="zip" label="Zip of Fasta files" optional="true"/>
|
|
79 <param name="min_identity" type="text" value="80" label="Minimum percentage identity for BlastP" />
|
|
80 <param type="select" name="software" label="Choose the pan-genome software">
|
|
81 <option value="pgap">PGAP</option>
|
|
82 <option value="roary">Roary</option>
|
|
83 <option value="panacota">PanACoTA</option>
|
|
84 <option value="orthofinder">OrthoFinder</option>
|
|
85 <option value="cactus">Minigraph-Cactus</option>
|
|
86 <option value="pggb">PanGenome Graph Builder (PGGB)</option>
|
|
87 </param>
|
|
88 </inputs>
|
|
89
|
|
90 <outputs>
|
|
91 <data format="txt" name="output" label="Pangenome presence absence matrix"/>
|
|
92 <data format="newick" name="njtree" label="PanBased NJ tree"/>
|
|
93 <data format="txt" name="genes" label="Genes"/>
|
|
94 <data format="txt" name="cogfile" label="COG assignation"/>
|
|
95 <data format="txt" name="gcfile" label="GC_percent"/>
|
|
96 <data format="svg" name="upset" label="Upset Diagram"/>
|
|
97 <data format="svg" name="heatmap" label="Presence Absence Heatmap"/>
|
|
98 <data format="html" name="heatmap_html" label="Presence Absence Heatmap interactive"/>
|
|
99 <data format="tabular" name="outcog_stat" label="COG category counts"/>
|
|
100 <data format="tabular" name="outcog_stat2" label="COG category 2 counts"/>
|
|
101 <data format="tabular" name="outcog_clusters" label="COG of clusters"/>
|
|
102 <data format="tabular" name="fastani" label="ANI" />
|
|
103 <data format="svg" name="ani_svg" label="ANI heatmap" />
|
|
104 <data format="txt" name="rarefaction_curves" label="Rarefaction curves data"/>
|
|
105 <data format="svg" name="rarefaction_curves_svg" label="Rarefaction curves"/>
|
|
106 <data format="txt" name="heaps" label="Heaps law alpha"/>
|
|
107 <data format="txt" name="distance_matrix" label="Accessory based distance matrix"/>
|
|
108 <data format="vcf" name="vcf" label="VCF file"/>
|
|
109 <data format="txt" name="logfile" label="Logfile"/>
|
|
110 <data format="txt" name="roary_log" label="Roary Logfile"/>
|
|
111 </outputs>
|
|
112
|
|
113 </tool>
|