Skip to content

Commit

Permalink
modified: src/AlignmentProfile.cpp
Browse files Browse the repository at this point in the history
	modified:   src/ReadAlignment.cpp
	modified:   src/VariantCalling.cpp
  • Loading branch information
hsinnan75 committed Oct 7, 2019
1 parent df12fab commit fb076cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/AlignmentProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void UpdateProfile(ReadItem_t* read, vector<AlnCan_t>& AlnCanVec)
//if (bSomatic && iter->PairedAlnCanIdx == -1) continue;

if (iter->orientation) gPos = iter->FragPairVec.begin()->gPos;
else gPos = TwoGenomeSize - 1 - iter->FragPairVec.begin()->gPos;
else gPos = TwoGenomeSize - (iter->FragPairVec.begin()->gPos + iter->FragPairVec.begin()->gLen);
if (MappingRecordArr[gPos].readCount < iMaxDuplicate) MappingRecordArr[gPos].readCount++;
else continue;

Expand Down
3 changes: 3 additions & 0 deletions src/ReadAlignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ bool ProduceReadAlignment(ReadItem_t& read)
// {
// //Display alignments
// //pthread_mutex_lock(&Lock);
// if (iter->orientation) printf("StartPos=%lld\n", iter->FragPairVec.begin()->gPos);
// else printf("StartPos=%lld\n", TwoGenomeSize - (iter->FragPairVec.begin()->gPos + iter->FragPairVec.begin()->gLen));

// printf("read: %s, score=%d (%d/%d) len=%d, PairedIdx=%d\n\n", read.header, iter->score, read.AlnSummary.score, read.AlnSummary.sub_score, read.rlen, iter->PairedAlnCanIdx);
// ShowSimplePairInfo(iter->FragPairVec);
// //pthread_mutex_unlock(&Lock);
Expand Down
2 changes: 1 addition & 1 deletion src/VariantCalling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ void *IdentifyVariants(void *arg)

for (; gPos < end; gPos++)
{
if ((ref_base = nst_nt4_table[(unsigned short)RefSequence[gPos]]) < 4)
if ((ref_base = nst_nt4_table[(unsigned short)RefSequence[gPos]]) != 4)
{
bNormal = true; cov = GetProfileColumnSize(MappingRecordArr[gPos]);
//if (bSomatic && (MappingRecordArr[gPos].multi_hit > (int)(cov*0.05))) continue;
Expand Down

0 comments on commit fb076cf

Please sign in to comment.