Skip to content

Commit

Permalink
improve $mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wangqinhu committed Sep 2, 2014
1 parent aba942f commit e7b5ba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tsRFinder.pl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
init();

# Global variables
my $mode = $option{m} || $config{"mode"} || "run";
my $mode = $option{m};
my $label = $option{l} || $config{"label"};
my $refseq = $option{g} || $config{"reference_genome"};
my $trna = $option{t} || $config{"reference_tRNA"};
Expand Down Expand Up @@ -97,7 +97,7 @@ sub init {
# Options
getopts("m:c:l:g:t:s:a:n:x:e:u:f:w:o:hv", \%option) or die "$!\n" . usage();

# Defualt mode: run
# Set defualt mode
unless ($option{m}) {
$option{m} = "run";
}
Expand Down Expand Up @@ -169,7 +169,7 @@ sub init {
# Graphics dependency: R
check_install("R");

# Indicating modes
# Check mode
if ($option{m} eq "debug") {
print_log("tsRFinder init success: Running in debug mode");
} else {
Expand Down

0 comments on commit e7b5ba0

Please sign in to comment.