@@ -46,9 +46,9 @@ def get_sections_to_process(sections_path, select_sections=None):
4646
4747 return sorted (selected_zarrs , key = lambda p : int (p .stem .split ('_' )[- 1 ]))
4848
49- def get_v1_merfish_cells (abc_cache = None , output_path = None ):
50- if output_path and output_path .exists ():
51- v1_merfish_cells = pd .read_csv (output_path , index_col = 0 )
49+ def get_v1_merfish_cells (abc_cache = None , df_path = None ):
50+ if df_path and df_path .exists ():
51+ v1_merfish_cells = pd .read_csv (df_path , index_col = 0 )
5252 else :
5353 # Get MERFISH CCF metadata
5454 print ('V1 cell df not found, generating new one...' )
@@ -59,9 +59,9 @@ def get_v1_merfish_cells(abc_cache=None, output_path=None):
5959 file_name = 'cell_metadata_with_parcellation_annotation'
6060 ).set_index ('cell_label' )
6161 v1_merfish_cells = merfish_ccf_metadata .loc [merfish_ccf_metadata ['parcellation_structure' ]== 'VISp' ]
62- if output_path :
63- print (f' Saving df to: { output_path } ")
64- v1_merfish_cells .to_csv (output_path )
62+ # Save created df
63+ print (f" Saving df to: { df_path } " )
64+ v1_merfish_cells .to_csv (output_path )
6565 return v1_merfish_cells
6666
6767def get_nodes_to_drop (cells_df , abc_cache , h_level = 'subclass' , min_cells = 0 ):
0 commit comments