-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* β Use argx instead of pyparam * π Update examples * π 0.5.0
- Loading branch information
Showing
31 changed files
with
457 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-11 Bytes
(100%)
examples/mutant-genotypes-on-each-chromosome-sample-1.col.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
examples/number-of-variants-on-each-chromosome-first-5.col.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
examples/number-of-variants-on-each-chromosome-modified.col.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
examples/overall-allele-frequency-distribution-0-05-0-95.histogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1 Byte
(100%)
examples/overall-allele-frequency-distribution.histogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" | |
|
||
[tool.poetry] | ||
name = "vcfstats" | ||
version = "0.4.3" | ||
version = "0.5.0" | ||
description = "Powerful statistics for VCF files" | ||
authors = [ "pwwang <[email protected]>",] | ||
license = "MIT" | ||
|
@@ -16,13 +16,14 @@ include = ["vcfstats/args.toml"] | |
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
cyvcf2 = "^0.30" | ||
pyparam = "^0.5" | ||
lark-parser = "^0.12" | ||
plotnine = "^0.10" | ||
plotnine-prism = "^0.2" | ||
python-slugify = "^8" | ||
datar = { version = "^0.11", extras = ["pandas"] } | ||
py = "^1.10" | ||
argx = "^0.1.0" | ||
rich = "^13" | ||
|
||
[tool.poetry.dev-dependencies] | ||
cmdy = "^0.5" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1) ~ CONTIG' \ | ||
--title 'Number of variants on each chromosome' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1) ~ CONTIG' \ | ||
--title 'Number of variants on each chromosome (modified)' \ | ||
--config examples/config.toml \ | ||
--ggs 'scale_x_discrete(name ="Chromosome", \ | ||
limits=["1","2","3","4","5","6","7","8","9","10","X"]); \ | ||
ylab("# Variants")' | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1) ~ CONTIG[1,2,3,4,5]' \ | ||
--title 'Number of variants on each chromosome (first 5)' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1, VARTYPE[snp]) ~ SUBST[A>T,A>G,A>C,T>A,T>G,T>C,G>A,G>T,G>C,C>A,C>T,C>G]' \ | ||
--title 'Number of substitutions of SNPs' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1, VARTYPE[snp]) ~ SUBST[A>T,A>G,A>C,T>A,T>G,T>C,G>A,G>T,G>C,C>A,C>T,C>G]' \ | ||
--title 'Number of substitutions of SNPs (passed)' \ | ||
--config examples/config.toml \ | ||
--passed | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'AAF ~ CONTIG' \ | ||
--title 'Allele frequency on each chromosome' \ | ||
--config examples/config.toml --ggs 'theme_dark()' | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'AAF ~ CONTIG' \ | ||
--title 'Allele frequency on each chromosome (boxplot)' \ | ||
--config examples/config.toml \ | ||
--figtype boxplot | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'AAF ~ CONTIG[1,2]' \ | ||
--title 'Allele frequency on chromosome 1,2' \ | ||
--config examples/config.toml \ | ||
--figtype density | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'AAF ~ 1' \ | ||
--title 'Overall allele frequency distribution' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'AAF[0.05, 0.95] ~ 1' \ | ||
--title 'Overall allele frequency distribution (0.05-0.95)' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1, group=VARTYPE) ~ CHROM' \ | ||
--title 'Types of variants on each chromosome' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1, group=VARTYPE) ~ CHROM[1]' \ | ||
--title 'Types of variants on chromosome 1' \ | ||
--config examples/config.toml \ | ||
--figtype pie | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1, group=VARTYPE) ~ 1' \ | ||
--title 'Types of variants on whole genome' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'COUNT(1, group=GTTYPEs[HET,HOM_ALT]{0}) ~ CHROM' \ | ||
--title 'Mutant genotypes on each chromosome (sample 1)' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'MEAN(GQs{0}) ~ MEAN(DEPTHs{0}, group=CHROM)' \ | ||
--title 'GQ vs depth (sample 1)' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi | ||
|
||
vcfstats --vcf examples/sample.vcf \ | ||
--outdir examples/ \ | ||
--formula 'DEPTHs{0} ~ DEPTHs{1}' \ | ||
--title 'Depths between sample 1 and 2' \ | ||
--config examples/config.toml | ||
|
||
if [ $? -ne 0 ]; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
from . import macros | ||
|
||
__version__ = "0.4.3" | ||
__version__ = "0.5.0" |
Oops, something went wrong.