Skip to content

Commit

Permalink
option to skip ALT
Browse files Browse the repository at this point in the history
  • Loading branch information
lh3 committed Mar 16, 2016
1 parent 8366203 commit 2c078eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bwakit/run-bwamem
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use Getopt::Std;

my %opts = (t=>1);
getopts("SadskHo:R:x:t:", \%opts);
getopts("PSadskHo:R:x:t:", \%opts);

die('
Usage: run-bwamem [options] <idxbase> <file1> [file2]
Expand Down Expand Up @@ -151,7 +151,7 @@ $cmd .= " | $root/bwa mem $bwa_opts$ARGV[0] - 2> $prefix.log.bwamem \\\n";
$cmd .= " | $root/samblaster 2> $prefix.log.dedup \\\n" if defined($opts{d});

my $has_hla = 0;
if (-f "$ARGV[0].alt") {
if (-f "$ARGV[0].alt" && !defined($opts{P})) {
my $fh;
open($fh, "$ARGV[0].alt") || die;
while (<$fh>) {
Expand Down

0 comments on commit 2c078eb

Please sign in to comment.