public class VariantCallingAnnotations
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
VariantCallingAnnotations.Builder
RecordBuilder for VariantCallingAnnotations instances.
|
Modifier and Type | Field and Description |
---|---|
Map<String,String> |
attributes
Deprecated.
|
Float |
baseQRankSum
Deprecated.
|
String |
culprit
Deprecated.
|
Boolean |
downsampled
Deprecated.
|
Boolean |
filtersApplied
Deprecated.
|
List<String> |
filtersFailed
Deprecated.
|
Boolean |
filtersPassed
Deprecated.
|
Float |
fisherStrandBiasPValue
Deprecated.
|
List<Float> |
genotypePosteriors
Deprecated.
|
List<Float> |
genotypePriors
Deprecated.
|
Integer |
mapq0Reads
Deprecated.
|
Float |
mqRankSum
Deprecated.
|
Float |
readPositionRankSum
Deprecated.
|
Float |
rmsMapQ
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Float |
vqslod
Deprecated.
|
Constructor and Description |
---|
VariantCallingAnnotations()
Default constructor.
|
VariantCallingAnnotations(Boolean filtersApplied,
Boolean filtersPassed,
List<String> filtersFailed,
Boolean downsampled,
Float baseQRankSum,
Float fisherStrandBiasPValue,
Float rmsMapQ,
Integer mapq0Reads,
Float mqRankSum,
Float readPositionRankSum,
List<Float> genotypePriors,
List<Float> genotypePosteriors,
Float vqslod,
String culprit,
Map<String,String> attributes)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.message.BinaryMessageDecoder<VariantCallingAnnotations> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore . |
static VariantCallingAnnotations |
fromByteBuffer(ByteBuffer b)
Deserializes a VariantCallingAnnotations from a ByteBuffer.
|
Object |
get(int field$) |
Map<String,String> |
getAttributes()
Gets the value of the 'attributes' field.
|
Float |
getBaseQRankSum()
Gets the value of the 'baseQRankSum' field.
|
static org.apache.avro.Schema |
getClassSchema() |
String |
getCulprit()
Gets the value of the 'culprit' field.
|
static org.apache.avro.message.BinaryMessageDecoder<VariantCallingAnnotations> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Boolean |
getDownsampled()
Gets the value of the 'downsampled' field.
|
Boolean |
getFiltersApplied()
Gets the value of the 'filtersApplied' field.
|
List<String> |
getFiltersFailed()
Gets the value of the 'filtersFailed' field.
|
Boolean |
getFiltersPassed()
Gets the value of the 'filtersPassed' field.
|
Float |
getFisherStrandBiasPValue()
Gets the value of the 'fisherStrandBiasPValue' field.
|
List<Float> |
getGenotypePosteriors()
Gets the value of the 'genotypePosteriors' field.
|
List<Float> |
getGenotypePriors()
Gets the value of the 'genotypePriors' field.
|
Integer |
getMapq0Reads()
Gets the value of the 'mapq0Reads' field.
|
Float |
getMqRankSum()
Gets the value of the 'mqRankSum' field.
|
Float |
getReadPositionRankSum()
Gets the value of the 'readPositionRankSum' field.
|
Float |
getRmsMapQ()
Gets the value of the 'rmsMapQ' field.
|
org.apache.avro.Schema |
getSchema() |
Float |
getVqslod()
Gets the value of the 'vqslod' field.
|
static VariantCallingAnnotations.Builder |
newBuilder()
Creates a new VariantCallingAnnotations RecordBuilder.
|
static VariantCallingAnnotations.Builder |
newBuilder(VariantCallingAnnotations.Builder other)
Creates a new VariantCallingAnnotations RecordBuilder by copying an existing Builder.
|
static VariantCallingAnnotations.Builder |
newBuilder(VariantCallingAnnotations other)
Creates a new VariantCallingAnnotations RecordBuilder by copying an existing VariantCallingAnnotations instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setAttributes(Map<String,String> value)
Sets the value of the 'attributes' field.
|
void |
setBaseQRankSum(Float value)
Sets the value of the 'baseQRankSum' field.
|
void |
setCulprit(String value)
Sets the value of the 'culprit' field.
|
void |
setDownsampled(Boolean value)
Sets the value of the 'downsampled' field.
|
void |
setFiltersApplied(Boolean value)
Sets the value of the 'filtersApplied' field.
|
void |
setFiltersFailed(List<String> value)
Sets the value of the 'filtersFailed' field.
|
void |
setFiltersPassed(Boolean value)
Sets the value of the 'filtersPassed' field.
|
void |
setFisherStrandBiasPValue(Float value)
Sets the value of the 'fisherStrandBiasPValue' field.
|
void |
setGenotypePosteriors(List<Float> value)
Sets the value of the 'genotypePosteriors' field.
|
void |
setGenotypePriors(List<Float> value)
Sets the value of the 'genotypePriors' field.
|
void |
setMapq0Reads(Integer value)
Sets the value of the 'mapq0Reads' field.
|
void |
setMqRankSum(Float value)
Sets the value of the 'mqRankSum' field.
|
void |
setReadPositionRankSum(Float value)
Sets the value of the 'readPositionRankSum' field.
|
void |
setRmsMapQ(Float value)
Sets the value of the 'rmsMapQ' field.
|
void |
setVqslod(Float value)
Sets the value of the 'vqslod' field.
|
ByteBuffer |
toByteBuffer()
Serializes this VariantCallingAnnotations to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public Boolean filtersApplied
@Deprecated public Boolean filtersPassed
@Deprecated public List<String> filtersFailed
@Deprecated public Boolean downsampled
@Deprecated public Float baseQRankSum
@Deprecated public Float fisherStrandBiasPValue
@Deprecated public Float rmsMapQ
@Deprecated public Integer mapq0Reads
@Deprecated public Float mqRankSum
@Deprecated public Float readPositionRankSum
@Deprecated public List<Float> genotypePriors
@Deprecated public List<Float> genotypePosteriors
@Deprecated public Float vqslod
@Deprecated public String culprit
@Deprecated public Map<String,String> attributes
public VariantCallingAnnotations()
newBuilder()
.public VariantCallingAnnotations(Boolean filtersApplied, Boolean filtersPassed, List<String> filtersFailed, Boolean downsampled, Float baseQRankSum, Float fisherStrandBiasPValue, Float rmsMapQ, Integer mapq0Reads, Float mqRankSum, Float readPositionRankSum, List<Float> genotypePriors, List<Float> genotypePosteriors, Float vqslod, String culprit, Map<String,String> attributes)
filtersApplied
- True if filters were applied for this genotype call. FORMAT field "FT" any value other
than the missing value.filtersPassed
- True if all filters for this genotype call passed. FORMAT field "FT" value PASS.filtersFailed
- Zero or more filters that failed for this genotype call from FORMAT field "FT".downsampled
- True if the reads covering this site were randomly downsampled to reduce coverage.baseQRankSum
- The Wilcoxon rank-sum test statistic of the base quality scores. The base quality
scores are separated by whether or not the base supports the reference or the
alternate allele.fisherStrandBiasPValue
- The Fisher's exact test score for the strand bias of the reference and alternate
alleles. Stored as a phred scaled probability. Thus, if:
a = The number of positive strand reads covering the reference allele
b = The number of positive strand reads covering the alternate allele
c = The number of negative strand reads covering the reference allele
d = The number of negative strand reads covering the alternate allele
This value takes the score:
-10 log((a + b)! * (c + d)! * (a + c)! * (b + d)! / (a! b! c! d! n!)
Where n = a + b + c + d.rmsMapQ
- The root mean square of the mapping qualities of reads covering this site.mapq0Reads
- The number of reads at this site with mapping quality equal to 0.mqRankSum
- The Wilcoxon rank-sum test statistic of the mapping quality scores. The mapping
quality scores are separated by whether or not the read supported the reference or the
alternate allele.readPositionRankSum
- The Wilcoxon rank-sum test statistic of the position of the base in the read at this site.
The positions are separated by whether or not the base supports the reference or the
alternate allele.genotypePriors
- The log scale prior probabilities of the various genotype states at this site.
The number of elements in this array should be equal to the ploidy at this
site, plus 1.genotypePosteriors
- The log scaled posterior probabilities of the various genotype states at this site,
in this sample. The number of elements in this array should be equal to the ploidy at
this site, plus 1.vqslod
- The log-odds ratio of being a true vs. false variant under a trained statistical model.
This model can be a multivariate Gaussian mixture, support vector machine, etc.culprit
- If known, the feature that contributed the most to this variant being classified as
a false variant.attributes
- Additional feature info that doesn't fit into the standard fields above.
They are all encoded as (string, string) key-value pairs.public static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<VariantCallingAnnotations> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<VariantCallingAnnotations> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore
.resolver
- a SchemaStore
used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException
public static VariantCallingAnnotations fromByteBuffer(ByteBuffer b) throws IOException
IOException
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public Boolean getFiltersApplied()
public void setFiltersApplied(Boolean value)
value
- the value to set.public Boolean getFiltersPassed()
public void setFiltersPassed(Boolean value)
value
- the value to set.public List<String> getFiltersFailed()
public void setFiltersFailed(List<String> value)
value
- the value to set.public Boolean getDownsampled()
public void setDownsampled(Boolean value)
value
- the value to set.public Float getBaseQRankSum()
public void setBaseQRankSum(Float value)
value
- the value to set.public Float getFisherStrandBiasPValue()
public void setFisherStrandBiasPValue(Float value)
value
- the value to set.public Float getRmsMapQ()
public void setRmsMapQ(Float value)
value
- the value to set.public Integer getMapq0Reads()
public void setMapq0Reads(Integer value)
value
- the value to set.public Float getMqRankSum()
public void setMqRankSum(Float value)
value
- the value to set.public Float getReadPositionRankSum()
public void setReadPositionRankSum(Float value)
value
- the value to set.public List<Float> getGenotypePriors()
public void setGenotypePriors(List<Float> value)
value
- the value to set.public List<Float> getGenotypePosteriors()
public void setGenotypePosteriors(List<Float> value)
value
- the value to set.public Float getVqslod()
public void setVqslod(Float value)
value
- the value to set.public String getCulprit()
public void setCulprit(String value)
value
- the value to set.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> value)
value
- the value to set.public static VariantCallingAnnotations.Builder newBuilder()
public static VariantCallingAnnotations.Builder newBuilder(VariantCallingAnnotations.Builder other)
other
- The existing builder to copy.public static VariantCallingAnnotations.Builder newBuilder(VariantCallingAnnotations other)
other
- The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
public void readExternal(ObjectInput in) throws IOException
readExternal
in interface Externalizable
readExternal
in class org.apache.avro.specific.SpecificRecordBase
IOException
Copyright © 2019. All rights reserved.