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

Method nucleotideArrayIndex

src/rnabloom/util/SeqUtils.java:298–313  ·  view source on GitHub ↗
(byte b)

Source from the content-addressed store, hash-verified

296 }
297
298 private static int nucleotideArrayIndex(byte b) {
299 switch(b) {
300 case CHAR_A_BYTE:
301 return 0;
302 case CHAR_C_BYTE:
303 return 1;
304 case CHAR_G_BYTE:
305 return 2;
306 case CHAR_T_BYTE:
307 return 3;
308 case CHAR_U_BYTE:
309 return 3;
310 default:
311 return -1;
312 }
313 }
314
315 private static int nucleotideArrayIndex(int c) {
316 switch(c) {

Callers 6

countNMethod · 0.95
isLowComplexity2Method · 0.95
isRepeatMethod · 0.95
isLowComplexityShortMethod · 0.95
isLowComplexity2NMethod · 0.95
isLowComplexityLongMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected