Skip to content

Commit

Permalink
generate_input() additions
Browse files Browse the repository at this point in the history
  • Loading branch information
sumedhars committed Sep 11, 2024
1 parent fc7d746 commit 8934b4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spras/omicsintegrator1.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def write_conf(filename=Path('config.txt'), w=None, b=None, d=None, mu=None, noi
class OmicsIntegrator1(PRM):
required_inputs = ['prizes', 'edges', 'dummy_nodes']

#TODO: edit generate_inputs to include NODEID (check notes)
#TODO: TEST !!!!! + test files??

@staticmethod
def generate_inputs(data, filename_map):
Expand Down Expand Up @@ -94,7 +94,7 @@ def generate_inputs(data, filename_map):
if node_df.contains_node_columns('dummy'):
dummy_df = node_df[node_df['dummy'] == True]
# save as list of dummy nodes
dummy_df.to_csv(filename_map['dummy_nodes'], sep='\t', index=False, columns=['NODEID'], header=None)
dummy_df.to_csv(filename_map['dummy_nodes'], sep='\t', index=False, columns=['NODEID', 'dummy'], header=['NODEID', 'dummy'])
else:
# create empty dummy file
with open(filename_map['dummy_nodes'], mode='w') as file:
Expand Down

0 comments on commit 8934b4c

Please sign in to comment.