Skip to content

Releases: pwwang/vcfstats

0.6.0: ✨ Allow passing vcf as 2nd arg to macros (#45) (#46)

27 Sep 22:09
da19dc3
Compare
Choose a tag to compare
  • Now vcf (the instance of cyvcf2.VCF is allowed to be passed as 2nd argument to continuous and categorical 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)

20 Feb 05:52
7a46551
Compare
Choose a tag to compare
  • ➕ Use argx instead of pyparam

0.4.3 (#37)

07 Feb 03:41
fe18edb
Compare
Choose a tag to compare
  • 🚑 Fix numpy error raised from plotnine (#35)
  • 📝 Update usage with docker in README.md (#33)
  • 👷 Add python3.10 to CI

0.4.2

14 Sep 06:31
49a26b0
Compare
Choose a tag to compare
  • 🐛 Fix config file not used correctly (#27)

What's Changed

Full Changelog: 0.4.1...0.4.2

0.4.1

27 Jun 18:14
887638b
Compare
Choose a tag to compare
  • 📝 Add more examples regarding #20
  • 🐛 Fix devpars by default a Namespace rather than a dict (#21, #22)

What's Changed

Full Changelog: 0.4.0...0.4.1

0.4.0 (#19)

12 May 20:24
38a3451
Compare
Choose a tag to compare
  • ⬆️ 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)

03 Feb 23:17
4b6c3e2
Compare
Choose a tag to compare
  • Introduce enhancements (#15)

0.2.0

02 Oct 06:30
Compare
Choose a tag to compare
  • Use plotnine instead of ggplot2 so no R is needed
  • Add figfmt to generate different format of figures other than png

0.1.0

06 Aug 19:06
Compare
Choose a tag to compare
  • Use lark-parser to parse formulas
  • Add ggrepel in Dockerfile
  • Use rich.table to print macros
  • Allow python -m, avoid root logger configuration.

0.0.6

27 Sep 22:15
Compare
Choose a tag to compare
  • Adopt lastest pyparam.