Skip to content

Commit

Permalink
+ Circos PNG/SVG subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Pombert-JF committed Apr 11, 2024
1 parent a4234ff commit d99bcef
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions run_syny.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Pombert lab, 2022

my $name = 'run_syny.pl';
my $version = '0.5.8c';
my $version = '0.5.8d';
my $updated = '2024-04-11';

use strict;
Expand Down Expand Up @@ -905,13 +905,17 @@

## Running Circos
my $circos_plot_dir = $outdir.'/CIRCOS_PLOTS';
my $circos_png_dir = $circos_plot_dir.'/PNG';
my $circos_svg_dir = $circos_plot_dir.'/SVG';

if ($circos){

print "\n##### Generating Circos plots\n";

unless (-d $circos_plot_dir){
mkdir ($circos_plot_dir,0755) or die "Can't create $circos_plot_dir: \n";
for my $dir ($circos_plot_dir, $circos_png_dir, $circos_svg_dir){
unless (-d $dir){
mkdir ($dir, 0755) or die "Can't create $dir: \n";
}
}

## Synteny inferred from protein clusters
Expand All @@ -926,6 +930,10 @@
circos_plot($affix);
}

# Moving to PNG/SVG subdirs
system ("mv $circos_plot_dir/*.png $circos_png_dir/");
system ("mv $circos_plot_dir/*.svg $circos_svg_dir/");

}

###################################################################################################
Expand Down

0 comments on commit d99bcef

Please sign in to comment.