public class ReadGroup
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
ReadGroup.Builder
RecordBuilder for ReadGroup instances.
|
Modifier and Type | Field and Description |
---|---|
String |
description
Deprecated.
|
String |
flowOrder
Deprecated.
|
String |
id
Deprecated.
|
String |
keySequence
Deprecated.
|
String |
library
Deprecated.
|
String |
platform
Deprecated.
|
String |
platformModel
Deprecated.
|
String |
platformUnit
Deprecated.
|
Integer |
predictedMedianInsertSize
Deprecated.
|
List<ProcessingStep> |
processingSteps
Deprecated.
|
Long |
runDateEpoch
Deprecated.
|
String |
sampleId
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
String |
sequencingCenter
Deprecated.
|
Constructor and Description |
---|
ReadGroup()
Default constructor.
|
ReadGroup(String id,
String sequencingCenter,
String description,
Long runDateEpoch,
String flowOrder,
String keySequence,
String library,
Integer predictedMedianInsertSize,
String platform,
String platformModel,
String platformUnit,
String sampleId,
List<ProcessingStep> processingSteps)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.avro.message.BinaryMessageDecoder<ReadGroup> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore . |
static ReadGroup |
fromByteBuffer(ByteBuffer b)
Deserializes a ReadGroup from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<ReadGroup> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getDescription()
Gets the value of the 'description' field.
|
String |
getFlowOrder()
Gets the value of the 'flowOrder' field.
|
String |
getId()
Gets the value of the 'id' field.
|
String |
getKeySequence()
Gets the value of the 'keySequence' field.
|
String |
getLibrary()
Gets the value of the 'library' field.
|
String |
getPlatform()
Gets the value of the 'platform' field.
|
String |
getPlatformModel()
Gets the value of the 'platformModel' field.
|
String |
getPlatformUnit()
Gets the value of the 'platformUnit' field.
|
Integer |
getPredictedMedianInsertSize()
Gets the value of the 'predictedMedianInsertSize' field.
|
List<ProcessingStep> |
getProcessingSteps()
Gets the value of the 'processingSteps' field.
|
Long |
getRunDateEpoch()
Gets the value of the 'runDateEpoch' field.
|
String |
getSampleId()
Gets the value of the 'sampleId' field.
|
org.apache.avro.Schema |
getSchema() |
String |
getSequencingCenter()
Gets the value of the 'sequencingCenter' field.
|
static ReadGroup.Builder |
newBuilder()
Creates a new ReadGroup RecordBuilder.
|
static ReadGroup.Builder |
newBuilder(ReadGroup.Builder other)
Creates a new ReadGroup RecordBuilder by copying an existing Builder.
|
static ReadGroup.Builder |
newBuilder(ReadGroup other)
Creates a new ReadGroup RecordBuilder by copying an existing ReadGroup instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setDescription(String value)
Sets the value of the 'description' field.
|
void |
setFlowOrder(String value)
Sets the value of the 'flowOrder' field.
|
void |
setId(String value)
Sets the value of the 'id' field.
|
void |
setKeySequence(String value)
Sets the value of the 'keySequence' field.
|
void |
setLibrary(String value)
Sets the value of the 'library' field.
|
void |
setPlatform(String value)
Sets the value of the 'platform' field.
|
void |
setPlatformModel(String value)
Sets the value of the 'platformModel' field.
|
void |
setPlatformUnit(String value)
Sets the value of the 'platformUnit' field.
|
void |
setPredictedMedianInsertSize(Integer value)
Sets the value of the 'predictedMedianInsertSize' field.
|
void |
setProcessingSteps(List<ProcessingStep> value)
Sets the value of the 'processingSteps' field.
|
void |
setRunDateEpoch(Long value)
Sets the value of the 'runDateEpoch' field.
|
void |
setSampleId(String value)
Sets the value of the 'sampleId' field.
|
void |
setSequencingCenter(String value)
Sets the value of the 'sequencingCenter' field.
|
ByteBuffer |
toByteBuffer()
Serializes this ReadGroup to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String id
@Deprecated public String sequencingCenter
@Deprecated public String description
@Deprecated public Long runDateEpoch
@Deprecated public String flowOrder
@Deprecated public String keySequence
@Deprecated public String library
@Deprecated public Integer predictedMedianInsertSize
@Deprecated public String platform
@Deprecated public String platformModel
@Deprecated public String platformUnit
@Deprecated public String sampleId
@Deprecated public List<ProcessingStep> processingSteps
public ReadGroup()
newBuilder()
.public ReadGroup(String id, String sequencingCenter, String description, Long runDateEpoch, String flowOrder, String keySequence, String library, Integer predictedMedianInsertSize, String platform, String platformModel, String platformUnit, String sampleId, List<ProcessingStep> processingSteps)
id
- Read group identifier. SAM tag ID for header record type @RG.sequencingCenter
- Name of sequencing center producing the reads in this read group. SAM tag
CN for header record type @RG.description
- Description for this read group. SAM tag DS for header record type @RG.runDateEpoch
- Date when the sequencing run for this read group was performed. SAM tag DT
for header record type @RG.flowOrder
- Flow order for the reads in this read group. The array of nucleotide bases
that correspond to the nucleotides used for each flow of each read. Multi-base
flows are encoded in IUPAC format, and non-nucleotide flows by various other
characters. SAM tag FO for header record type @RG.
Format (not enforced here): /\*|[ACMGRSVTWYHKDBN]+/keySequence
- The array of nucleotide bases that correspond to the key sequence of each
read in this read group. SAM tag KS for header record type @RG.library
- Library for this read group. SAM tag LB for header record type @RG.predictedMedianInsertSize
- Predicted median insert size for this read group. SAM tag PI for header
record type @RG.platform
- Platform or technology used to produce the reads in this read group. SAM
tag PL for header record type @RG.
Valid values from the SAM specification (not enforced here):
CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT, ONT, and PACBIO.platformModel
- Platform model for this read group, further details of the platform or
technology used. SAM tag PM for header record type @RG.platformUnit
- Platform unit (e.g. flowcell-barcode.lane for Illumina or slide for SOLiD)
for this read group. SAM tag PU for header record type @RG.sampleId
- Sample identifier for this read group. Use pool name where a pool is being
sequenced. Join with Sample.id for sample metadata. SAM tag SM for
header record type @RG.processingSteps
- Processing steps that have been applied to this read group. SAM tag PG for
header record type @RG.public static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<ReadGroup> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<ReadGroup> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore
.resolver
- a SchemaStore
used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOException
public static ReadGroup 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 String getId()
public void setId(String value)
value
- the value to set.public String getSequencingCenter()
public void setSequencingCenter(String value)
value
- the value to set.public String getDescription()
public void setDescription(String value)
value
- the value to set.public Long getRunDateEpoch()
public void setRunDateEpoch(Long value)
value
- the value to set.public String getFlowOrder()
public void setFlowOrder(String value)
value
- the value to set.public String getKeySequence()
public void setKeySequence(String value)
value
- the value to set.public String getLibrary()
public void setLibrary(String value)
value
- the value to set.public Integer getPredictedMedianInsertSize()
public void setPredictedMedianInsertSize(Integer value)
value
- the value to set.public String getPlatform()
public void setPlatform(String value)
value
- the value to set.public String getPlatformModel()
public void setPlatformModel(String value)
value
- the value to set.public String getPlatformUnit()
public void setPlatformUnit(String value)
value
- the value to set.public String getSampleId()
public void setSampleId(String value)
value
- the value to set.public List<ProcessingStep> getProcessingSteps()
public void setProcessingSteps(List<ProcessingStep> value)
value
- the value to set.public static ReadGroup.Builder newBuilder()
public static ReadGroup.Builder newBuilder(ReadGroup.Builder other)
other
- The existing builder to copy.public static ReadGroup.Builder newBuilder(ReadGroup 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.