MaayanLab/biojupies-plugins

L1000FWD error reporting

denis-torre opened this issue · 1 comments

An error occurred while executing the following cell:

Initialize results

results['l1000fwd'] = {}

Loop through signatures

for label, signature in signatures.items():

# Run analysis
results['l1000fwd'][label] = analyze(signature=signature, tool='l1000fwd', signature_label=label)

# Display results
plot(results['l1000fwd'][label])


JSONDecodeError Traceback (most recent call last)
in ()
6
7 # Run analysis
----> 8 results['l1000fwd'][label] = analyze(signature=signature, tool='l1000fwd', signature_label=label)
9
10 # Display results

in analyze(tool, **kwargs)
69 kwargs['dataset'][normalization_method] = normalize_dataset(method = normalization_method, dataset=kwargs['dataset'])
70
---> 71 return {'results': eval(tool).run(**kwargs), 'tool': tool}
72
73 # Plot

/notebook-generator-server/app/static/library/v1.0/analysis_tools/l1000fwd/l1000fwd.py in run(signature, nr_genes, signature_label)
42 # Get result
43 response = requests.post(L1000FWD_URL + 'sig_search', json=payload)
---> 44 l1000fwd_results['result_url'] = 'https://amp.pharm.mssm.edu/l1000fwd/vanilla/result/'+response.json()['result_id']
45
46 # Return

/notebook-generator-server/venv/lib/python3.6/site-packages/requests/models.py in json(self, **kwargs)
890 # used.
891 pass
--> 892 return complexjson.loads(self.text, **kwargs)
893
894 @Property

/usr/lib/python3.6/json/init.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
352 parse_int is None and parse_float is None and
353 parse_constant is None and object_pairs_hook is None and not kw):
--> 354 return _default_decoder.decode(s)
355 if cls is None:
356 cls = JSONDecoder

/usr/lib/python3.6/json/decoder.py in decode(self, s, _w)
337
338 """
--> 339 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
340 end = _w(s, end).end()
341 if end != len(s):

/usr/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)
355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
--> 357 raise JSONDecodeError("Expecting value", s, err.value) from None
358 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)
JSONDecodeError: Expecting value: line 1 column 1 (char 0)