Package htsjdk.samtools
Class SAMProgramRecord
java.lang.Object
htsjdk.samtools.AbstractSAMHeaderRecord
htsjdk.samtools.SAMProgramRecord
- All Implemented Interfaces:
Serializable
In-memory representation of @PG SAM header record.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionSAMProgramRecord(String programGroupId) SAMProgramRecord(String id, SAMProgramRecord srcProgramRecord) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequivalent(SAMProgramRecord that) getId()Returns the ID tag (or equivalent) for this header record.Returns the record in the SAM line-based text format.inthashCode()voidsetCommandLine(String commandLine) voidvoidsetProgramName(String name) voidsetProgramVersion(String version) Methods inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
attributesEqual, attributesHashCode, getAttribute, getAttributes, setAttribute, setAttribute, setAttribute, toString
-
Field Details
-
PROGRAM_GROUP_ID_TAG
- See Also:
-
PROGRAM_NAME_TAG
- See Also:
-
PROGRAM_VERSION_TAG
- See Also:
-
COMMAND_LINE_TAG
- See Also:
-
PREVIOUS_PROGRAM_GROUP_ID_TAG
- See Also:
-
STANDARD_TAGS
-
-
Constructor Details
-
SAMProgramRecord
-
SAMProgramRecord
-
-
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
-
getProgramGroupId
-
getProgramName
-
setProgramName
-
getProgramVersion
-
setProgramVersion
-
getCommandLine
-
setCommandLine
-
getPreviousProgramGroupId
-
setPreviousProgramGroupId
-
equivalent
- Returns:
- true if this == that except for the program 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
-