Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fixed bug where SamPairUtil.setMateInfo() would omit the MQ tag if on… #647
Conversation
|
@ktibbett Want to take a quick look at this? This will effect |
coveralls
commented
Jun 23, 2016
nh13
commented on an outdated diff
Jun 23, 2016
src/main/java/htsjdk/samtools/SamPairUtil.java
| @@ -246,12 +246,14 @@ else if (rec1.getReadUnmappedFlag() && rec2.getReadUnmappedFlag()) { | ||
| mapped.setMateUnmappedFlag(true); | ||
| // For the mapped read, set it's mateCigar to null, since the other read must be unmapped | ||
| mapped.setAttribute(SAMTag.MC.name(), null); | ||
| + mapped.setAttribute(SAMTag.MQ.name(), null); |
nh13
Contributor
|
yfarjoun
commented on an outdated diff
Jun 28, 2016
src/main/java/htsjdk/samtools/SamPairUtil.java
| mapped.setInferredInsertSize(0); | ||
| unmapped.setMateReferenceIndex(mapped.getReferenceIndex()); | ||
| unmapped.setMateAlignmentStart(mapped.getAlignmentStart()); | ||
| unmapped.setMateNegativeStrandFlag(mapped.getReadNegativeStrandFlag()); | ||
| unmapped.setMateUnmappedFlag(false); | ||
| + unmapped.setAttribute(SAMTag.MQ.name(), mapped.getMappingQuality()); | ||
| // For the unmapped read, set it's mateCigar to the mate's Cigar, since the mate must be mapped |
|
|
|
|
yfarjoun
was assigned
by droazen
Jun 28, 2016
|
Updates applied. @yfarjoun If we logged issues for everything that needed testing... we'd have a lot of issues |
coveralls
commented
Jun 28, 2016
|
|
tfenne
merged commit d683012
into
master
Jun 28, 2016
tfenne
deleted the
tf_fix_set_mate_info branch
Jun 28, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tfenne commentedJun 23, 2016
Description
Fix a small but annoying bug that was causing unmapped reads with mapped mates to get most mate information set except
MQwhich is set in all other cases.Checklist
…e read was mapped and the other unmapped.