Skip to content

Commit

Permalink
Fix output file parameter for samtools sort
Browse files Browse the repository at this point in the history
samtools sort v0.7.15+ requires -o flag to specify the output file
  • Loading branch information
ramyala committed May 18, 2017
1 parent 5961611 commit 7a77cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwakit/run-bwamem
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ if (-f "$ARGV[0].alt" && !defined($opts{P})) {
}

my $t_sort = $opts{t} < 4? $opts{t} : 4;
$cmd .= defined($opts{s})? " | $root/samtools sort -@ $t_sort -m1G - $prefix.aln;\n" : " | $root/samtools view -1 - > $prefix.aln.bam;\n";
$cmd .= defined($opts{s})? " | $root/samtools sort -@ $t_sort -m1G - -o $prefix.aln.bam;\n" : " | $root/samtools view -1 - > $prefix.aln.bam;\n";

if ($has_hla && defined($opts{H}) && (!defined($opts{x}) || $opts{x} eq 'intractg')) {
$cmd .= "$root/run-HLA ". (defined($opts{x}) && $opts{x} eq 'intractg'? "-A " : "") . "$prefix.hla > $prefix.hla.top 2> $prefix.log.hla;\n";
Expand Down

0 comments on commit 7a77cc4

Please sign in to comment.