forked from samtools/bcftools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plot-vcfstats: fix bug in merging multiple stats files
d4c7d5c introduced new columns to the DP section of the stats files for the site depth distribiution. However when run without the -s option this the genotype ditribution will be now exist, but be filled with zeros causing the bug in samtools#311. Fixes samtools#311 and adds a test for this. Todo check other merges are working ok after any column additions.
- Loading branch information
Showing
5 changed files
with
102 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# | ||
# Definition of sets | ||
# ID [2]id [3]tab-separated file names | ||
# SN, Summary numbers | ||
# SN [2]id [3]key [4]value | ||
SN 0 number of indels: 9 | ||
SN 0 number of records: 18 | ||
SN 0 number of multiallelic SNP sites: 1 | ||
SN 0 number of SNPs: 5 | ||
SN 0 number of others: 2 | ||
SN 0 number of MNPs: 1 | ||
SN 0 number of multiallelic sites: 6 | ||
SN 0 number of samples: 2 | ||
SN 0 number of no-ALTs: 1 | ||
# # TSTV, transition/transversions: | ||
# TSTV [2]id [3]ts [4]tv [5]ts/tv [6]ts (1st ALT) [7]tv (1st ALT) [8]ts/tv (1st ALT) | ||
TSTV 0 3 2 1.50 3 1 3.00 | ||
# Sis, Singleton stats | ||
# SiS [2]id [3]allele count [4]number of SNPs [5]number of transitions [6]number of transversions [7]number of indels [8]repeat-consistent [9]repeat-inconsistent [10]not applicable | ||
SiS 0 1 3 1 2 0 0 0 0 | ||
# AF, Stats by non-reference allele frequency | ||
# AF [2]id [3]allele frequency [4]number of SNPs [5]number of transitions [6]number of transversions [7]number of indels [8]repeat-consistent [9]repeat-inconsistent [10]not applicable | ||
AF 0 0.000000 3 1 2 2 0 0 2 | ||
AF 0 49.000000 0 0 0 12 0 0 12 | ||
AF 0 74.000000 1 1 0 0 0 0 0 | ||
AF 0 99.000000 1 1 0 0 0 0 0 | ||
# IDD, InDel distribution | ||
# IDD [2]id [3]length (deletions negative) [4]count | ||
IDD 0 -10 1 | ||
IDD 0 -8 1 | ||
IDD 0 -4 3 | ||
IDD 0 -3 4 | ||
IDD 0 -2 1 | ||
IDD 0 -1 2 | ||
IDD 0 1 1 | ||
IDD 0 2 1 | ||
# ST, Substitution types | ||
# ST [2]id [3]type [4]count | ||
ST 0 A>C 0 | ||
ST 0 A>G 0 | ||
ST 0 A>T 0 | ||
ST 0 C>A 0 | ||
ST 0 C>G 0 | ||
ST 0 C>T 0 | ||
ST 0 G>A 3 | ||
ST 0 G>C 1 | ||
ST 0 G>T 1 | ||
ST 0 T>A 0 | ||
ST 0 T>C 0 | ||
ST 0 T>G 0 | ||
# DP, Depth distribution | ||
# DP [2]id [3]bin [4]number of genotypes [5]fraction of genotypes (%) [6]number of sites [7]fraction of sites (%) | ||
DP 0 60 0 0.000000 1 33.333333 | ||
DP 0 62 0 0.000000 2 66.666667 | ||
# QUAL, Stats by quality | ||
# QUAL [2]id [3]Quality [4]number of SNPs [5]number of transitions (1st ALT) [6]number of transversions (1st ALT) [7]number of indels | ||
QUAL 0 12 1 0 1 1 | ||
QUAL 0 45 0 0 0 1 | ||
QUAL 0 59 2 1 0 3 | ||
QUAL 0 60 1 1 0 0 | ||
QUAL 0 61 0 0 0 1 | ||
QUAL 0 79 0 0 0 1 | ||
QUAL 0 82 0 0 0 1 | ||
QUAL 0 90 1 1 0 0 | ||
QUAL 0 342 0 0 0 1 |
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