cljam.io.util
I/O utilities.
alignment-reader?
(alignment-reader? rdr)
Checks if given object implements protocol IAlignmentReader.
alignment-writer?
(alignment-writer? wtr)
Checks if given object implements protocol IAlignmentWriter.
bigwig-reader?
(bigwig-reader? rdr)
Checks if given object is an instance of BIGWIGReader.
file-type
(file-type f)
Detects a file format from a path of f, returning a keyword representing the format. Throws an exception if an unsupported file is supplied.
file-type-from-bytes
(file-type-from-bytes ba)
Tries to detect a file format based on contents of the byte array `ba`. The input byte array must be larger than 4 bytes. Note that detection of some formats `#{:fasta :fastq :wig :fai :bed}` is based on naive heuristics and thus can fail.
file-type-from-contents
(file-type-from-contents f)
Detects a file format based on contents of the input file `f`. Causes a side effect of reading some header bytes.
sequence-reader?
(sequence-reader? rdr)
Checks if given object implements protocol ISequenceReader.
sequence-writer?
(sequence-writer? wtr)
Checks if given object implements protocol ISequenceWriter.
twobit-reader?
(twobit-reader? rdr)
Checks if given object is an instance of TwoBitReader.
twobit-writer?
(twobit-writer? wtr)
Checks if given object is an instance of TwoBitWriter.
variant-reader?
(variant-reader? rdr)
Checks if given object implements protocol IVariantReader.
variant-writer?
(variant-writer? wtr)
Checks if given object implements protocol IVariantWriter.