Skip to content

Commit

Permalink
Update annotator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetit3 committed Apr 20, 2016
1 parent 3954fd3 commit e6de6d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vcfannotator/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def add_annotation_info(self):
['IsTransition', '1', 'Integer',
'0:transversion, 1:transition, 9:N/A or Unknown'],
['IsGenic', '1', 'Integer', '0:intergenic, 1:genic'],
['IsPseudo', '1', 'Integer', '0:not pseudo, 1:pseudo gene'],
['LocusTag', None, 'String', 'Locus tag associated with gene'],
['Gene', None, 'String', 'Name of gene'],
['Note', None, 'String', 'Note associated with gene'],
Expand Down Expand Up @@ -58,6 +59,7 @@ def annotate_vcf_records(self):
record.INFO['IsTransition'] = 9
record.INFO['Comments'] = '.'
record.INFO['IsGenic'] = '0'
record.INFO['IsPseudo'] = '0'
record.INFO['LocusTag'] = '.'
record.INFO['Gene'] = '.'
record.INFO['Note'] = '.'
Expand Down Expand Up @@ -98,6 +100,9 @@ def annotate_vcf_records(self):
record.INFO[k]
)

if 'pseudo' in feature.qualifiers:
record.INFO['IsPseudo'] = '1'

# Determine variant type
if record.is_indel:
if record.is_deletion:
Expand Down

0 comments on commit e6de6d6

Please sign in to comment.