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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
serialVersionUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequivalent(SAMReadGroupRecord that) getId()Returns the ID tag (or equivalent) for this header record.Returns the record in the SAM line-based text format.inthashCode()voidsetBarcodes(List<String> barcodes) Set the barcodes associated with this ReadGroup.voidsetDescription(String description) voidsetFlowOrder(String flowOrder) voidsetKeySequence(String keySequence) voidsetLibrary(String value) voidsetPlatform(String platform) voidsetPlatformModel(String platformModel) voidvoidsetPredictedMedianInsertSize(Integer predictedMedianInsertSize) voidsetProgramGroup(String programGroup) voidsetRunDate(Date runDate) Converts to Iso8601Date if not already in that form.voidvoidsetSequencingCenter(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:AbstractSAMHeaderRecordReturns the ID tag (or equivalent) for this header record. The default implementation throws a SAMException to indicate "not implemented".- Overrides:
getIdin 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:AbstractSAMHeaderRecordReturns the record in the SAM line-based text format. Fields are separated by '\t' characters. The String is NOT terminated by '\n'.- Specified by:
getSAMStringin classAbstractSAMHeaderRecord
-