Traceback (most recent call last):


 "/export/apps/weblate/venv/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner

response = get_response(request)


 "/export/apps/weblate/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response

response = self.process_exception_by_middleware(e, request)


 "/export/apps/weblate/venv/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)


 "/export/apps/weblate/venv/lib64/python3.6/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view

return view_func(request, *args, **kwargs)


 "/export/apps/weblate/venv/lib64/python3.6/site-packages/weblate/trans/views/js.py", line 266, in task_progress

'result': task.result,
 
 "/export/apps/weblate/venv/lib64/python3.6/site-packages/django/http/response.py", line 561, in __init__

data = json.dumps(data, cls=encoder, **json_dumps_params)
 
 "/usr/lib64/python3.6/json/__init__.py", line 238, in dumps

**kw).encode(obj)


 "/usr/lib64/python3.6/json/encoder.py", line 199, in encode

chunks = self.iterencode(o, _one_shot=True)


 "/usr/lib64/python3.6/json/encoder.py", line 257, in iterencode

return _iterencode(o, 0)


 "/export/apps/weblate/venv/lib64/python3.6/site-packages/django/core/serializers/json.py", line 104, in default

return super().default(o)


 "/usr/lib64/python3.6/json/encoder.py", line 180, in default

o.__class__.__name__)
TypeError: Object of type 'KeyError' is not JSON serializable

Traceback (most recent call last):


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/distributed/ipythontasks.py", line 51, in _setup_logging

yield config


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/distributed/ipythontasks.py", line 429, in detect_sv

return ipython.zip_args(apply(structural.detect_sv, *args))


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/structural/__init__.py", line 197, in detect_sv

for svdata in caller_fn(items):


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/structural/titancna.py", line 28, in run

het_file = _titan_het_file(heterogeneity.get_variants(paired.tumor_data), work_dir, paired)


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/structural/titancna.py", line 127, in _titan_het_file

work_dir, paired, OutWriter)


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/heterogeneity/bubbletree.py", line 147, in prep_vrn_file

stats = _is_possible_loh(rec, bcf_in, params, somatic_info)


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/heterogeneity/bubbletree.py", line 309, in _is_possible_loh

stats = _tumor_normal_stats(rec, somatic_info)


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/heterogeneity/bubbletree.py", line 292, in _tumor_normal_stats

alt, depth, freq = sample_alt_and_depth(rec, sample)


 "/home/pastore/data/bcbio/anaconda/lib/python2.7/site-packages/bcbio/heterogeneity/bubbletree.py", line 350, in sample_alt_and_depth

all_counts = [int(x) for x in sample["AD"]]
TypeError: int() argument must be a string or a number, not 'NoneType'
