Commit c2479045 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Improve targetp json structure by writing out Localization and preserving case...

Improve targetp json structure by writing out Localization and preserving case of other fields. Also adds a script run execute targetp script quickly
parent ddf4cb2b
......@@ -32,9 +32,9 @@ with open(filename) as f:
for field in field_index:
if field_index[field] is not None:
if field == "Loc":
results[field.lower()] = loc_dict[split[field_index[field]]]
results['Localization'] = loc_dict[split[field_index[field]]]
else:
results[field.lower()] = float(split[field_index[field]])
results[field] = float(split[field_index[field]])
else:
if line.startswith('Name '):
split = line.split()
......
This diff is collapsed.
#!/bin/bash
set -uexo pipefail
SCRIPT=$(../scripts/run_targetp.py --fasta data/fasta/proteins.fas --output data/targetp/ --organism_group non-plant)
eval "$SCRIPT"
../scripts/convert_targetp.py --result data/targetp/ --output data/targetp/converted.json
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