Package htsjdk.samtools
Class SAMReadGroupRecord
java.lang.Object
htsjdk.samtools.AbstractSAMHeaderRecord
htsjdk.samtools.SAMReadGroupRecord
- All Implemented Interfaces:
Serializable
Header information about a read group.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
serialVersionUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equivalent
(SAMReadGroupRecord that) getId()
Returns the ID tag (or equivalent) for this header record.Returns the record in the SAM line-based text format.int
hashCode()
void
setBarcodes
(List<String> barcodes) Set the barcodes associated with this ReadGroup.void
setDescription
(String description) void
setFlowOrder
(String flowOrder) void
setKeySequence
(String keySequence) void
setLibrary
(String value) void
setPlatform
(String platform) void
setPlatformModel
(String platformModel) void
void
setPredictedMedianInsertSize
(Integer predictedMedianInsertSize) void
setProgramGroup
(String programGroup) void
setRunDate
(Date runDate) Converts to Iso8601Date if not already in that form.void
void
setSequencingCenter
(String center) Methods inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
attributesEqual, attributesHashCode, getAttribute, getAttributes, setAttribute, setAttribute, setAttribute, toString
-
Field Details
-
READ_GROUP_ID_TAG
- See Also:
-
SEQUENCING_CENTER_TAG
- See Also:
-
DESCRIPTION_TAG
- See Also:
-
DATE_RUN_PRODUCED_TAG
- See Also:
-
FLOW_ORDER_TAG
- See Also:
-
KEY_SEQUENCE_TAG
- See Also:
-
LIBRARY_TAG
- See Also:
-
PROGRAM_GROUP_TAG
- See Also:
-
PREDICTED_MEDIAN_INSERT_SIZE_TAG
- See Also:
-
PLATFORM_TAG
- See Also:
-
PLATFORM_MODEL_TAG
- See Also:
-
PLATFORM_UNIT_TAG
- See Also:
-
READ_GROUP_SAMPLE_TAG
- See Also:
-
BARCODE_TAG
- See Also:
-
STANDARD_TAGS
-
-
Constructor Details
-
SAMReadGroupRecord
-
SAMReadGroupRecord
-
-
Method Details
-
getId
Description copied from class:AbstractSAMHeaderRecord
Returns the ID tag (or equivalent) for this header record. The default implementation throws a SAMException to indicate "not implemented".- Overrides:
getId
in classAbstractSAMHeaderRecord
-
getReadGroupId
-
getSample
-
setSample
-
getLibrary
-
setLibrary
-
getPlatformUnit
-
setPlatformUnit
-
getPlatform
-
setPlatform
-
getBarcodes
- Returns:
- the List of barcodes associated with this read group or null
-
setBarcodes
Set the barcodes associated with this ReadGroup. Note that an input of null results in unsetting the attribute while an empty list is set as a tag with an empty value.- Parameters:
barcodes
- a list of barcodes to associate with this read group
-
getRunDate
-
getFlowOrder
-
setFlowOrder
-
getKeySequence
-
setKeySequence
-
setRunDate
Converts to Iso8601Date if not already in that form. -
getSequencingCenter
-
setSequencingCenter
-
getDescription
-
setDescription
-
getPredictedMedianInsertSize
-
setPredictedMedianInsertSize
-
getProgramGroup
-
setProgramGroup
-
getPlatformModel
-
setPlatformModel
-
equivalent
- Returns:
- true if this == that except for the read group ID, which is arbitrary
-
equals
-
hashCode
public int hashCode() -
getSAMString
Description copied from class:AbstractSAMHeaderRecord
Returns the record in the SAM line-based text format. Fields are separated by '\t' characters. The String is NOT terminated by '\n'.- Specified by:
getSAMString
in classAbstractSAMHeaderRecord
-