Skip to content

Commit 2cd3cb4

Browse files
committed
deal with alternative is "*" in vcf file
* is a place holder. remove lines with "*"
1 parent 97a48a7 commit 2cd3cb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vcf2mutation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,8 @@ def processOneLineOfVCF(line,
355355
ls_new_line = []
356356
for alternative_index in range(len(alternatives)):
357357
alternative = alternatives[alternative_index]
358+
if alternative == '*':
359+
continue
358360
ls_alternatives = []
359361
for GT in GTs:
360362
for i in GT:

0 commit comments

Comments
 (0)