Utility functions for SAM header.
Utility functions for SAM header.
(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.
(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