From: Suzanna L. <su...@us...> - 2004-05-25 19:51:36
|
Update of /cvsroot/gmod/apollo/src/java/apollo/analysis/filter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11585/apollo/analysis/filter Modified Files: AnalysisFilter.java Log Message: fixed the divide by zero bug that occurs if the hit sequence is an amino acid Index: AnalysisFilter.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/analysis/filter/AnalysisFilter.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** AnalysisFilter.java 25 May 2004 15:25:18 -0000 1.20 --- AnalysisFilter.java 25 May 2004 19:51:26 -0000 1.21 *************** *** 707,713 **** int overlap = -spacing; int genomic_overlap = getOverlap (prev_span, next_span); if (genomic_overlap > 0) { - if (prev_hit_span.getRefSequence().getResidueType() == SequenceI.AA) - genomic_overlap = genomic_overlap / 3; double ratio = overlap / genomic_overlap; is_sequential = (ratio > 0.8 && ratio <= 6.0); --- 707,714 ---- int overlap = -spacing; int genomic_overlap = getOverlap (prev_span, next_span); + if (genomic_overlap > 0 && + prev_hit_span.getRefSequence().getResidueType() == SequenceI.AA) + genomic_overlap = genomic_overlap / 3; if (genomic_overlap > 0) { double ratio = overlap / genomic_overlap; is_sequential = (ratio > 0.8 && ratio <= 6.0); |