-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathconfig.vsh.yaml
More file actions
112 lines (104 loc) · 3.52 KB
/
Copy pathconfig.vsh.yaml
File metadata and controls
112 lines (104 loc) · 3.52 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: leiden
namespace: "cluster"
scope: "public"
description: |
Cluster cells using the [Leiden algorithm] [Traag18] implemented in the [Scanpy framework] [Wolf18].
Leiden is an improved version of the [Louvain algorithm] [Blondel08].
It has been proposed for single-cell analysis by [Levine15] [Levine15].
This requires having ran `neighbors/find_neighbors` or `neighbors/bbknn` first.
[Blondel08]: Blondel et al. (2008), Fast unfolding of communities in large networks, J. Stat. Mech.
[Levine15]: Levine et al. (2015), Data-Driven Phenotypic Dissection of AML Reveals Progenitor-like Cells that Correlate with Prognosis, Cell.
[Traag18]: Traag et al. (2018), From Louvain to Leiden: guaranteeing well-connected communities arXiv.
[Wolf18]: Wolf et al. (2018), Scanpy: large-scale single-cell gene expression data analysis, Genome Biology.
authors:
- __merge__: /src/authors/dries_de_maeyer.yaml
roles: [ author ]
arguments:
# input
- name: "--input"
alternatives: [-i]
type: file
description: Input file.
direction: input
required: true
example: input.h5mu
- name: "--modality"
description: |
Which modality from the input MuData file to process.
type: string
default: "rna"
required: false
- name: "--obsp_connectivities"
type: string
description: In which .obsp slot the neighbor connectivities can be found.
default: "connectivities"
# output
- name: "--output"
alternatives: ["-o"]
type: file
description: Output file.
direction: output
required: true
example: output.h5mu
- name: "--obsm_name"
type: string
description: |
Name of the .obsm key under which to add the cluster labels.
The name of the columns in the matrix will correspond to the resolutions.
default: "leiden"
- name: --flavor
type: string
description: |
Which package's implementation to use.
choices: ["leidenalg", "igraph"]
default: "leidenalg"
- name: "--n_iterations"
required: false
type: integer
min: 1
description: |
How many iterations of the Leiden clustering algorithm to perform.
When defined, positive values above 2 define the total number of iterations to perform.
When not set, the algorithm will run until it reaches its optimal clustering.
- name: "--seed"
required: false
type: integer
description: |
Fix the initialization of the optimization. Can be used to increase reproducibility.
min: 0
# arguments
- name: "--resolution"
type: double
description: |
A parameter value controlling the coarseness of the clustering. Higher values lead to more clusters.
Multiple values will result in clustering being performed multiple times.
default: [1]
required: true
multiple: true
__merge__: [., /src/base/h5_compression_argument.yaml]
resources:
- type: python_script
path: script.py
- path: /src/utils/setup_logger.py
- path: /src/utils/compress_h5mu.py
test_resources:
- type: python_script
path: test.py
- path: /resources_test/pbmc_1k_protein_v3
engines:
- type: docker
image: python:3.13-slim
setup:
- type: apt
packages:
- procps
- type: python
__merge__: [/src/base/requirements/anndata_mudata.yaml, /src/base/requirements/scanpy.yaml, .]
packages:
- leidenalg~=0.11.0
__merge__: [ /src/base/requirements/python_test_setup.yaml ]
runners:
- type: executable
- type: nextflow
directives:
label: [highcpu, midmem, middisk]