-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconfig.vsh.yaml
More file actions
83 lines (69 loc) · 2.34 KB
/
config.vsh.yaml
File metadata and controls
83 lines (69 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
__merge__: /src/api/comp_method_transcript_assignment.yaml
name: rna2seg
label: "RNA2Seg Transcript Assignment"
summary: "Assign transcripts to cells using the RNA2Seg method"
description: "RNA2seg is a deep learning-based segmentation model designed to improve cell segmentation in Imaging-based Spatial Transcriptomics (IST)."
links:
documentation: "https://rna2seg.readthedocs.io/en/latest/index.html"
repository: "https://github.com/fish-quant/rna2seg"
references:
doi: "10.1101/2025.03.03.641259"
arguments:
- name: --transcripts_key
type: string
description: The key of the transcripts within the points of the spatial data
default: transcripts
- name: --coordinate_system
type: string
description: The key of the pixel space coordinate system within the spatial data
default: global
- name: --flow_threshold
type: double
description: Flow threshold for detecting cells
default: 0.9
- name: --cellbound_flow_threshold
type: double
description: Cell boundary flow threshold for detecting cells
default: 0.4
- name: --create_cytoplasm_image
type: boolean
description: Whether to create an artificial cytoplasm image based on thresholding the nuclear stain image
default: False
- name: --cytoplasm_min_threshold
type: double
description: Minimum percentile for cytoplasm image thresholding
default: 0.25
- name: --cytoplasm_max_threshold
type: double
description: Maximum percentile for cytoplasm image thresholding
default: 0.75
- name: patch_width
type: integer
description: Size of sopa patches to tile over image for parallelization. May affect segmentation output.
default: 1000
- name: patch_overlap
type: integer
description: Overlap of sopa patches to tile over image for parallelization.
default: 50
resources:
- type: python_script
path: script.py
engines:
- type: docker
image: openproblems/base_python:1
__merge__:
- /src/base/setup_spatialdata_partial.yaml
setup:
- type: docker
# env:
# - PATH="/root/.cargo/bin:${PATH}"
run:
- apt-get update && apt-get install libgl1 -y
- type: python
pypi: [rna2seg, "numcodecs==0.15.1"]
- type: native
runners:
- type: executable
- type: nextflow
directives:
label: [ hightime, highcpu, midmem ]