You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gencore.cpp
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -196,8 +196,18 @@ void Gencore::consensus(){
196
196
int count = 0;
197
197
int lastTid = -1;
198
198
int lastPos = -1;
199
+
bool hasPE = false;
199
200
while ((r = sam_read1(in, mBamHeader, b)) >= 0) {
200
201
mPreStats->addRead(b);
202
+
count++;
203
+
if(count < 1000) {
204
+
if(b->core.mtid >= 0)
205
+
hasPE = true;
206
+
}
207
+
if(count == 1000 && hasPE == false) {
208
+
cerr << "WARNING: seems that the input data is single-end, gencore will not make consensus read and remove duplication for SE data since grouping by coordination will be inaccurate." << endl << endl;
0 commit comments