# HG changeset patch # User dereeper # Date 1717069689 0 # Node ID 97e4e3e818b6ea10a46711d525935a11c6724e3f # Parent 032f6b3806a3c91a7ae5b4cb445698f067cef8bd Uploaded diff -r 032f6b3806a3 -r 97e4e3e818b6 PanExplorer.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PanExplorer.xml Thu May 30 11:48:09 2024 +0000 @@ -0,0 +1,111 @@ + + Bacterial pan-genome analysis + + + singularity + + + + $logfile; + +if [ -f \$PANEX_PATH/panexplorer.sif ]; then; else; wget -O \$PANEX_PATH/panexplorer.sif https://panexplorer.southgreen.fr/singularity/panexplorer.sif; fi; + + + +#if $software=="pgap" +sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_PGAP_heatmap_upset_COG >snakefile; +#else if $software=="roary" +sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_roary_heatmap_upset_COG >snakefile; +#else if $software=="orthofinder" +sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_orthofinder_heatmap_upset >snakefile; +#else if $software=="cactus" +cp -rf \$PANEX_PATH/Snakemake_files/Snakefile_wget_cactus_heatmap_upset_COG2 snakefile; +#else if $software=="pggb" +sed "s/identity\=30/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_pggb_heatmap_upset_COG >snakefile; +#else +sed "s/identity\=80/identity\=$min_identity/g" \$PANEX_PATH/Snakemake_files/Snakefile_wget_panacota_heatmap_upset_COG >snakefile; +#end if + +singularity exec \$PANEX_PATH/panexplorer.sif snakemake --cores 1 -s snakefile >>$logfile 2>&1; + + +cp -rf outputs/upsetr.svg $upset; +cp -rf outputs/pav_matrix.tsv $output; +cp -rf outputs/heatmap.svg.gz $heatmap; +cp -rf outputs/heatmap.svg.heatmap_plotly.html $heatmap_html; +cp -rf outputs/rarefaction_curves.txt $rarefaction_curves; +cp -rf outputs/rarefaction_curves.svg $rarefaction_curves_svg; +cp -rf outputs/heaps.tsv $heaps; +cp -rf outputs/heatmap.svg.complete.pdf.distance_matrix.txt $distance_matrix; +cp -rf outputs/heatmap.svg.complete.pdf.distance_matrix.hclust.newick $njtree; + +#if $software!="orthofinder" +cp -rf outputs/GCskew.txt $gcfile; +cp -rf outputs/cog_output.txt $cogfile; +cp -rf outputs/cog_stats.txt $outcog_stat; +cp -rf outputs/cog_stats2.txt $outcog_stat2; +cp -rf outputs/cog_of_clusters.txt $outcog_clusters; +cp -rf outputs/genomes/genes.txt $genes; +cp -rf outputs/fastani.out.matrix.complete $fastani; +cp -rf outputs/fastani.out.svg $ani_svg; +#end if + +#if $software=="pggb" +cp -rf outputs/all_genomes.vcf $vcf; +#else +touch $vcf; +#end if +]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +