Commit 2268b3ce authored by Mathieu Giraud's avatar Mathieu Giraud

germline/buildBrowserGermline.py: handle 'path' and 'systems' in *.g files

Completes #1987 and #2132.
parent c66f0fee
......@@ -8,7 +8,9 @@ def get_required_files(germlines_data):
The function returns a list of the files (uniqueness is guaranteed)
'''
germlines_json = json.load(open(germlines_data, 'r'))
g_json = json.load(open(germlines_data, 'r'))
path = g_json['path']
germlines_json = g_json['systems']
files = []
for germline in germlines_json.keys():
......@@ -16,6 +18,7 @@ def get_required_files(germlines_data):
for gene in ['5', '4', '3']:
if gene in recombination:
for f in recombination[gene]:
f = path + '/' + f
if f not in files:
files.append(f)
return files
......
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