diff options
Diffstat (limited to 'Code')
-rw-r--r-- | Code/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Code/utils.py b/Code/utils.py index f78980a..405dccb 100644 --- a/Code/utils.py +++ b/Code/utils.py @@ -28,6 +28,8 @@ def make_new_edges_file(Sold, Snew, fname_new, output_file): if target_id + '_' + tf_id in Sdiff: # this is a new edge line, keep it result.append(line) with open(output_file, 'w') as f: + header = '\t'.join(['target_id target_name', 'source_id source_name', 'score', 'type of score', 'RNA-seqs', 'ChIP-seq', 'Log likelihood', 'Date', 'Strength', 'Inference method']) + '\n' + f.write(header) for line in result: f.write(line + '\n') |