MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / getPercentIdentity

Method getPercentIdentity

src/rnabloom/util/SeqUtils.java:164–175  ·  view source on GitHub ↗
(String a, String b)

Source from the content-addressed store, hash-verified

162 }
163
164 public static float getPercentIdentity(String a, String b) {
165 int aLen = a.length();
166 int bLen = b.length();
167
168 int d = getDistance(a, b, aLen, bLen);
169
170 if (aLen <= bLen) {
171 return ((float) (bLen - d))/(float)bLen;
172 }
173
174 return ((float) (aLen - d))/(float)aLen;
175 }
176
177 public static float getPercentIdentity(byte[] a, byte[] b) {
178 int aLen = a.length;

Callers 9

cutHairPinLoopMethod · 0.95
representedMethod · 0.80
correctErrorHelper2Method · 0.80
correctEdgeErrorsMethod · 0.80
correctInternalErrorsMethod · 0.80
correctErrorHelperMethod · 0.80
extendRightMethod · 0.80
extendLeftMethod · 0.80

Calls 1

getDistanceMethod · 0.95

Tested by

no test coverage detected