Package htsjdk.samtools
Class SAMProgramRecord
- java.lang.Object
-
- htsjdk.samtools.AbstractSAMHeaderRecord
-
- htsjdk.samtools.SAMProgramRecord
-
- All Implemented Interfaces:
Serializable
public class SAMProgramRecord extends AbstractSAMHeaderRecord
In-memory representation of @PG SAM header record.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOMMAND_LINE_TAGstatic StringPREVIOUS_PROGRAM_GROUP_ID_TAGstatic StringPROGRAM_GROUP_ID_TAGstatic StringPROGRAM_NAME_TAGstatic StringPROGRAM_VERSION_TAGstatic Set<String>STANDARD_TAGS-
Fields inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description SAMProgramRecord(String programGroupId)SAMProgramRecord(String id, SAMProgramRecord srcProgramRecord)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)booleanequivalent(SAMProgramRecord that)StringgetCommandLine()StringgetId()Returns the ID tag (or equivalent) for this header record.StringgetPreviousProgramGroupId()StringgetProgramGroupId()StringgetProgramName()StringgetProgramVersion()StringgetSAMString()Returns the record in the SAM line-based text format.inthashCode()voidsetCommandLine(String commandLine)voidsetPreviousProgramGroupId(String id)voidsetProgramName(String name)voidsetProgramVersion(String version)-
Methods inherited from class htsjdk.samtools.AbstractSAMHeaderRecord
attributesEqual, attributesHashCode, getAttribute, getAttributes, setAttribute, setAttribute, setAttribute, toString
-
-
-
-
Field Detail
-
PROGRAM_GROUP_ID_TAG
public static final String PROGRAM_GROUP_ID_TAG
- See Also:
- Constant Field Values
-
PROGRAM_NAME_TAG
public static final String PROGRAM_NAME_TAG
- See Also:
- Constant Field Values
-
PROGRAM_VERSION_TAG
public static final String PROGRAM_VERSION_TAG
- See Also:
- Constant Field Values
-
COMMAND_LINE_TAG
public static final String COMMAND_LINE_TAG
- See Also:
- Constant Field Values
-
PREVIOUS_PROGRAM_GROUP_ID_TAG
public static final String PREVIOUS_PROGRAM_GROUP_ID_TAG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SAMProgramRecord
public SAMProgramRecord(String programGroupId)
-
SAMProgramRecord
public SAMProgramRecord(String id, SAMProgramRecord srcProgramRecord)
-
-
Method Detail
-
getId
public String 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
public String getProgramGroupId()
-
getProgramName
public String getProgramName()
-
setProgramName
public void setProgramName(String name)
-
getProgramVersion
public String getProgramVersion()
-
setProgramVersion
public void setProgramVersion(String version)
-
getCommandLine
public String getCommandLine()
-
setCommandLine
public void setCommandLine(String commandLine)
-
getPreviousProgramGroupId
public String getPreviousProgramGroupId()
-
setPreviousProgramGroupId
public void setPreviousProgramGroupId(String id)
-
equivalent
public boolean equivalent(SAMProgramRecord that)
- Returns:
- true if this == that except for the program group ID, which is arbitrary
-
getSAMString
public String 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
-
-