Skip to content

Commit

Permalink
Added warning for unsupported sorting on merging a large number of files
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermann Romanek committed Nov 11, 2024
1 parent 582d694 commit ecd8cbd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sniffles/sniffles
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,15 @@ def Sniffles2_Main(processes: list[parallel.SnifflesWorker]):
from sniffles.result import CombineResultTmpFile
result_class = CombineResultTmpFile

if config.sort:
log.warning(
f'''Sniffles currently does not support sorting on a number of input files exceeding --combine-max-inmemory-results'''
f''' (currently set to {config.combine_max_inmemory_results}). Unsorted calls will be written to '''
f'''result-{config.run_id}-*-unsorted.part.vcf. Please use either --no-sort or increase the number of in-memory results.'''
)
if config.vcf_output_bgz:
util.fatal_error_main('BGZ files require sorting, and thus are currently not supported for the given number of input files.')

for contig_str, contig_length in contig_lengths:
task = parallel.CombineTask(
id=task_id,
Expand Down

0 comments on commit ecd8cbd

Please sign in to comment.