CRAM.Header.Sequence (cram v0.1.0)

Copy Markdown View Source

One @SQ line. length is the LN integer. md5 is the M5 hex string when present, otherwise nil.

Summary

Types

t()

One reference sequence from @SQ.

Types

t()

@type t() :: %CRAM.Header.Sequence{
  fields: %{optional(String.t()) => String.t()},
  length: non_neg_integer() | nil,
  md5: String.t() | nil,
  name: String.t() | nil
}

One reference sequence from @SQ.

  • :name — SN, or nil when the tag is absent

  • :length — LN as a non-negative integer

  • :md5 — M5, or nil when the tag is absent

  • :fields — every tag on the line, with string keys

    iex> %CRAM.Header.Sequence{name: "sq0", length: 8}.name "sq0"