Skip to content

Commit

Permalink
Merge pull request lh3#96 from jpfeil/master
Browse files Browse the repository at this point in the history
Add -M option to run-bwamem
  • Loading branch information
lh3 authored Jul 30, 2017
2 parents 4989736 + 9dfb970 commit 31bf49d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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("PSadskHo:R:x:t:", \%opts);
getopts("MPSadskHo:R:x:t:", \%opts);

die('
Usage: run-bwamem [options] <idxbase> <file1> [file2]
Expand All @@ -24,6 +24,7 @@ Options: -o STR prefix for output files [inferred from
-S for BAM input, don\'t shuffle
-s sort the output alignment (via samtools; requring more RAM)
-k keep temporary files generated by typeHLA
-M mark shorter split hits as secondary
Examples:
Expand Down Expand Up @@ -143,7 +144,7 @@ if ($is_bam) {
$cmd = "cat $ARGV[1] \\\n";
}

my $bwa_opts = "-p " . ($opts{t} > 1? "-t$opts{t} " : "") . (defined($opts{x})? "-x $opts{x} " : "") . (defined($opts{R})? "-R'$opts{R}' " : "");
my $bwa_opts = "-p " . ($opts{t} > 1? "-t$opts{t} " : "") . (defined($opts{x})? "-x $opts{x} " : "") . (defined($opts{R})? "-R'$opts{R}' " : "") . (defined($opts{M})? "-M " : "");
$bwa_opts .= join(" ", @RG_lines) . " -C " if @RG_lines > 0;

$cmd .= " | $root/trimadap 2> $prefix.log.trim \\\n" if defined($opts{a});
Expand Down

0 comments on commit 31bf49d

Please sign in to comment.