Releases: pwwang/vcfstats
Releases · pwwang/vcfstats
0.6.0: ✨ Allow passing vcf as 2nd arg to macros (#45) (#46)
-
Now
vcf
(the instance ofcyvcf2.VCF
is allowed to be passed as 2nd argument tocontinuous
andcategorical
macros (#45).from vcfstats.macros import cont @cont def GLOBAL_POS(variant, vcf): chrom = variant.CHROM.replace("chr", "") chridx = 23 if chrom == "X" else 24 if chrom == "Y" else int(chrom) prev_chrom_lens = sum(vcf.seqlens[:(chridx-1)] return prev_chrom_lens + variant.POS
Check the API documentation of cyvcf2 to see what information we can get from vcf.
0.5.0 (#39)
- ➕ Use argx instead of pyparam
0.4.3 (#37)
0.4.2
0.4.1
0.4.0 (#19)
- ⬆️ Drop support for python 3.8 (brentp/cyvcf2#181)
- 🚨 Use python3.9 in Dockerfile
- ⬆️️ Upgrade pyparam to 0.5
- ⬆️ Upgrade and pin deps
- 📝 Add more examples (#15, #17)
- 👷 Add docker build in CI
0.3.0 (#16)
- Introduce enhancements (#15)