@@ -25,7 +25,7 @@ def label_components():
2525 help = "Minimal length for filtering out connected components." )
2626 parser .add_argument ("--max_edge_distance" , type = float , default = 30 ,
2727 help = "Maximal distance in micrometer between points to create edges for connected components." )
28- parser .add_argument ("-c" , "--components" , type = str , nargs = "+" , default = [1 ], help = "List of connected components." )
28+ parser .add_argument ("-c" , "--components" , type = int , nargs = "+" , default = [1 ], help = "List of connected components." )
2929
3030 # options for S3 bucket
3131 parser .add_argument ("--s3" , action = "store_true" , help = "Flag for using S3 bucket." )
@@ -41,7 +41,7 @@ def label_components():
4141
4242 label_components_single (
4343 table_path = args .input ,
44- output_path = args .output ,
44+ out_path = args .output ,
4545 cell_type = args .cell_type ,
4646 component_list = args .components ,
4747 max_edge_distance = args .max_edge_distance ,
@@ -66,7 +66,7 @@ def tonotopic_mapping():
6666
6767 # options for tonotopic mapping
6868 parser .add_argument ("--animal" , type = str , default = "mouse" ,
69- help = "Animyl type to be used for frequency mapping. Either 'mouse' or 'gerbil'." )
69+ help = "Animal type to be used for frequency mapping. Either 'mouse' or 'gerbil'." )
7070 parser .add_argument ("--otof" , action = "store_true" , help = "Use frequency mapping for OTOF cochleae." )
7171 parser .add_argument ("--apex_position" , type = str , default = "apex_higher" ,
7272 help = "Use frequency mapping for OTOF cochleae." )
@@ -76,7 +76,7 @@ def tonotopic_mapping():
7676 help = "Cell type of segmentation. Either 'sgn' or 'ihc'." )
7777 parser .add_argument ("--max_edge_distance" , type = float , default = 30 ,
7878 help = "Maximal distance in micrometer between points to create edges for connected components." )
79- parser .add_argument ("-c" , "--components" , type = str , nargs = "+" , default = [1 ], help = "List of connected components." )
79+ parser .add_argument ("-c" , "--components" , type = int , nargs = "+" , default = [1 ], help = "List of connected components." )
8080
8181 # options for S3 bucket
8282 parser .add_argument ("--s3" , action = "store_true" , help = "Flag for using S3 bucket." )
@@ -92,7 +92,7 @@ def tonotopic_mapping():
9292
9393 tonotopic_mapping_single (
9494 table_path = args .input ,
95- output_path = args .output ,
95+ out_path = args .output ,
9696 force_overwrite = args .force ,
9797 animal = args .animal ,
9898 otof = args .otof ,
@@ -122,7 +122,7 @@ def object_measures():
122122 parser .add_argument ("--force" , action = "store_true" , help = "Forcefully overwrite output." )
123123
124124 # options for object measures
125- parser .add_argument ("-c" , "--components" , type = str , nargs = "+" , default = [1 ], help = "List of components." )
125+ parser .add_argument ("-c" , "--components" , type = int , nargs = "+" , default = [1 ], help = "List of components." )
126126 parser .add_argument ("-r" , "--resolution" , type = float , nargs = "+" , default = [0.38 , 0.38 , 0.38 ],
127127 help = "Resolution of input in micrometer." )
128128 parser .add_argument ("--bg_mask" , action = "store_true" , help = "Use background mask for calculating object measures." )
0 commit comments