Liking cljdoc? Tell your friends :D

cljam.io.vcf.util


dot-or-nil?clj

(dot-or-nil? s)

Checks if given string is equal to "." or nil.

Checks if given string is equal to "." or nil.
sourceraw docstring

genotype->intsclj

(genotype->ints gt)

Convert genotype to a sequence of integers.

Convert genotype to a sequence of integers.
sourceraw docstring

info-parserclj

(info-parser info-meta)

Returns a parser function defined by meta-info. info-meta must be a sequence of map containing keys :id, :number and :type. The parser takes a string and returns a map.

Returns a parser function defined by meta-info.
info-meta must be a sequence of map containing keys :id, :number and :type.
The parser takes a string and returns a map.
sourceraw docstring

info-stringifierclj

(info-stringifier info-meta)

Returns a stringifier function of INFO field. Takes a vector of maps from info rows of meta-info. The stringifier takes a map and returns a string.

Returns a stringifier function of INFO field.
Takes a vector of maps from info rows of meta-info.
The stringifier takes a map and returns a string.
sourceraw docstring

ints->genotypeclj

(ints->genotype vs)

Convert a sequence of integers to genotype string.

Convert a sequence of integers to genotype string.
sourceraw docstring

parse-filterclj

(parse-filter s)

Parses FILTER field and returns a sequence of keywords.

Parses FILTER field and returns a sequence of keywords.
sourceraw docstring

parse-formatclj

(parse-format s)

Parses FORMAT field and returns as a sequence of keywords.

Parses FORMAT field and returns as a sequence of keywords.
sourceraw docstring

parse-genotypeclj

(parse-genotype gt)

Parses genotype (GT) format and returns a vector of pairs: [allele, phased]. Allele 0 indicates REF allele. 1,2,3... for 1st, 2nd, 3rd allele of ALT.

Parses genotype (GT) format and returns a vector of pairs: [allele, phased].
Allele 0 indicates REF allele. 1,2,3... for 1st, 2nd, 3rd allele of ALT.
sourceraw docstring

sample-parserclj

(sample-parser formats-meta)

Returns a parser function defined by meta-formats. info must be a sequence of map containing keys :id, :number and :type. The parser takes two string (format-line and sample-line) and returns a map.

Returns a parser function defined by meta-formats.
info must be a sequence of map containing keys :id, :number and :type.
The parser takes two string (format-line and sample-line) and returns a map.
sourceraw docstring

stringify-filterclj

(stringify-filter fltr)

Stringifies FILTER field. Takes a sequence of keywords or strings.

Stringifies FILTER field. Takes a sequence of keywords or strings.
sourceraw docstring

stringify-formatclj

(stringify-format formats)

Stringifies FORMAT field. Takes a sequence of keywords or strings.

Stringifies FORMAT field. Takes a sequence of keywords or strings.
sourceraw docstring

stringify-genotypeclj

(stringify-genotype gt-seq)

Stringifies genotype map into VCF-style GT string.

Stringifies genotype map into VCF-style GT string.
sourceraw docstring

stringify-sampleclj

(stringify-sample formats sample-map)

Converts sample map into string. formats must be a seqeunce of keys in sample-map.

Converts sample map into string. formats must be a seqeunce of keys in sample-map.
sourceraw docstring

variant-parserclj

(variant-parser meta-info header)

Returns a parser function to parse :filter, :info, :FORMAT and sample columns of VCF. Takes meta-info and header of VCF. The parser takes a variant map and returns a parsed map.

Returns a parser function to parse :filter, :info, :FORMAT and sample columns of VCF.
Takes meta-info and header of VCF.
The parser takes a variant map and returns a parsed map.
sourceraw docstring

variant-vals-stringifierclj

(variant-vals-stringifier meta-info header)

Returns a stringifier function to stringify :filter, :info, :FORMAT and sample columns of VCF. Takes meta-info and header of VCF. The stringifier takes a parsed variant map and returns a map.

Returns a stringifier function to stringify :filter, :info, :FORMAT and sample columns of VCF.
Takes meta-info and header of VCF.
The stringifier takes a parsed variant map and returns a map.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close