14
|
1 <tool id="PanExplorer2" name="PanExplorer2" version="2.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
|
14
|
20
|
|
21 #if str($mode.mode) == "accessions":
|
|
22 perl ${__tool_directory__}/Perl/generateConfig.pl 'None' '$input' config.yaml 'None';
|
|
23 #else if str($mode.mode) == "genbanks":
|
|
24 perl ${__tool_directory__}/Perl/generateConfig.pl '$private_genomes' 'None' config.yaml 'None';
|
|
25 #else if str($mode.mode) == "fasta":
|
|
26 perl ${__tool_directory__}/Perl/generateConfig.pl '$private_genomes' 'None' config.yaml '$private_genomes_fasta';
|
|
27 #end if
|
2
|
28
|
|
29 cat config.yaml >$logfile;
|
|
30
|
12
|
31
|
10
|
32
|
13
|
33 if [ ! -f \$PANEX_PATH/panexplorer.sif ]; then wget -O \$PANEX_PATH/panexplorer.sif https://panexplorer.southgreen.fr/singularity/panexplorer.sif >>$logfile 2>&1;fi;
|
2
|
34
|
|
35
|
|
36
|
|
37 #if $software=="pgap"
|
|
38 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_PGAP_heatmap_upset_COG >snakefile;
|
|
39 #else if $software=="roary"
|
|
40 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_roary_heatmap_upset_COG >snakefile;
|
|
41 #else if $software=="orthofinder"
|
|
42 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_orthofinder_heatmap_upset >snakefile;
|
|
43 #else if $software=="cactus"
|
|
44 cp -rf \$PANEX_PATH/Snakemake_files/Snakefile_wget_cactus_heatmap_upset_COG2 snakefile;
|
|
45 #else if $software=="pggb"
|
|
46 sed "s/identity\=30/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_pggb_heatmap_upset_COG >snakefile;
|
|
47 #else
|
|
48 sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_panacota_heatmap_upset_COG >snakefile;
|
|
49 #end if
|
|
50
|
|
51 singularity exec \$PANEX_PATH/panexplorer.sif snakemake --cores 1 -s snakefile >>$logfile 2>&1;
|
|
52
|
|
53
|
|
54 cp -rf outputs/upsetr.svg $upset;
|
|
55 cp -rf outputs/pav_matrix.tsv $output;
|
|
56 cp -rf outputs/heatmap.svg.gz $heatmap;
|
|
57 cp -rf outputs/heatmap.svg.heatmap_plotly.html $heatmap_html;
|
|
58 cp -rf outputs/rarefaction_curves.txt $rarefaction_curves;
|
|
59 cp -rf outputs/rarefaction_curves.svg $rarefaction_curves_svg;
|
|
60 cp -rf outputs/heaps.tsv $heaps;
|
|
61 cp -rf outputs/heatmap.svg.complete.pdf.distance_matrix.txt $distance_matrix;
|
|
62 cp -rf outputs/heatmap.svg.complete.pdf.distance_matrix.hclust.newick $njtree;
|
|
63
|
|
64 #if $software!="orthofinder"
|
|
65 cp -rf outputs/GCskew.txt $gcfile;
|
|
66 cp -rf outputs/cog_output.txt $cogfile;
|
|
67 cp -rf outputs/cog_stats.txt $outcog_stat;
|
|
68 cp -rf outputs/cog_stats2.txt $outcog_stat2;
|
|
69 cp -rf outputs/cog_of_clusters.txt $outcog_clusters;
|
|
70 cp -rf outputs/genomes/genes.txt $genes;
|
|
71 cp -rf outputs/fastani.out.matrix.complete $fastani;
|
|
72 cp -rf outputs/fastani.out.svg $ani_svg;
|
|
73 #end if
|
|
74
|
|
75 #if $software=="pggb"
|
|
76 cp -rf outputs/all_genomes.vcf $vcf;
|
|
77 #else
|
|
78 touch $vcf;
|
|
79 #end if
|
|
80 ]]></command>
|
|
81
|
|
82
|
|
83 <inputs>
|
14
|
84 <conditional name="mode">
|
|
85 <param name = "mode" type="select" label="What is your inputs?">
|
|
86 <option value="accessions">Prokaryote genomes: List of Genbank assembly accessions (GCA)</option>
|
|
87 <option value="genbanks">Prokaryote genomes: Genbank files</option>
|
|
88 <option value="fasta">Eukaryote genomes: FASTA + GFF files</option>
|
|
89 </param>
|
|
90 <when value="accessions">
|
|
91 <param name="input" type="text" multiple="true" label="List of genbank identifiers" help="Coma separated list (ex: GCA_000007385.1,GCA_000010025.1,GCA_000019585.2)"/>
|
|
92 <param type="select" name="software" label="Choose the pan-genome software">
|
|
93 <option value="roary">Roary</option>
|
|
94 <option value="panacota">PanACoTA</option>
|
|
95 <option value="pggb">PanGenome Graph Builder (PGGB)</option>
|
|
96 </param>
|
|
97 </when>
|
|
98 <when value="genbanks">
|
|
99 <param name="private_genomes" type="data" format="zip" label="Zip of genbank files" optional="true"/>
|
|
100 <param type="select" name="software" label="Choose the pan-genome software">
|
|
101 <option value="roary">Roary</option>
|
|
102 <option value="panacota">PanACoTA</option>
|
|
103 <option value="pggb">PanGenome Graph Builder (PGGB)</option>
|
|
104 </param>
|
|
105 </when>
|
|
106 <when value="fasta">
|
|
107 <param name="private_genomes_fasta" type="data" format="zip" label="Zip of Fasta files" optional="true"/>
|
|
108 <param name="private_genomes" type="data" format="zip" label="Zip of GFF files" optional="true"/>
|
|
109 <param type="select" name="software" label="Choose the pan-genome software">
|
|
110 <option value="orthofinder">OrthoFinder</option>
|
|
111 <option value="cactus">Minigraph-Cactus</option>
|
|
112 <option value="pggb">PanGenome Graph Builder (PGGB)</option>
|
|
113 </param>
|
|
114 </when>
|
|
115 </conditional>
|
|
116
|
2
|
117 <param name="min_identity" type="text" value="80" label="Minimum percentage identity for BlastP" />
|
|
118 </inputs>
|
|
119
|
|
120 <outputs>
|
|
121 <data format="txt" name="output" label="Pangenome presence absence matrix"/>
|
|
122 <data format="newick" name="njtree" label="PanBased NJ tree"/>
|
|
123 <data format="txt" name="genes" label="Genes"/>
|
|
124 <data format="txt" name="cogfile" label="COG assignation"/>
|
|
125 <data format="txt" name="gcfile" label="GC_percent"/>
|
|
126 <data format="svg" name="upset" label="Upset Diagram"/>
|
|
127 <data format="svg" name="heatmap" label="Presence Absence Heatmap"/>
|
|
128 <data format="html" name="heatmap_html" label="Presence Absence Heatmap interactive"/>
|
|
129 <data format="tabular" name="outcog_stat" label="COG category counts"/>
|
|
130 <data format="tabular" name="outcog_stat2" label="COG category 2 counts"/>
|
|
131 <data format="tabular" name="outcog_clusters" label="COG of clusters"/>
|
|
132 <data format="tabular" name="fastani" label="ANI" />
|
|
133 <data format="svg" name="ani_svg" label="ANI heatmap" />
|
|
134 <data format="txt" name="rarefaction_curves" label="Rarefaction curves data"/>
|
|
135 <data format="svg" name="rarefaction_curves_svg" label="Rarefaction curves"/>
|
|
136 <data format="txt" name="heaps" label="Heaps law alpha"/>
|
|
137 <data format="txt" name="distance_matrix" label="Accessory based distance matrix"/>
|
|
138 <data format="vcf" name="vcf" label="VCF file"/>
|
|
139 <data format="txt" name="logfile" label="Logfile"/>
|
|
140 <data format="txt" name="roary_log" label="Roary Logfile"/>
|
|
141 </outputs>
|
14
|
142 <tests>
|
|
143 <test>
|
|
144 <param name="input" value="GCA_000007385.1,GCA_000010025.1,GCA_000019585.2"/>
|
|
145 <param name="min_identity" value="80"/>
|
|
146 <param name="software" value="panacota"/>
|
|
147 <param name="private_genomes" value=""/>
|
|
148 <param name="private_genomes_fasta" value=""/>
|
|
149 <output name="distance_matrix" value="Accessory_based_distance_matrix.txt"/>
|
|
150 <output name="fastani" value="ANI.txt"/>
|
|
151 </test>
|
|
152 </tests>
|
|
153 <help>
|
|
154
|
|
155 PanExplorer
|
|
156 =======
|
|
157
|
|
158 PanExplorer workflow is a snakemake worklow that can be run in the backend of the PanExplorer web application.
|
|
159
|
|
160 Homepage: https://panexplorer.southgreen.fr/
|
|
161
|
|
162 It allows to perform a pan-genome analysis using published and annotated bacteria genomes, using different tools that can be invoked: Roary, PGAP, PanACoTA.
|
|
163
|
|
164 Pangenome graph builder softwares have been implemented recently in the pipeline: Minigraph-Cactus and PGGB (PanGenome Graph Builder)
|
|
165
|
|
166 It provides a presence/absence matrix of genes, an UpsetR Diagram for synthetizing the matrix information and a COG assignation summary for each strain.
|
|
167
|
|
168 Please visit the GitHub page for the PanExplorer workflow at: https://github.com/SouthGreenPlatform/PanExplorer_workflow
|
|
169
|
|
170
|
|
171 Inputs
|
|
172 ------
|
|
173
|
|
174 Inputs can be provided as one of the following:
|
|
175
|
|
176 * **List of genbank assembly identifiers** comma-separated(ex: GCA_000007385.1,GCA_000010025.1,GCA_000019585.2)
|
|
177 * **Zip of genbank files** They must include the gene annotation and the complete sequence data
|
|
178 * **Zip of FASTA file of genomes + Zip of GFF annotation files**: In order to make the association between sequence and annotation, they must be named with the same basename as follows: genome1.fasta, genome1.gff, myspeciesXXX.fasta, myspeciesXXX.gff...
|
|
179
|
|
180
|
|
181
|
|
182 Outputs
|
|
183 ------
|
|
184
|
|
185 Among the outputs:
|
|
186
|
|
187 * **Pangenome presence absence matrix** Pangene presence/absence matrix indicating the PAV (Presence Absence Variation) of clustered genes.
|
|
188 * **PanBased NJ tree** Distance tree based on PAV data
|
|
189 * **Heaps law alpha** Estimating if a pan-genome is open or closed based on a Heaps law model.
|
|
190 * **Rarefaction curves** A rarefaction curve is the cumulative number of gene clusters we observe as more and more genomes are being considered
|
|
191 * **ANI** Average Nucleotide Identity between genomes
|
|
192 * **ANI heatmap** image as SVG
|
|
193 * **VCF file** If a pan-genome graph software has been selected, it provides a VCF of variations among all samples.
|
|
194
|
|
195
|
|
196
|
|
197 </help>
|
|
198 <citations>
|
|
199 <citation type="doi">10.1093/bioinformatics/btac504</citation>
|
|
200 </citations>
|
2
|
201
|
|
202 </tool>
|