Skip to content

Commit 78d47ef

Browse files
committed
Merge branch 'vcf-info-depth' into 'dev'
Clarify depth stats in VCF See merge request research/medaka!569
2 parents cbf182f + 3a0f5af commit 78d47ef

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [unreleased]
8+
### Changed
9+
- Additional explanatory information in VCF INFO fields concerning depth calculations.
10+
711
## [v1.11.1]
812
### Fixed
913
- Do not exit if model cannot be interpreted, use the default instead.

medaka/vcf.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -1162,8 +1162,6 @@ def annotate_vcf_n_reads(args):
11621162

11631163
vcf = VCFReader(args.vcf)
11641164
chrom = None
1165-
pref = 'Depth of reads '
1166-
suff = ' by strand (fwd, rev)'
11671165
g_open = 5
11681166
g_ext = 3
11691167
# use parasail.dnafull (match 5, mismatch -4)
@@ -1178,16 +1176,23 @@ def annotate_vcf_n_reads(args):
11781176
assert np.unique(matrix.matrix.diagonal()[:4])[0] == match
11791177

11801178
ann_meta = [
1181-
('INFO', 'DP', 1, 'Integer', pref + 'at pos'),
1182-
('INFO', 'DPS', 2, 'Integer', pref + 'at pos' + suff),
1179+
('INFO', 'DP', 1, 'Integer',
1180+
'Depth of reads at position, calculated from read pileup, '
1181+
'capped to ~8000.'),
1182+
('INFO', 'DPS', 2, 'Integer',
1183+
'Depth of reads at position by strand (fwd, rev), calculated '
1184+
'from read pileup, capped to ~8000 total.'),
11831185
('INFO', 'DPSP', 1, 'Integer',
1184-
pref + 'spanning pos +-{}'.format(args.pad)),
1186+
'Depth of reads spanning pos +-{}. '.format(args.pad) +
1187+
'This is not capped as in the case of DP and DPS.'),
11851188
('INFO', 'SR', '.', 'Integer',
11861189
'Depth of spanning reads by strand which best align to each '
1187-
'allele (ref fwd, ref rev, alt1 fwd, alt1 rev, etc.)'),
1190+
'allele (ref fwd, ref rev, alt1 fwd, alt1 rev, etc.). '
1191+
'This is not capped as in the case of DP and DPS.'),
11881192
('INFO', 'AR', 2, 'Integer',
11891193
'Depth of ambiguous spanning reads by strand which align '
1190-
'equally well to all alleles (fwd, rev)'),
1194+
'equally well to all alleles (fwd, rev). '
1195+
'This is not capped as in the case of DP and DPS.'),
11911196
('INFO', 'SC', '.', 'Integer',
11921197
'Total alignment score to each allele of spanning reads by '
11931198
'strand (ref fwd, ref rev, alt1 fwd, alt1 rev, etc.) '

0 commit comments

Comments
 (0)