public class Genotype
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
void |
addData(java.lang.String value) |
Add data to the genotype.
|
Genotype |
copy() |
Create a copy of the genotype
|
java.lang.String |
getData() |
Get all the data associated with this genotype
|
java.lang.String |
getData(java.lang.String name) |
Get a specified piece of data for this genotype.
|
PositionMeta |
getPositionMeta() |
Get the position metadata for the position associated with this genotype
|
java.lang.String |
getSampleName() |
Get the sample name for the name associated with this genotype
|
void |
removeData(java.lang.String name) |
Remove data for the given format.
|
void |
replaceData(java.lang.String name,
java.lang.String value) |
Change a particular piece of data associated with the genotype
|
java.lang.String |
toString() |
public PositionMeta getPositionMeta()
public java.lang.String getSampleName()
public java.lang.String getData()
public java.lang.String getData(java.lang.String name) throws VCFNoDataException
name
- The format of the data to be retrieved (as a string)VCFNoDataException
- If there is a no data for the
requested formatpublic void replaceData(java.lang.String name, java.lang.String value) throws VCFNoDataException
name
- The format of the data to be changed (as a string)value
- The new valueVCFNoDataException
- If there is a no data for the
requested formatpublic void addData(java.lang.String value)
value
- The value to addpublic void removeData(java.lang.String name) throws VCFNoDataException
name
- The name of the format data to removeVCFNoDataException
- If there is no data field with that namepublic java.lang.String toString()
toString
in class java.lang.Object
public Genotype copy()