TagValue

This represents a tag value from a bam record This should be to the bam specification. It stores only a pointer to the tag and from there can be parsed into any of the tag types but only if the tag matches that type. c byte C ubyte s short S ushort i int I uint f float Bc array of type byte Z char array H hex?

Memory layout pipes delimit byte boundaries in an array 8/9 are example values 2 is a count of the array the ubyte * starts at the type char c | 8| s | | 8| i | | | | 8| B |i | | | | 2| | | | 8| | | | 9|

More...

Constructors

this
this(bam1_t* b, char[2] tag)

Constructor

Members

Functions

check
bool check()

Check if tag type is type T

check
bool check()

Check if tag type is type T

check
bool check()

Check if tag type is type T

to
string to()

Convert tag value

to
T to()

Convert tag value

to
T[] to()

Convert tag value

toFloatArray
float[] toFloatArray()

Convert tag value to float array

toInt
long toInt()

Convert tag value to integer

toIntArray
long[] toIntArray()

Convert tag value to integer array

toString
string toString()

Convert tag value to string

Properties

exists
bool exists [@property getter]

check if empty/exists/null

Detailed Description

Alias seq allows us to have an enum of types. https://forum.dlang.org/post/kmdjfzpugudmwfrdgson@forum.dlang.org Thanks Paul!

Usage: auto t = TagValue(b, 'XX') where b is bam1_t* BAM record and XX is tag

Meta