Bugfix. isMismatch() was actually computing isMatch().
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1743 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
e28b45688c
commit
281a77c981
|
|
@ -73,7 +73,7 @@ public class NQSClusteredZScoreWalker extends LocusWalker<LocalMapType, int[][][
|
|||
}
|
||||
|
||||
public boolean isMismatch( SAMRecord read, int offset, ReferenceContext ref ) {
|
||||
return ((char) read.getReadBases()[offset]) == ref.getBase();
|
||||
return (Character.toUpperCase((char) read.getReadBases()[offset]) != ref.getBase());
|
||||
}
|
||||
|
||||
public int getQScoreAsInt( SAMRecord read, int offset ) {
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ public class NQSCovariantByCountsWalker extends LocusWalker< LocalMapType, int[]
|
|||
}
|
||||
|
||||
public boolean isMismatch( SAMRecord read, int offset, ReferenceContext ref ) {
|
||||
return ( ((char)read.getReadBases()[offset]) == ref.getBase() );
|
||||
return ( Character.toUpperCase((char)read.getReadBases()[offset]) != ref.getBase() );
|
||||
}
|
||||
|
||||
public String header() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue