2929
3030@click .group ()
3131def cli () -> None :
32- """
33- Convert standard technology data formats to SpatialData object.
32+ """Convert standard technology data formats to SpatialData object.
3433
3534 Usage:
3635
@@ -66,7 +65,7 @@ def _input_output_click_options(func: Callable[..., None]) -> Callable[..., None
6665 help = "Whether the .fcs file is provided if False a .csv file is expected. [default: True]" ,
6766)
6867def codex_wrapper (input : str , output : str , fcs : bool = True ) -> None :
69- """Codex conversion to SpatialData"""
68+ """Codex conversion to SpatialData. """
7069 sdata = codex (input , fcs = fcs ) # type: ignore[name-defined] # noqa: F821
7170 sdata .write (output )
7271
@@ -76,15 +75,15 @@ def codex_wrapper(input: str, output: str, fcs: bool = True) -> None:
7675@click .option ("--dataset-id" , type = str , default = None , help = "Name of the dataset [default: None]" )
7776@click .option ("--transcripts" , type = bool , default = True , help = "Whether to load transcript information. [default: True]" )
7877def cosmx_wrapper (input : str , output : str , dataset_id : str | None = None , transcripts : bool = True ) -> None :
79- """Cosmic conversion to SpatialData"""
78+ """Cosmic conversion to SpatialData. """
8079 sdata = cosmx (input , dataset_id = dataset_id , transcripts = transcripts ) # type: ignore[name-defined] # noqa: F821
8180 sdata .write (output )
8281
8382
8483@cli .command (name = "curio" )
8584@_input_output_click_options
8685def curio_wrapper (input : str , output : str ) -> None :
87- """Curio conversion to SpatialData"""
86+ """Curio conversion to SpatialData. """
8887 sdata = curio (input ) # type: ignore[name-defined] # noqa: F821
8988 sdata .write (output )
9089
@@ -117,7 +116,7 @@ def dbit_wrapper(
117116 border : bool = True ,
118117 border_scale : float = 1 ,
119118) -> None :
120- """Conversion of DBit-seq to SpatialData"""
119+ """Conversion of DBit-seq to SpatialData. """
121120 sdata = dbit ( # type: ignore[name-defined] # noqa: F821
122121 input ,
123122 anndata_path = anndata_path ,
@@ -174,7 +173,7 @@ def iss_wrapper(
174173 multiscale_image : bool = True ,
175174 multiscale_labels : bool = True ,
176175) -> None :
177- """ISS conversion to SpatialData"""
176+ """ISS conversion to SpatialData. """
178177 sdata = iss ( # type: ignore[name-defined] # noqa: F821
179178 input ,
180179 raw_relative_path ,
@@ -194,7 +193,7 @@ def iss_wrapper(
194193)
195194@click .option ("--output" , "-o" , type = click .Path (), help = "Path to the output.zarr file." , required = True )
196195def mcmicro_wrapper (input : str , output : str ) -> None :
197- """Conversion of MCMicro to SpatialData"""
196+ """Conversion of MCMicro to SpatialData. """
198197 sdata = mcmicro (input ) # type: ignore[name-defined] # noqa: F821
199198 sdata .write (output )
200199
@@ -233,7 +232,7 @@ def merscope_wrapper(
233232 cells_table : bool = True ,
234233 mosaic_images : bool = True ,
235234) -> None :
236- """Merscope conversion to SpatialData"""
235+ """Merscope conversion to SpatialData. """
237236 sdata = merscope ( # type: ignore[name-defined] # noqa: F821
238237 input ,
239238 vpt_outputs = vpt_outputs ,
@@ -273,7 +272,7 @@ def seqfish_wrapper(
273272 cells_as_circles : bool = False ,
274273 rois : list [int ] | None = None ,
275274) -> None :
276- """Seqfish conversion to SpatialData"""
275+ """Seqfish conversion to SpatialData. """
277276 rois = list (rois ) if rois else None
278277 sdata = seqfish ( # type: ignore[name-defined] # noqa: F821
279278 input ,
@@ -296,7 +295,7 @@ def seqfish_wrapper(
296295 help = "What kind of labels to use. [default: 'deepcell']" ,
297296)
298297def steinbock_wrapper (input : str , output : str , labels_kind : Literal ["deepcell" , "ilastik" ] = "deepcell" ) -> None :
299- """Steinbock conversion to SpatialData"""
298+ """Steinbock conversion to SpatialData. """
300299 sdata = steinbock (input , labels_kind = labels_kind ) # type: ignore[name-defined] # noqa: F821
301300 sdata .write (output )
302301
@@ -320,7 +319,7 @@ def stereoseq_wrapper(
320319 read_square_bin : bool = True ,
321320 optional_tif : bool = False ,
322321) -> None :
323- """Stereoseq conversion to SpatialData"""
322+ """Stereoseq conversion to SpatialData. """
324323 sdata = stereoseq (input , dataset_id = dataset_id , read_square_bin = read_square_bin , optional_tif = optional_tif ) # type: ignore[name-defined] # noqa: F821
325324 sdata .write (output )
326325
@@ -361,7 +360,7 @@ def visium_wrapper(
361360 tissue_positions_file : str | Path | None = None ,
362361 scalefactors_file : str | Path | None = None ,
363362) -> None :
364- """Visium conversion to SpatialData"""
363+ """Visium conversion to SpatialData. """
365364 sdata = visium ( # type: ignore[name-defined] # noqa: F821
366365 input ,
367366 dataset_id = dataset_id ,
@@ -424,7 +423,7 @@ def visium_hd_wrapper(
424423 load_all_images : bool = False ,
425424 annotate_table_by_labels : bool = False ,
426425) -> None :
427- """Visium HD conversion to SpatialData"""
426+ """Visium HD conversion to SpatialData. """
428427 sdata = visium_hd ( # type: ignore[name-defined] # noqa: F821
429428 path = input ,
430429 dataset_id = dataset_id ,
@@ -483,7 +482,7 @@ def xenium_wrapper(
483482 cells_table : bool = True ,
484483 n_jobs : int = 1 ,
485484) -> None :
486- """Xenium conversion to SpatialData"""
485+ """Xenium conversion to SpatialData. """
487486 sdata = xenium ( # type: ignore[name-defined] # noqa: F821
488487 input ,
489488 cells_boundaries = cells_boundaries ,
@@ -637,7 +636,7 @@ def read_generic_wrapper(
637636 data_axes : str | None = None ,
638637 coordinate_system : str | None = None ,
639638) -> None :
640- """Read generic data to SpatialData"""
639+ """Read generic data to SpatialData. """
641640 generic_to_zarr (input = input , output = output , name = name , data_axes = data_axes , coordinate_system = coordinate_system )
642641
643642
0 commit comments