@@ -52,7 +52,7 @@ def gen_filter_jobs():
5252@mkdir ("tables" )
5353@mkdir ("filtered.data" )
5454@files (gen_filter_jobs )
55- def filter_mudata (infile_path ,outfile ):
55+ def filter_spatialdata (infile_path ,outfile ):
5656 print ('processing file = %s' % str (infile_path ))
5757 log_file = os .path .basename (outfile )
5858 log_file = "1_filtering." + log_file .replace ("filtered.zarr" ,"" ) + ".log"
@@ -61,15 +61,15 @@ def filter_mudata(infile_path,outfile):
6161 filter_dict = dictionary_stripper (PARAMS ['filtering' ])
6262 cmd = """
6363 python %(py_path)s/run_filter_spatial.py
64- --input_mudata %(infile_path)s
65- --output_mudata %(outfile)s
64+ --input_spatialdata %(infile_path)s
65+ --output_spatialdata %(outfile)s
6666 --filter_dict "%(filter_dict)s"
6767 """
6868 if PARAMS ['filtering_keep_barcodes' ] is not None :
6969 cmd += " --keep_barcodes %(filtering_keep_barcodes)s"
7070 cmd += " > logs/%(log_file)s "
7171 job_kwargs ["job_threads" ] = PARAMS ['resources_threads_low' ]
72- log_msg = f"TASK: 'filter_mudata '" + f" IN CASE OF ERROR, PLEASE REFER TO : 'logs/{ log_file } ' FOR MORE INFORMATION."
72+ log_msg = f"TASK: 'filter_spatialdata '" + f" IN CASE OF ERROR, PLEASE REFER TO : 'logs/{ log_file } ' FOR MORE INFORMATION."
7373 get_logger ().info (log_msg )
7474 P .run (cmd , ** job_kwargs )
7575
@@ -84,7 +84,7 @@ def run_plotqc_query(pqc_dict):
8484
8585@active_if (run_plotqc_query (PARAMS ['plotqc' ]))
8686@active_if (PARAMS ['filtering_run' ])
87- @transform (filter_mudata ,
87+ @transform (filter_spatialdata ,
8888 regex ("./filtered.data/(.*)_filtered.zarr" ),
8989 r"./logs/2_postfilterplot.\1.log" )
9090def postfilterplot_spatial (filt_file ,log_file ):
@@ -93,7 +93,7 @@ def postfilterplot_spatial(filt_file,log_file):
9393 spatial_filetype = PARAMS ["assay" ]
9494 cmd = """
9595 python %(py_path)s/plot_qc_spatial.py
96- --input_mudata %(filt_file)s
96+ --input_spatialdata %(filt_file)s
9797 --spatial_filetype %(spatial_filetype)s
9898 --figdir ./figures/spatial
9999 """
@@ -108,7 +108,7 @@ def postfilterplot_spatial(filt_file,log_file):
108108 P .run (cmd , ** job_kwargs )
109109
110110
111- @transform (filter_mudata ,
111+ @transform (filter_spatialdata ,
112112 regex ("./filtered.data/(.*)_filtered.zarr" ),
113113 r"./logs/3_preprocess.\1.log" )
114114def spatial_preprocess (filt_file ,log_file ):
@@ -119,8 +119,8 @@ def spatial_preprocess(filt_file,log_file):
119119 write_output = os .path .join ("./tmp/" ,os .path .basename (filt_file ))
120120 cmd = """
121121 python %(py_path)s/run_preprocess_spatial.py
122- --input_mudata %(filt_file)s
123- --output_mudata %(write_output)s
122+ --input_spatialdata %(filt_file)s
123+ --output_spatialdata %(write_output)s
124124 --figdir ./figures/spatial
125125 """
126126 if PARAMS ['spatial_norm_hvg_flavour' ] is not None :
@@ -154,7 +154,7 @@ def spatial_preprocess(filt_file,log_file):
154154 get_logger ().info (log_msg )
155155 P .run (cmd , ** job_kwargs )
156156
157- @follows (filter_mudata , postfilterplot_spatial , spatial_preprocess )
157+ @follows (filter_spatialdata , postfilterplot_spatial , spatial_preprocess )
158158@originate ("cleanup_done.txt" )
159159def cleanup (file ):
160160 # remove any ctmp fails
0 commit comments