- fix for
hts_idx_set_meta
(#86)
- new smaller docker image (#85)
- [vcf] allow using
vcf.set_samples(@["^"])
to remove all samples
- [vcf] fix for #77 for to avoid double-free of header when it's re-used.
- turn quits into exceptions
- expose VCF.fname
- change rendering of unknown alleles to fix './.'
- vcf: expose a couple more functions from htslib
- add close method to fai for consistency (continues to also occur automatically upon garbage collection) #70
- changes for nim ORC/ARC GCs
- add bgzi.open which allows opening for reading and writing without quit() and replaces
wopen_bgzi
andropen_bgzi
- add
newCigar(els: seq[CigarElement]): Cigar
(#9)
- flush stdout on destroy_vcf
- fix bai creation in
xam_index
- automatically set cram or bam file-type for file opened in write mode based on file extension (#64)
- add
xam_index
to index bam and cram files.
- hts/vcf Variant.alts will report sum of known alt alleles for ploidy greater than 2.
- report contig length if available in vcf.contigs (#51)
- allow specifying
"*"
or"-3"
for the chromosome in vcf.query to iterator over entire file.
- fix off-by-one error. (brentp/mosdepth#98)
- breaking change update to htslib 1.10. this is a breaking change and will require htslib 1.10 or higher. if hts-nim detects a version of < 1.10, it will generate an error
- add htslibVersion() function which returns a string of the version reported by htslib
- bam/Target is no longer a ref object (this will affect almost noone)
- hts/bam fix from_string for bam record and header. See quinlan-lab/STRling#10
- hts/files add fname.file_type to get the file type given a path
- changes for latest nim
- fix several memory leaks in rarely-used functions
- hts/vcf allow setting id.
- hts/vcf flush stdout on close.
- hts/bam correct check for EOF (#48)
- hts/bam better error message for error in interation
- hts/files (iterate over bgzipped or text files identically)
- [bam] add
set_qname
- [vcf] add format.delete to delete format (sample) fields from vcf records. v0.2.12 =======
- [bam] optimize cigar. had extra calls and memory-use.
- [vcf] more lazy about unpack; gives some performance improvement
- [vcf] use pointer size to allow better memory re-use.
- [vcf] unpack after copy. this was causing hard-to-diagnose problems whenever Variant.copy was used.
- [vcf] allow writing from a VCF that does not contain contigs (in htslib this is an error)
- [vcf] fix bug in getting (absent) string arguments from INFO.
- [vcf] remove deprecated FORMAT (ints, floats) and INFO (ints, floats, strings)
- [vcf] add FORMAT.get, set(field, strings) to get and set string fields from FORMAT fields
- [vcf] add FORMAT.fields to iterate for the FORMAT field of a VCF, the returned FormatField type tells the name, (v)type and number of values per sample of each field.
- [vcf] deprecate ints, strings, floats in favor of dispatch to
get
for both INFO and FORMAT.