@@ -234,10 +234,14 @@ def validate(config: str, output_folder: str, debug: bool):
234234 type = str ,
235235 default = '{}' ,
236236 help = 'JSON string of arguments for the corrector (default: {})' )
237+ @click .option ('--include-ids' ,
238+ type = click .Path (exists = True , dir_okay = False ),
239+ default = None ,
240+ help = 'Path to text file with study IDs/PMIDs to include (one per line)' )
237241@click .option ('--debug' , is_flag = True ,
238242 help = 'Enable debug mode with post-mortem debugging on errors' )
239243def meta (output_folder : str , estimator : str , estimator_args : str ,
240- corrector : str , corrector_args : str , debug : bool ):
244+ corrector : str , corrector_args : str , include_ids : str , debug : bool ):
241245 """
242246 Run meta-analyses on Autonima output using NiMARE.
243247
@@ -252,6 +256,7 @@ def meta(output_folder: str, estimator: str, estimator_args: str,
252256 --estimator-args JSON string of arguments for the estimator
253257 --corrector Corrector to use (fdr, montecarlo, bonferroni)
254258 --corrector-args JSON string of arguments for the corrector
259+ --include-ids Path to newline-delimited study IDs/PMIDs for post-hoc filtering
255260
256261 Examples:
257262 autonima meta results/outputs
@@ -292,7 +297,8 @@ def meta(output_folder: str, estimator: str, estimator_args: str,
292297 estimator_name = estimator ,
293298 estimator_args = estimator_args_dict ,
294299 corrector_name = corrector ,
295- corrector_args = corrector_args_dict
300+ corrector_args = corrector_args_dict ,
301+ include_ids = include_ids ,
296302 )
297303
298304 print (f"Completed meta-analyses for { len (results )} columns" )
@@ -359,4 +365,4 @@ def main():
359365
360366
361367if __name__ == "__main__" :
362- main ()
368+ main ()
0 commit comments