Package org.snpsift.lang.expression
Class Field
java.lang.Object
org.snpsift.lang.expression.Expression
org.snpsift.lang.expression.Field
- Direct Known Subclasses:
FieldConstant,FieldSub
A field:
E.g.: 'DP', 'CHROM'
- Author:
- pablocingolani
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected intprotected org.snpeff.vcf.VcfInfoTypestatic final intstatic final intprotected org.snpeff.vcf.VcfHeaderInfoprotected org.snpeff.vcf.VcfHeaderInfo.VcfInfoNumberFields inherited from class org.snpsift.lang.expression.Expression
debug, negated, operator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval(org.snpeff.vcf.VcfEntry vcfEntry) Evaluate expression using VcfEntryeval(org.snpeff.vcf.VcfGenotype vcfGenotype) Evaluate expression using genotypeprotected ObjectfieldHeaderNotFound(org.snpeff.vcf.VcfEntry vcfEntry) protected ObjectfieldNotFound(org.snpeff.vcf.VcfEntry vcfEntry) getFieldString(org.snpeff.vcf.VcfGenotype vcfGenotype) getName()org.snpeff.vcf.VcfInfoTypegetReturnType(org.snpeff.vcf.VcfGenotype vcfGenotype) protected intgetSampleNum(org.snpeff.vcf.VcfEntry vcfEntry, String name) protected ObjectgtFieldNotFound(org.snpeff.vcf.VcfGenotype vcfGenotype) indexStr(int index) Convert and index to a stringprotected booleanisSampleName(org.snpeff.vcf.VcfEntry vcfEntry, String name) protected booleanisSub()org.snpeff.vcf.VcfInfoTypereturnType(org.snpeff.vcf.VcfEntry vcfEntry) org.snpeff.vcf.VcfInfoTypereturnType(org.snpeff.vcf.VcfGenotype vcfGenotype) voidsetExceptionIfNotFound(boolean exceptionIfNotFound) toString()Methods inherited from class org.snpsift.lang.expression.Expression
setNegated
-
Field Details
-
TYPE_ALL
public static final int TYPE_ALL- See Also:
-
TYPE_ANY
public static final int TYPE_ANY- See Also:
-
name
-
returnType
protected org.snpeff.vcf.VcfInfoType returnType -
exceptionIfNotFound
protected boolean exceptionIfNotFound -
vcfInfo
protected org.snpeff.vcf.VcfHeaderInfo vcfInfo -
number
protected int number -
vcfInfoNumber
protected org.snpeff.vcf.VcfHeaderInfo.VcfInfoNumber vcfInfoNumber
-
-
Constructor Details
-
Field
-
-
Method Details
-
eval
Description copied from class:ExpressionEvaluate expression using VcfEntry- Specified by:
evalin classExpression
-
eval
Description copied from class:ExpressionEvaluate expression using genotype- Specified by:
evalin classExpression
-
fieldHeaderNotFound
-
fieldNotFound
-
getFieldString
-
getName
-
getReturnType
public org.snpeff.vcf.VcfInfoType getReturnType(org.snpeff.vcf.VcfGenotype vcfGenotype) -
getSampleNum
-
gtFieldNotFound
-
indexStr
Convert and index to a string -
isSampleName
-
isSub
protected boolean isSub() -
returnType
public org.snpeff.vcf.VcfInfoType returnType(org.snpeff.vcf.VcfEntry vcfEntry) -
returnType
public org.snpeff.vcf.VcfInfoType returnType(org.snpeff.vcf.VcfGenotype vcfGenotype) -
setExceptionIfNotFound
public void setExceptionIfNotFound(boolean exceptionIfNotFound) -
toString
-