Thrown in case of unrecognized tag type
Struct for representing tag values.
import bio.std.hts.bam.reader, bio.std.hts.bam.tagvalue; ... auto bam = new BamReader("file.bam"); Value v = bam.reads.front["MD"]; assert(v.is_string); v = 5; assert(v.is_signed); // because 5 is of type int which is signed assert(v == "5"); // converted to string and then compared v = "abc"; assert(v.is_string); v = [1, 2, 3]; // integer and float arrays are supported assert(v.is_numeric_array); v = [1.5f, 2.3f, 17.0f]; // double[] arrays must be converted to float[] assert(v.is_numeric_array); v = 5.6; assert(v.is_float); v = -17; assert(v.is_signed);
BAM records may carry arbitrary information in tags.
Value type provides convenient way to work with this information.