Skip to content

Commit

Permalink
version 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Axtell committed Jul 11, 2018
1 parent 3503a34 commit 451cf29
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
44 changes: 19 additions & 25 deletions CleaveLand4.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Getopt::Std;
use Math::CDF 'pbinom';

my $version_number = "4.4";
my $version_number = "4.5";
my $help = help_message($version_number);

# if there are no arguments, return the help message and quit
Expand Down Expand Up @@ -360,40 +360,34 @@ sub check_bowtie_version {
unless($opt_q) {
print STDERR "\tbowtie: ";
}
(open(BTV, "bowtie --version |")) || return 0;
open(BTV, "which bowtie |");
my $vline = <BTV>;
close BTV;
my $version;
if($vline =~ /^bowtie version (\S+)/) {
$version = $1;
if(($version =~ /^0\.12/) or ($version =~ /^1\./)) {
unless($opt_q) {
print STDERR "PASS version $version\n";
}
return 1;
} else {
return 0;
}
unless($vline) {
return 0;
}
if($vline =~ /bowtie$/) {
print STDERR "PASS: $vline";
return 1;
} else {
return 0;
}
# should never be here
return 0;
}

sub check_bowtie_build_version {
unless($opt_q) {
print STDERR "\tbowtie-build: ";
}
(open(BBV, "bowtie-build --version |")) || return 0;
my $vline = <BBV>;
close BBV;
if($vline =~ /^bowtie-build version (\S+)/) {
unless($opt_q) {
print STDERR "PASS version $1\n";
}
open(BTV, "which bowtie-build |");
my $vline = <BTV>;
close BTV;
unless($vline) {
return 0;
}
if($vline =~ /bowtie-build$/) {
print STDERR "PASS: $vline";
return 1;
} else {
} else {
return 0;
}
}
Expand Down Expand Up @@ -1217,7 +1211,7 @@ =head1 LICENSE
CleaveLand4.pl
Copyright (c) 2013 Michael J. Axtell
Copyright (c) 2013-2018 Michael J. Axtell
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -1242,7 +1236,7 @@ =head1 AUTHOR
=head1 VERSION
4.3 : November 7, 2013
4.5 : July 11, 2018
=head1 INSTALL
Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LICENSE
CleaveLand4.pl

Copyright (c) 2013 Michael J. Axtell
Copyright (c) 2013-2018 Michael J. Axtell

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Expand All @@ -24,7 +24,7 @@ AUTHOR
Michael J. Axtell, Penn State University, [email protected]

VERSION
4.3 : November 7, 2013
4.5 : July 11, 2018

INSTALL
Dependencies - Required Perl Modules
Expand Down

0 comments on commit 451cf29

Please sign in to comment.