Skip to content

Commit

Permalink
ensure bai index is created
Browse files Browse the repository at this point in the history
  • Loading branch information
jemten committed May 2, 2023
1 parent fcb54cb commit 396b9bc
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/MIP/Recipes/Analysis/Samtools_merge.pm
Expand Up @@ -587,7 +587,6 @@ sub analysis_samtools_merge_panel {
output_format => q{bam},
referencefile_path => ${active_parameter_href}->{human_genome_reference},
thread_number => $core_number - 1,
write_index => 1,
}
);
say {$filehandle} $NEWLINE;
Expand All @@ -604,17 +603,17 @@ sub analysis_samtools_merge_panel {
}
);
say {$filehandle} $NEWLINE;

samtools_index(
{
bai_format => 1,
filehandle => $filehandle,
infile_path => $outfile_path,
}
);
say {$filehandle} $NEWLINE;
}

samtools_index(
{
bai_format => 1,
filehandle => $filehandle,
infile_path => $outfile_path,
}
);
say {$filehandle} $NEWLINE;

close $filehandle;

if ( $recipe{mode} == 1 ) {
Expand Down

0 comments on commit 396b9bc

Please sign in to comment.