Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comseg cli #76

Merged
merged 31 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix comma
  • Loading branch information
tdefa committed Jun 11, 2024
commit 207dffc58f138a61a586331c3d985f38e1afe425
4 changes: 1 addition & 3 deletions sopa/cli/patchify.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,11 @@ def _transcript_segmentation(
unassigned_value (int): "If cell-key is provided, this is the value given to transcripts that are not inside any cell (if it's already 0, don't provide this argument)"

"""
from sopa._constants import SopaFiles, SopaKeys
from sopa._constants import SopaFiles
from sopa._sdata import get_key
from sopa.io.standardize import read_zarr_standardized, sanity_check
from sopa.patches import Patches2D

from .utils import _default_boundary_dir

sdata = read_zarr_standardized(sdata_path)
sanity_check(sdata)

Expand Down
4 changes: 2 additions & 2 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ checkpoint patchify_comseg:
"sopa"
shell:
"""
sopa patchify comseg {paths.sdata_path} {params.args_patchify} {params.args_comseg}
sopa patchify comseg {paths.sdata_path} {params.args_patchify} {params.args_comseg}
"""

rule patch_segmentation_cellpose:
Expand Down Expand Up @@ -132,7 +132,7 @@ rule patch_segmentation_comseg:
mem_mb=128_000,
shell:
"""
sopa segmentation comseg {paths.sdata_path} --patch-dir {paths.smk_comseg_temp_dir} --patch-index {wildcards.index}
sopa segmentation comseg {paths.sdata_path} --patch-dir {paths.smk_comseg_temp_dir} --patch-index {wildcards.index}
"""

def get_input_resolve(name, dirs=False):
Expand Down
Loading