VCFWriter.addTag

Add INFO (§1.2.2) or FORMAT (§1.2.4) tag

The INFO tag describes row-specific keys used in the INFO column; The FORMAT tag describes sample-specific keys used in the last, and optional, genotype column.

Template parameter: string; must be INFO or FORMAT

The first four parameters are required; NUMBER and TYPE have specific allowable values. source and version are optional, but recommended (for INFO only).

id: ID tag number: NUMBER tag; here a string because it can also take special values {A,R,G,.} (see §1.2.2) type: Integer, Float, Flag, Character, and String description: Text description; will be double quoted

  1. void addTag(string id, T number, string type, string description, string source, string _version)
    struct VCFWriter
    void
    addTag
    (
    string tagType
    T
    )
    (
    string id
    ,,
    string type
    ,,
    string source = ""
    ,
    string _version = ""
    )
    if (
    (
    tagType == "INFO" ||
    tagType == "FORMAT"
    )
    &&
    (
    isIntegral!T ||
    isSomeString!T
    )
    )
  2. void addTag(string id, string description)
  3. auto addTag(const(char)[] id, int length, string other)

Meta

Source

See Implementation
Annotation source (eg dbSNP)

Version

Annotation version (eg 142)