Skip to content

Commit

Permalink
--print-protein prints reference protein sequence for gene annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wanding Zhou committed May 12, 2016
1 parent 2fde045 commit 34febb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transvar/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ def annotate_gene(args, q, tpts, db):
if t.transcript_type == 'protein_coding':
r.append_info('cds=%s:%d_%d' % (t.chrm, t.cds_beg, t.cds_end))
r.taa_range = '%s%d_%s%d' % (aaf(t.taa2aa(1), args), 1, aaf(t.taa2aa(t.cdslen()/3), args), t.cdslen()/3)
if args.pp or args.ppp:
r.append_info('ref_protein_seq=%s' % aaf(t.get_proteinseq(), args))
if t.cdslen() % 3 != 0:
r.append_info('truncated_refseq_at_boundary')

Expand Down

0 comments on commit 34febb3

Please sign in to comment.