X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FComparison.java;fp=src%2Fjalview%2Futil%2FComparison.java;h=e9ff931fe2db8b5bdb0fddf12ad1120d005feaa7;hb=e7205ce1559cfce568839e1168ab522f0744adb6;hp=9fea705bade9be1b2442d357808c7f8292a986c9;hpb=3bf2b5ea57b1d77d6e2e7adc11a50387e5376dc0;p=jalview.git diff --git a/src/jalview/util/Comparison.java b/src/jalview/util/Comparison.java index 9fea705..e9ff931 100644 --- a/src/jalview/util/Comparison.java +++ b/src/jalview/util/Comparison.java @@ -337,9 +337,9 @@ public class Comparison // a long sequence. // check for at least 55% nucleotide, and nucleotide and ambiguity codes // (including N) must make up 95% - return ntCount * 100 > NUCLEOTIDE_COUNT_PERCENT * allCount + return ntCount * 100 >= NUCLEOTIDE_COUNT_PERCENT * allCount && 100 * (ntCount + nCount - + ntaCount) > NUCLEOTIDE_COUNT_LONG_SEQUENCE_AMBIGUITY_PERCENT + + ntaCount) >= NUCLEOTIDE_COUNT_LONG_SEQUENCE_AMBIGUITY_PERCENT * allCount; } else if (allCount > NUCLEOTIDE_COUNT_VERY_SHORT_SEQUENCE) @@ -347,7 +347,7 @@ public class Comparison // a short sequence. // check if a short sequence is at least 55% nucleotide and the rest of // the symbols are all X or all N - if (ntCount * 100 > NUCLEOTIDE_COUNT_PERCENT * allCount + if (ntCount * 100 >= NUCLEOTIDE_COUNT_PERCENT * allCount && (nCount == aaCount || xCount == aaCount)) { return true;