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 String
static final String
static final String
static final String
static final String
Fields inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
serialVersionUID
-
Constructor Summary
ConstructorsConstructorDescriptionSAMProgramRecord
(String programGroupId) SAMProgramRecord
(String id, SAMProgramRecord srcProgramRecord) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equivalent
(SAMProgramRecord 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
setCommandLine
(String commandLine) void
void
setProgramName
(String name) void
setProgramVersion
(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: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
-
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: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
-