(make-splitter {:keys [info format]} header)
Returns a function that splits a multiallelic variant into a sequence of biallelic variants.
Returns a function that splits a multiallelic variant into a sequence of biallelic variants.
(normalize ref-reader meta-info header)
(normalize ref-reader meta-info header variants)
Splits multiallelic variants and realigns all alleles. Returns a lazy
sequence of normalized variants. Note that the result may be unsorted due to
the realignment. Returns a transducer when no variant is provided. The
transducer does not guarantee thread safety of ref-reader
.
Splits multiallelic variants and realigns all alleles. Returns a lazy sequence of normalized variants. Note that the result may be unsorted due to the realignment. Returns a transducer when no variant is provided. The transducer does not guarantee thread safety of `ref-reader`.
(realign seq-reader variant)
(realign seq-reader
{:keys [ref alt] :as variant}
{:keys [window] :or {window 100}})
Left-align and trim REF/ALT alleles.
Left-align and trim REF/ALT alleles.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close