You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Optional fields are usually displayed as TAG:TYPE:VALUE; the type may be one of A (character), B (general
array), f (real number), H (hexadecimal array), i (integer), or Z (string)."
however there is C,I,S, and the notion that B is combined with the types is not immediately obvious from the sentence. somewhat unclear what H is also.
digging deeper into cross references from BAM/CRAM might reveal more clarity, but perhaps even explicitly linking to those docs from SAMtags could help
The text was updated successfully, but these errors were encountered:
c, C, i, I and s, S are (or were) BAM encoding specific. So in SAM we could have AB:i:7 while in BAM it would be e.g. ABC\007.
Once "B" was added as a byte array, the internal C,I,S representation was exposed to the text format. Although arguably it's not needed and i could have sufficed, I am guessing this was to aid rapid conversion to BAM and to avoid the need for multiple passes through the data to work out the minimum and maximum values.
PS. I'm not sure I like "are usually displayed". For SAM it's mandatory, and there's really no "display" for CRAM or BAM. It's a bit of a woolly definition. We should probably copy the table from SAMv1.tex where it defines them more precisely using a regular expression.
SAM section 1.5 clearly defines the standard SAM tag types along with the
expanded codes used in the B byte-array type. This text has been
copied into the SAMtags document to remove a rather woolly definition
there. The text describing lower-case tags has been removed, because
this was already discussed in further detail at the end of the SAMtags
document (and is itself somewhat woolly when it comes to half-upper
half-lower combinations due to the addition of draft tags).
Fixessamtools#798
"Optional fields are usually displayed as TAG:TYPE:VALUE; the type may be one of A (character), B (general
array), f (real number), H (hexadecimal array), i (integer), or Z (string)."
however there is C,I,S, and the notion that B is combined with the types is not immediately obvious from the sentence. somewhat unclear what H is also.
digging deeper into cross references from BAM/CRAM might reveal more clarity, but perhaps even explicitly linking to those docs from SAMtags could help
The text was updated successfully, but these errors were encountered: