Skip to content

Commit 3d7d3e0

Browse files
Merge pull request #163 from chenyenchung/missing_qual
Handling missing QUAL in user VCF files
2 parents 35e5e57 + 07b99fa commit 3d7d3e0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

neat/read_simulator/utils/vcf_func.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ def parse_input_vcf(input_dict: dict[str: ContigVariants],
164164
f'{reference_string}')
165165
continue
166166

167+
# Quality score could be missing, in this case, we treat it as ground truth and assign a default score
168+
default_qual = "42"
169+
if record[5] == ".":
170+
record[5] = default_qual
171+
167172
# We'll need the genotype when we generate reads, and output the records, if applicable
168173
genotype = None
169174
normal_sample_field = None

0 commit comments

Comments
 (0)