Utility functions for SAM header.
Utility functions for SAM header.
A reducing function which builds a map from parsed headers.
A reducing function which builds a map from parsed headers.
Coordinate sorting order of alignments.
Coordinate sorting order of alignments.
queryname sorting order of alignments.
queryname sorting order of alignments.
Unknown sorting order of alignments.
Unknown sorting order of alignments.
(parse-header s)
Parse a header string, returning a map of the header.
Parse a header string, returning a map of the header.
(parse-header-line line)
e.g. "@SQ SN:ref LN:45" => [:SQ {:SN "ref" :LN 45}]
e.g. "@SQ SN:ref LN:45" => [:SQ {:SN "ref" :LN 45}]
(sort-order header)
Returns sorting order of the sam as Keyword. Returning order is one of the following: :queryname, :coordinate, :unsorted, :unknown.
Returns sorting order of the sam as Keyword. Returning order is one of the following: :queryname, :coordinate, :unsorted, :unknown.
(sorted-by order header)
Replaces the sorting order field in SAM header.
Replaces the sorting order field in SAM header.
(sorted? header)
Returns true if the sam is sorted, false if not. It is detected by
@HD SO:***
tag in the header.
Returns true if the sam is sorted, false if not. It is detected by `@HD SO:***` tag in the header.
(stringify-header hdr)
Converts parsed header lines to a string.
Converts parsed header lines to a string.
(update-version header)
Overwrites format version in SAM header.
Overwrites format version in SAM header.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close