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