Package htsjdk.samtools
Enum Class SAMTag
- All Implemented Interfaces:
Serializable
,Comparable<SAMTag>
,Constable
The standard tags for a SAM record that are defined in the SAM spec.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated.for backwards compatibility onlyDeprecated.for backwards compatibility onlyDeprecated.for backwards compatibility onlyDeprecated.for backwards compatibility onlyDeprecated.use BC instead, for backwards compatibilty onlyDeprecated.for backwards compatibility onlyDeprecated.for backwards compatibility only -
Method Summary
Modifier and TypeMethodDescriptionshort
Get the binary representation of this tag name.static short
makeBinaryTag
(String tag) Convert from String representation of tag name to short representation.static String
makeStringTag
(short tag) Convert from short representation of tag name to String representation.static SAMTag
Returns the enum constant of this class with the specified name.static SAMTag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AM
-
AS
-
BC
-
BQ
-
BZ
-
CB
-
CC
-
CG
-
CM
-
CO
-
CP
-
CQ
-
CR
-
CS
-
CT
-
CY
-
E2
-
FI
-
FS
-
FT
-
FZ
-
GC
Deprecated.for backwards compatibility only -
GS
Deprecated.for backwards compatibility only -
GQ
Deprecated.for backwards compatibility only -
LB
-
H0
-
H1
-
H2
-
HI
-
IH
-
MC
-
MF
Deprecated.for backwards compatibility only -
MI
-
MD
-
MQ
-
NH
-
NM
-
OA
-
OQ
-
OP
-
OC
-
OF
-
OR
-
OX
-
PG
-
PQ
-
PT
-
PU
-
Q2
-
QT
-
QX
-
R2
-
RG
-
RT
Deprecated.use BC instead, for backwards compatibilty only -
RX
-
S2
Deprecated.for backwards compatibility only -
SA
-
SM
-
SQ
Deprecated.for backwards compatibility only -
TC
-
U2
-
UQ
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
makeBinaryTag
Convert from String representation of tag name to short representation.- Parameters:
tag
- 2-character String representation of a tag name.- Returns:
- Tag name packed as 2 ASCII bytes in a short.
-
makeStringTag
Convert from short representation of tag name to String representation.- Parameters:
tag
- Tag name packed as 2 ASCII bytes in a short.- Returns:
- 2-character String representation of a tag name.
-
getBinaryTag
public short getBinaryTag()Get the binary representation of this tag name.- Returns:
- the binary representation of this tag name
- See Also:
-