blob: 3819b62821ec6b52a2039cc2de3d07ba339d1af2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"""module contains code to preprocess and call wgcna script"""
import os
import json
import uuid
from gn3.settings import TMPDIR
def dump_wgcna_data(request_data):
"""function to dump request data to json file"""
filename = f"{str(uuid.uuid4())}.json"
temp_file_path = os.path.join(TMPDIR, filename)
with open(temp_file_path, "w") as output_file:
json.dump(request_data, output_file)
return temp_file_path
|