org.utgenome.gwt.utgb.client.bio
Class ACGTEncoder
java.lang.Object
org.utgenome.gwt.utgb.client.bio.ACGTEncoder
public class ACGTEncoder
- extends Object
Nucleotide ACGT <-> 2bit code conversion utility
- Author:
- leo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACGTEncoder
public ACGTEncoder()
to2bitCode
public static byte to2bitCode(char base)
toBase
public static char toBase(int code)
toKmerInt
public static int toKmerInt(int K,
String acgt)
- Return the k-mer interger of the given ACGT sequence
- Parameters:
K
- acgt
-
- Returns:
- k-mer integer of the sequence, or -1 when N or the other invalid characters are contained in the sequence
toString
public static String toString(int kmerInt,
int K)
Copyright © 2007-2012 utgenome.org. All Rights Reserved.