public class TextCigarCodec extends Object
Constructor | Description |
---|---|
TextCigarCodec() |
Modifier and Type | Method | Description |
---|---|---|
static Cigar |
decode(String textCigar) |
Convert from String CIGAR representation to Cigar class representation.
|
static String |
encode(Cigar cigar) |
Convert from Cigar class representation to String.
|
public static String encode(Cigar cigar)
cigar
- in Cigar class formatpublic static Cigar decode(String textCigar)
textCigar
- CIGAR in String form ala SAM text file. "*" means empty CIGAR.RuntimeException
- if textCigar is invalid at the most basic level.