public class Format extends Metadata
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
static Boolean |
getGenotypeFieldValue(String value,
int alleleNumber)
Checks whether specified genotype contains particular allele
|
String |
getId() |
String |
getNumber() |
protected Pattern |
getPattern() |
FormatFieldType |
getType() |
List<? extends Serializable> |
getValue(String value)
Allows to extract field values from data lines
|
static boolean |
isFormat(String line) |
void |
setDescription(String description) |
void |
setId(String id) |
void |
setNumber(String number) |
void |
setType(FormatFieldType type) |
public Format(String line)
public String getId()
public void setId(String id)
public String getNumber()
public void setNumber(String number)
public FormatFieldType getType()
public void setType(FormatFieldType type)
public String getDescription()
public void setDescription(String description)
public static final Boolean getGenotypeFieldValue(String value, int alleleNumber)
value - Genotype format field value (e.g. 0/1 or 1|2)alleleNumber - VCF data line allele number (0 for reference allele, 1,2.. for alternates)null of value is malformedpublic List<? extends Serializable> getValue(String value)
value - Data line FORMAT value from samples' details specified for the fieldList of found values (see VCFv4.2 specification for more details)protected Pattern getPattern()
getPattern in class Metadatapublic static final boolean isFormat(String line)
Copyright © 2017. All rights reserved.