Commit 715abb4a authored by Mathieu Giraud's avatar Mathieu Giraud

imgt-to-vdj.py: MiXCR and IMGT/VQUEST, AA JUNCTION

parent 42c3e787
......@@ -37,6 +37,8 @@ def parse_gene_and_allele_to_vdj(s):
def N_to_vdj(s):
return '/%s/' % s
def CDR3_to_vdj(s):
return '{%s}' % s if s else ''
class Result():
'''Stores a tabulated result'''
......@@ -83,6 +85,9 @@ class MiXCR_Result(Result):
s += ' '
s += self['Best J hit']
s += ' '
s += CDR3_to_vdj(self['AA. Seq. CDR3'])
return s
......@@ -104,6 +109,10 @@ class IMGT_VQUEST_Result(Result):
s += parse_gene_and_allele_to_vdj(self['D-GENE and allele'])
s += ' '
s += parse_gene_and_allele_to_vdj(self['J-GENE and allele'])
s += ' '
s += CDR3_to_vdj(self['AA JUNCTION'])
return s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment