Skip to content

Commit

Permalink
ignore ref bases other than A/T/C/G
Browse files Browse the repository at this point in the history
  • Loading branch information
sfchen committed Aug 20, 2018
1 parent 6428fd4 commit 592c8e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,9 @@ int Cluster::makeConsensus(vector<bam1_t* >& reads, bam1_t* out, vector<char*>&
refbase = refdata[refpos];
}

if(refbase!='A' && refbase!='T' && refbase!='C' && refbase!='G')
refbase = 0;

// the secondary base is a single base
if(secNum ==1){
// low quality secondary
Expand Down
2 changes: 1 addition & 1 deletion src/common.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef COMMON_H
#define COMMON_H

#define VERSION_NUMBER "0.5.0"
#define VERSION_NUMBER "0.6.0"

#define _DEBUG false

Expand Down

0 comments on commit 592c8e0

Please sign in to comment.