I am currently running the code for a program called HotNet.
In its simpleRun.py file, there is a place to insert a file path to be run.
parser.add_argument('-mf', '--infmat_file', required=True,
help='Path to .mat file containing influence matrix')
My path file is /home/lai/Downloads/influence_matrix_files/hprd_inf_.mat
; and I have tried to add it in as such:
parser.add_argument('-mf', '--infmat_file', required=True,
help= /home/lai/Downloads/influence_matrix_file/hprd_inf_.mat)
But I get SyntaxError
when running the code:
File "simpleRun.py", line 29
help= ~/home/lai/Downloads/influence_matrix_files/hprd_inf_.mat)
^
SyntaxError: invalid syntax
I have also tried to place the path in quotes (as strings ' '
) but that isn't processed.
I have tried removing the /
however that just returns the following error:
NameError: global name 'home' is not defined
How do I fix this?