public enum NGSPlatform extends java.lang.Enum<NGSPlatform>
Enum Constant and Description |
---|
CAPILLARY |
COMPLETE_GENOMICS |
HELICOS |
ILLUMINA |
ION_TORRENT |
LS454 |
PACBIO |
SOLID |
UNKNOWN |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
BAM_PL_NAMES
Array of the prefix names in a BAM file for each of the platforms.
|
protected SequencerFlowClass |
sequencerType |
Modifier and Type | Method and Description |
---|---|
static NGSPlatform |
fromRead(GATKRead read,
htsjdk.samtools.SAMFileHeader header)
Convenience get -- get the NGSPlatform from a Read.
|
static NGSPlatform |
fromReadGroupPL(java.lang.String plFromRG)
Returns the NGSPlatform corresponding to the PL tag in the read group
|
java.lang.String |
getDefaultPlatform()
Returns a representative PL string for this platform
|
SequencerFlowClass |
getSequencerType()
The broad "type" of sequencer this platform represents (discrete or flow)
|
static boolean |
isKnown(java.lang.String platform)
checks whether or not the requested platform is listed in the set (and is not unknown)
|
static java.lang.String |
knownPlatformsString()
Get a human-readable list of platform names
|
static NGSPlatform |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NGSPlatform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NGSPlatform ILLUMINA
public static final NGSPlatform SOLID
public static final NGSPlatform LS454
public static final NGSPlatform COMPLETE_GENOMICS
public static final NGSPlatform PACBIO
public static final NGSPlatform ION_TORRENT
public static final NGSPlatform CAPILLARY
public static final NGSPlatform HELICOS
public static final NGSPlatform UNKNOWN
protected final java.lang.String[] BAM_PL_NAMES
protected final SequencerFlowClass sequencerType
public static NGSPlatform[] values()
for (NGSPlatform c : NGSPlatform.values()) System.out.println(c);
public static NGSPlatform valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final java.lang.String getDefaultPlatform()
public final SequencerFlowClass getSequencerType()
public static NGSPlatform fromRead(GATKRead read, htsjdk.samtools.SAMFileHeader header)
read
- a non-null GATKReadheader
- SAM header for the readpublic static NGSPlatform fromReadGroupPL(java.lang.String plFromRG)
plFromRG
- -- the PL field (or equivalent) in a ReadGroup object. Can be null => UNKNOWNpublic static boolean isKnown(java.lang.String platform)
platform
- the read group string that describes the platform used. can be nullpublic static java.lang.String knownPlatformsString()