Fix minor mapping quality bug.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1973 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
21b1ece45d
commit
43c3ee61d5
|
|
@ -24,6 +24,9 @@ BWA::BWA(const char* ann_filename,
|
|||
bwts[1] = bwt_restore_bwt(reverse_bwt_filename);
|
||||
bwt_restore_sa(reverse_sa_filename, bwts[1]);
|
||||
load_default_options();
|
||||
|
||||
// initialize the bwase subsystem
|
||||
bwase_initialize();
|
||||
}
|
||||
|
||||
BWA::~BWA() {
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class AlignmentValidationWalker extends ReadWalker<Integer,Integer> {
|
|||
@Override
|
||||
public boolean filter(char[] ref, SAMRecord read) {
|
||||
return true;
|
||||
//return read.getReadName().contains("SL-XBC:1:76:604:397#0");
|
||||
//return read.getReadName().contains("SL-XBC:1:61:1719:1512#0");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -84,7 +84,7 @@ public class AlignmentValidationWalker extends ReadWalker<Integer,Integer> {
|
|||
matches &= (alignment.getCigar().equals(read.getCigar()));
|
||||
int mapQDelta = Math.abs(alignment.getMappingQuality()-read.getMappingQuality());
|
||||
maxMapQDelta = Math.max(mapQDelta,maxMapQDelta);
|
||||
//matches &= (alignment.getMappingQuality() == read.getMappingQuality());
|
||||
matches &= (alignment.getMappingQuality() == read.getMappingQuality());
|
||||
if(matches) break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue