Skip to content

Commit c07926f

Browse files
htslib_wrapper: in the general mapping format changed the parsing criteria for the genomic region to ignore whether or not the mapping is primary. If the parsing can be done, it should. The client can decide whether or not to consider if it is primary
1 parent eeaec60 commit c07926f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

htslib_wrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ SAMReader::get_SAMRecord_general(const string &str, SAMRecord &samr) {
417417
samr.seg_len = seg_len;
418418
samr.mr.r.set_name(name);
419419

420-
if (samr.is_primary && samr.is_mapped) {
420+
if (samr.is_mapped) {
421421
samr.mr.r.set_chrom(chrom);
422422
samr.mr.r.set_start(start - 1);
423423
samr.mr.r.set_score(0);

0 commit comments

Comments
 (0)