]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/get_genome_seq
fixed minor bugs
[biopieces.git] / bp_bin / get_genome_seq
index b5ea5a70d73ed4c661693674d4ff713d383e5913..737469d4476aef7e0df6a1a13182d21815785362 100755 (executable)
@@ -68,7 +68,7 @@ if ( $options->{ "genome" } )
 
     map { $lookup_hash{ $_->[ 0 ] } = [ $_->[ 1 ], $_->[ 2 ] ] } @{ $index };
 
-    if ( exists $lookup_hash{ $options->{ "chr" } } and defined $options->{ "beg" } and ( defined $options->{ "end" } or defined $options->{ "len" } ) )
+    if ( defined $options->{ "chr" } and exists $lookup_hash{ $options->{ "chr" } } and defined $options->{ "beg" } and ( defined $options->{ "end" } or defined $options->{ "len" } ) )
     {
         ( $index_beg, $index_len ) = @{ $lookup_hash{ $options->{ "chr" } } };