@@ -75,24 +75,37 @@ def cli(logging_level, **kwargs):
7575@cli .command ()
7676@click .argument ("psms" , required = True , type = click .Path (exists = True , dir_okay = False ))
7777@click .option (
78- "--psm-filetype" , "-t" , type = click .Choice (PSM_FILETYPES ), default = None ,
78+ "--psm-filetype" ,
79+ "-t" ,
80+ type = click .Choice (PSM_FILETYPES ),
81+ default = None ,
7982 help = "File type for the input PSM file. Inferred from extension if not provided." ,
8083)
8184@click .option (
82- "--reference" , type = click .Path (exists = True , dir_okay = False ), default = None ,
85+ "--reference" ,
86+ type = click .Path (exists = True , dir_okay = False ),
87+ default = None ,
8388 help = "Reference PSM file for calibration or fine-tuning." ,
8489)
8590@click .option (
86- "--reference-filetype" , "-r" , type = click .Choice (PSM_FILETYPES ), default = None ,
91+ "--reference-filetype" ,
92+ "-r" ,
93+ type = click .Choice (PSM_FILETYPES ),
94+ default = None ,
8795 help = "File type for the reference file. Inferred from extension if not provided." ,
8896)
8997@click .option (
90- "--finetune" , is_flag = True , default = False ,
98+ "--finetune" ,
99+ is_flag = True ,
100+ default = False ,
91101 help = "Fine-tune the model to the reference before predicting. Requires --reference." ,
92102)
93103@click .option ("--output" , "-o" , type = str , default = None , help = "Output file path." )
94104@click .option (
95- "--model" , "-m" , type = click .Path (exists = True , dir_okay = False ), default = None ,
105+ "--model" ,
106+ "-m" ,
107+ type = click .Path (exists = True , dir_okay = False ),
108+ default = None ,
96109 help = "Path to a model file. Uses the built-in default model if not provided." ,
97110)
98111def predict (psms , psm_filetype , reference , reference_filetype , finetune , output , model ):
0 commit comments