File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def main():
4040@click .option ('--isolates' , is_flag = False , help = 'Include isolates' )
4141@click .option ('-l' , '--log' , is_flag = True , help = 'Activate debug mode' )
4242def kernel (
43- path : str ,
43+ network : str ,
4444 output : str = OUTPUT ,
4545 isolates : bool = None ,
4646 log : bool = None
@@ -60,11 +60,11 @@ def kernel(
6060 logging .basicConfig (level = logging .INFO )
6161 logger .setLevel (logging .INFO )
6262
63- click .echo (f'Loading graph from { path } ' )
63+ click .echo (f'Loading graph from { network } ' )
6464
6565 # TODO Here goes a function that loads a graph using pandas from csv file and returns a networkx object
6666 # Temporary is used the PyBEL import function
67- graph = pybel .from_pickle (path )
67+ graph = pybel .from_pickle (network )
6868
6969 if isolates :
7070 click .echo (f'Removing { nx .number_of_isolates (graph )} isolated nodes' )
@@ -79,7 +79,7 @@ def kernel(
7979 background_mat = regularised_laplacian_kernel (graph )
8080 exe_t_f = time .time ()
8181
82- output_file = os .path .join (output , f'{ path .split ("/" )[- 1 ]} .pickle' )
82+ output_file = os .path .join (output , f'{ network .split ("/" )[- 1 ]} .pickle' )
8383
8484 # Export numpy array
8585 with open (output_file , 'wb' ) as file :
You can’t perform that action at this time.
0 commit comments