Package VCF.Mappers
Class GenoToByte
- java.lang.Object
-
- VCF.Mappers.GenoToByte
-
- All Implemented Interfaces:
ByteMapper
public class GenoToByte extends java.lang.Object implements ByteMapper
Maps from a text string representing a genotype to a byte representing a genotype
-
-
Constructor Summary
Constructors Constructor Description GenoToByte()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
map(java.lang.String s)
Maps from string representing a genotype to a byte representation
-
-
-
Method Detail
-
map
public byte map(java.lang.String s) throws VCFUnexpectedDataException
Maps from string representing a genotype to a byte representation- Specified by:
map
in interfaceByteMapper
- Parameters:
s
- The string- Returns:
- Byte representation
- Throws:
VCFUnexpectedDataException
- If there is unexpected data in the VCF
-
-