Skip to content

Commit

Permalink
Smaller change in alignment processing
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzsedlazeck committed Feb 16, 2017
1 parent 06d6073 commit 831b8a7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Alignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,21 +804,16 @@ double Alignment::get_scrore_ratio() {
if (subscore == 0) {
subscore = 1;
}

//cout<<'\t'<<score<<" "<<subscore<<endl;
return (double) score / (double) subscore;
}
/*else{
cout<<"READ: "<<this->getName()<<" ERROR!"<<std::endl;
}*/
return -1;
}
bool Alignment::get_is_save() {
string sa;

double score = get_scrore_ratio(); //TODO should I use this again for bwa?

return !((al->GetTag("XA", sa) && !sa.empty()) || (al->GetTag("XT", sa) && !sa.empty())); //|| (score == -1 || score > Parameter::Instance()->score_treshold)); //TODO: 7.5
return !((al->GetTag("XA", sa) && !sa.empty()) || (al->GetTag("XT", sa) && !sa.empty())) && (score == -1 || score > Parameter::Instance()->score_treshold); //|| //TODO: 7.5
}

std::vector<CigarOp> Alignment::translate_cigar(std::string cigar) {
Expand Down

0 comments on commit 831b8a7

Please sign in to comment.