"@SQ SN:chr1 LN:12345"</code></pre></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/metainfo.jl#L45-L71">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="XAM.SAM.MetaInfo-Tuple{AbstractString}"href="#XAM.SAM.MetaInfo-Tuple{AbstractString}"><code>XAM.SAM.MetaInfo</code></a> — <spanclass="docstring-category">Method</span>.</div><div><div><pre><codeclass="language-julia">MetaInfo(str::AbstractString)</code></pre><p>Create a SAM metainfo from <code>str</code>.</p><p><strong>Examples</strong></p><pre><codeclass="language-none">julia> SAM.MetaInfo("@CO some comment")
value: SN=chr1 LN=12345</code></pre></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/metainfo.jl#L23-L40">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="XAM.SAM.Reader-Tuple{IO}"href="#XAM.SAM.Reader-Tuple{IO}"><code>XAM.SAM.Reader</code></a> — <spanclass="docstring-category">Method</span>.</div><div><div><pre><codeclass="language-julia">SAM.Reader(input::IO)</code></pre><p>Create a data reader of the SAM file format.</p><p><strong>Arguments</strong></p><ul><li><code>input</code>: data source</li></ul></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/reader.jl#L16-L23">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="XAM.SAM.Record-Tuple{AbstractString}"href="#XAM.SAM.Record-Tuple{AbstractString}"><code>XAM.SAM.Record</code></a> — <spanclass="docstring-category">Method</span>.</div><div><div><pre><codeclass="language-julia">SAM.Record(str::AbstractString)</code></pre><p>Create a SAM record from <code>str</code>. This function verifies the format and indexes fields for accessors.</p></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/record.jl#L63-L68">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="XAM.SAM.Record-Tuple{Array{UInt8,1}}"href="#XAM.SAM.Record-Tuple{Array{UInt8,1}}"><code>XAM.SAM.Record</code></a> — <spanclass="docstring-category">Method</span>.</div><div><div><pre><codeclass="language-julia">SAM.Record(data::Vector{UInt8})</code></pre><p>Create a SAM record from <code>data</code>. This function verifies the format and indexes fields for accessors. Note that the ownership of <code>data</code> is transferred to a new record object.</p></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/record.jl#L39-L45">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="XAM.SAM.Record-Tuple{}"href="#XAM.SAM.Record-Tuple{}"><code>XAM.SAM.Record</code></a> — <spanclass="docstring-category">Method</span>.</div><div><div><pre><codeclass="language-julia">SAM.Record()</code></pre><p>Create an unfilled SAM record.</p></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/record.jl#L23-L27">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="XAM.SAM.Writer"href="#XAM.SAM.Writer"><code>XAM.SAM.Writer</code></a> — <spanclass="docstring-category">Type</span>.</div><div><div><pre><codeclass="language-julia">Writer(output::IO, header::Header=Header())</code></pre><p>Create a data writer of the SAM file format.</p><p><strong>Arguments</strong></p><ul><li><code>output</code>: data sink</li><li><code>header=Header()</code>: SAM header object</li></ul></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/writer.jl#L4-L12">source</a></section><sectionclass="docstring"><divclass="docstring-header"><aclass="docstring-binding"id="Base.findall-Tuple{XAM.SAM.Header,AbstractString}"href="#Base.findall-Tuple{XAM.SAM.Header,AbstractString}"><code>Base.findall</code></a> — <spanclass="docstring-category">Method</span>.</div><div><div><pre><codeclass="language-julia">find(header::Header, key::AbstractString)::Vector{MetaInfo}</code></pre><p>Find metainfo objects satisfying <code>SAM.tag(metainfo) == key</code>.</p></div></div><aclass="source-link"target="_blank"href="https://github.com/BioJulia/XAM.jl/blob/eaf3a3a1aa62ba2ca12a250f5f35d3cf037aaaa2/src/sam/header.j