KarchinLab / open-cravat

A modular annotation tool for genomic variants
MIT License
113 stars 27 forks source link

custom postaggregator #131

Closed emijks closed 1 year ago

emijks commented 1 year ago

i wrote custom postaggregator "my_postaggregator":

...
def annotate (self, input_data):
    return {'pos': input_data['base__pos']}
...

and got NULLs in the table and report-files; err log file:

SOURCE:error.my_postaggregator      
INPUT:{'base__uid': 1, 'base__chrom': 'chr19', 'base__pos': 11100236, 'base__ref_base': 'C', ...}
ERROR:can only concatenate str (not "int") to str

pls, help)

emijks commented 1 year ago

type(input_data[key]) should match <postagg>.ymls output_columns type