Package org.snpeff.util
Class IubString
java.lang.Object
org.snpeff.util.IubString
Find all bases combinations from a string containing IUB codes
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intHow many IUB bases are in this string?static booleanDoes the string have ANY IUB base?static booleanDoes the string have at most 'MAX_IUB_BASES' IUB bases?booleanhasNext()static booleanisUIB(char base) iterator()static char[]iub2bases(char alt) Convert a single IUB code to the corresponding bases IUB codes: M=A/C, R=A/G, W=A/T, S=C/G, Y=C/T, K=G/T and N=A/C/G/Tnext()voidremove()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
MAX_IUB_BASES
public static final int MAX_IUB_BASES- See Also:
-
-
Constructor Details
-
IubString
-
-
Method Details
-
countIUB
How many IUB bases are in this string? -
hasIUB
Does the string have ANY IUB base? -
hasIUBMax
Does the string have at most 'MAX_IUB_BASES' IUB bases? -
isUIB
public static boolean isUIB(char base) -
iub2bases
public static char[] iub2bases(char alt) Convert a single IUB code to the corresponding bases IUB codes: M=A/C, R=A/G, W=A/T, S=C/G, Y=C/T, K=G/T and N=A/C/G/T -
hasNext
public boolean hasNext() -
iterator
-
next
-
remove
public void remove()
-