public class DNAAmbPack extends Object implements Packing, Serializable
Constructor and Description |
---|
DNAAmbPack() |
Modifier and Type | Method and Description |
---|---|
FiniteAlphabet |
getAlphabet()
The FiniteAlphabet this packing is for.
|
boolean |
handlesAmbiguity()
Flag to state if ambiguities are stored.
|
byte |
pack(Symbol sym)
Return a byte representing the packing of a symbol.
|
Symbol |
unpack(byte b)
Return the symbol for a packing.
|
byte |
wordSize()
The number of bits required to pack a symbol.
|
public DNAAmbPack()
public FiniteAlphabet getAlphabet()
Packing
getAlphabet
in interface Packing
public byte pack(Symbol sym)
Packing
Return a byte representing the packing of a symbol. The bits will be from 1 >> 0 through to 1 >> (wordSize - 1).
public Symbol unpack(byte b)
Packing
Return the symbol for a packing.
public byte wordSize()
Packing
The number of bits required to pack a symbol.
public boolean handlesAmbiguity()
Packing
Flag to state if ambiguities are stored.
Packings are free to either store ambiguity information or to discard it (presumably converting all ambiguities to a standard AtomicSymbol and then packing that). You can check wether ambiguities are handled by calling this method.
handlesAmbiguity
in interface Packing
Copyright © 2014 BioJava. All rights reserved.