Skip to content

Commit

Permalink
command -v fix ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Pombert-JF committed Dec 21, 2021
1 parent ab7f680 commit 3cad3ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Homology_search/run_GESAMT.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/perl
## Pombert Lab 2020
my $version = '0.5e';
my $version = '0.5f';
my $name = 'run_GESAMT.pl';
my $updated = '2021-09-11';
my $updated = '2021-12-21';

use strict;
use warnings;
Expand Down Expand Up @@ -87,7 +87,7 @@
print LOG "Started on: $start\n";

## Program check
my $prog = `command -v gesamt`;
my $prog = `echo \$(command -v gesamt)`;
chomp $prog;
if ($prog eq ''){
die "\nERROR: Cannot find gesamt. Please install GESAMT in your path\n\n";
Expand Down
10 changes: 5 additions & 5 deletions create_3DFI_db.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/perl
## Pombert Lab, Illinois Tech, 2021
my $name = 'create_3DFI_db.pl';
my $version = '0.4';
my $updated = '2021-11-23';
my $version = '0.4a';
my $updated = '2021-12-21';

use strict;
use warnings;
Expand Down Expand Up @@ -129,7 +129,7 @@
# Checking for aria2, unpigz and gesamt

# Aria2
my $aria2 = `command -v aria2c`;
my $aria2 = `echo \$(command -v aria2c)`;
chomp $aria2;
if ($aria2 eq ''){
print "[E] aria2c not found in the \$PATH. Please check if aria2 is installed\n";
Expand All @@ -140,13 +140,13 @@

# Pigz
my $decompression_tool = 'gunzip';
my $unpigz = `command -v unpigz`;
my $unpigz = `echo \$(command -v unpigz)`;
chomp $unpigz;
unless ($unpigz eq ''){ $decompression_tool = 'unpigz'; }

# GESAMT
if ($make_gesamt or $update_gesamt){
my $gesamt_prog = `command -v gesamt`;
my $gesamt_prog = `echo \$(command -v gesamt)`;
chomp $gesamt_prog;
if ($gesamt_prog eq ''){
print "[E] Cannot find gesamt but --make_gesamt/--update_gesamt was requested. Please install GESAMT in your \$PATH\n\n";
Expand Down
10 changes: 5 additions & 5 deletions run_3DFI.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/perl
## Pombert Lab, Illinois Tech, 2021
my $name = 'run_3DFI.pl';
my $version = '0.4.1';
my $updated = '2021-09-27';
my $version = '0.4b';
my $updated = '2021-12-21';

use strict;
use warnings;
Expand Down Expand Up @@ -207,7 +207,7 @@
$pred = lc($pred);

if ($pred eq 'raptorx'){
my $check_modeller = `command -v $modeller`;
my $check_modeller = `echo \$(command -v $modeller)`;
chomp $check_modeller;
unless ($check_modeller =~ /$modeller/){
print "\n[E] Cannot find MODELLER version: $modeller in your \$PATH. Please check if MODELLER is installed.\n\n";
Expand All @@ -218,14 +218,14 @@
}

unless ($tdo){
my $gesamt_check = `command -v gesamt`;
my $gesamt_check = `echo \$(command -v gesamt)`;
chomp $gesamt_check;
if ($gesamt_check eq ''){
print "\n[E]: Cannot find gesamt. Please install GESAMT in your \$PATH. Exiting..\n\n";
exit;
}

my $chimerax_check = `command -v chimerax`;
my $chimerax_check = `echo \$(command -v chimerax)`;
chomp $chimerax_check;
if ($chimerax_check eq ''){
print "\n[E]: Cannot find chimerax. Please install ChimeraX in your \$PATH. Exiting..\n\n";
Expand Down
4 changes: 2 additions & 2 deletions setup_3DFI.pl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/perl
## Pombert Lab, Illinois Tech, 2021
my $name = 'setup_3DFI.pl';
my $version = '0.5a';
my $updated = '2021-09-23';
my $version = '0.5b';
my $updated = '2021-12-21';

use strict;
use warnings;
Expand Down

0 comments on commit 3cad3ee

Please sign in to comment.