annotate PanExplorer.xml @ 11:ae74fc0cb39c draft

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