Skip to content

Commit

Permalink
Fix naming scheme for sam without rg splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Jun 6, 2024
1 parent 6b5e707 commit 1a0a8d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ VariantInputStream make_variant_input_stream_from_sam_file(
// Scratch that. If we treat the file as a single sample anyway, we just use the file name
// as the sample name. Way more intuitive. Unfortunately, there is then the inconsistency
// in naming, but it's more in line with what e.g. the sync does if a header is provided.
assert( data.sample_names.size() <= 1 );
if( data.sample_names.size() == 1 ) {
assert( cur.sample_size() <= 1 );
if( cur.sample_size() == 1 ) {
data.sample_names = std::vector<std::string>{ data.source_name };
}
} else {
Expand Down

0 comments on commit 1a0a8d9

Please sign in to comment.