Skip to content

Commit d6a4e65

Browse files
luisabenderclaude
andcommitted
Remove template boilerplate comments from spearman_corr config
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent e1b90c5 commit d6a4e65

1 file changed

Lines changed: 13 additions & 55 deletions

File tree

Lines changed: 13 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,48 @@
1-
# The API specifies which type of component this is.
2-
# It contains specifications for:
3-
# - The input/output files
4-
# - Common parameters
5-
# - A unit test
61
__merge__: ../../api/comp_metric.yaml
72

8-
# A unique identifier for your component (required).
9-
# Can contain only lowercase letters or underscores.
103
name: spearman_corr
114

12-
13-
14-
# Metadata for your component
155
info:
166
metrics:
17-
# A unique identifier for your metric (required).
18-
# Can contain only lowercase letters or underscores.
197
- name: spearman_corr
20-
# A relatively short label, used when rendering visualisarions (required)
218
label: Spearman's Corr
22-
# A one sentence summary of how this metric works (required). Used when
23-
# rendering summary tables.
249
summary: "Computes the Spearman rank correlation coefficient between inferred and ground-truth pseudotime."
25-
# A multi-line description of how this component works (required). Used
26-
# when rendering reference documentation.
2710
description: |
2811
Calculates the Spearman rank correlation coefficient (rho) between predicted cell pseudotime
2912
values and the true ground-truth pseudotime. Measures monotonic relationships regardless of linearity.
30-
3113
references:
32-
doi:
14+
doi:
3315
- 10.1038/s41592-020-0772-5
3416
bibtex: |
35-
@article{Virtanen_2020,
36-
author = {Virtanen, Pauli and Gommers, Ralf and Oliphant, Travis E. and Haberland, Matt and Reddy, Tyler and Cournapeau, David and Burovski, Evgeni and Peterson, Pearu and Weckesser, Warren and Bright, Jonathan and {van der Walt}, St{\'e}fan J. and Brett, Matthew and Wilson, Joshua and Jarrod Millman, K. and Mayorov, Nikolay and Nelson, Andrew R. J. and Jones, Eric and Kern, Robert and Larson, Eric and Carey, C. J. and Polat, {\dot{I}}lhan and Feng, Yu and Moore, Eric W. and VanderPlas, Jake and Laxalde, Denis and Perktold, Josef and Cimrman, Robert and Henriksen, Ian and Quintero, E. A. and Harris, Charles R. and Archibald, Anne M. and Ribeiro, Ant{\^o}nio H. and Pedregosa, Fabian and {van Mulbregt}, Paul and {SciPy 1.0 Contributors}},
37-
title = {Author Correction: SciPy 1.0: fundamental algorithms for scientific computing in Python},
38-
journal = {Nature Methods},
39-
volume = {17},
40-
number = {3},
41-
pages = {352},
42-
year = {2020},
43-
doi = {10.1038/s41592-020-0772-5}
44-
}
45-
17+
@article{Virtanen_2020,
18+
author = {Virtanen, Pauli and Gommers, Ralf and Oliphant, Travis E. and Haberland, Matt and Reddy, Tyler and Cournapeau, David and Burovski, Evgeni and Peterson, Pearu and Weckesser, Warren and Bright, Jonathan and {van der Walt}, St{\'e}fan J. and Brett, Matthew and Wilson, Joshua and Jarrod Millman, K. and Mayorov, Nikolay and Nelson, Andrew R. J. and Jones, Eric and Kern, Robert and Larson, Eric and Carey, C. J. and Polat, {\dot{I}}lhan and Feng, Yu and Moore, Eric W. and VanderPlas, Jake and Laxalde, Denis and Perktold, Josef and Cimrman, Robert and Henriksen, Ian and Quintero, E. A. and Harris, Charles R. and Archibald, Anne M. and Ribeiro, Ant{\^o}nio H. and Pedregosa, Fabian and {van Mulbregt}, Paul and {SciPy 1.0 Contributors}},
19+
title = {Author Correction: SciPy 1.0: fundamental algorithms for scientific computing in Python},
20+
journal = {Nature Methods},
21+
volume = {17},
22+
number = {3},
23+
pages = {352},
24+
year = {2020},
25+
doi = {10.1038/s41592-020-0772-5}
26+
}
4627
links:
47-
# URL to the documentation for this metric (required).
4828
documentation: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.spearmanr.html
49-
# URL to the code repository for this metric (required).
5029
repository: https://github.com/scipy/scipy
51-
# The minimum possible value for this metric (required)
5230
min: -1
53-
# The maximum possible value for this metric (required)
5431
max: 1
55-
# Whether a higher value represents a 'better' solution (required)
5632
maximize: true
5733

58-
# Component-specific parameters (optional)
59-
# arguments:
60-
#- name: "--true_col"
61-
# type: string
62-
#default: "pseudotime_true"
63-
#description: "obs column name for ground-truth pseudotime"
64-
# - name: "--inferred_col"
65-
# type: string
66-
# default: "pseudotime"
67-
# description: "obs column name for inferred pseudotime"
68-
69-
# Resources required to run the component
7034
resources:
71-
# The script of your component (required)
7235
- type: python_script
7336
path: script.py
74-
# Additional resources your script needs (optional)
75-
# - type: file
76-
# path: weights.pt
7737

7838
engines:
7939
- type: docker
8040
image: python:3.11-slim
8141
setup:
8242
- type: apt
8343
packages:
84-
- procps
85-
- git
44+
- procps # required by Nextflow
45+
- git # pip needs it to install openproblems core from git+https
8646
- type: python
8747
packages:
8848
- anndata~=0.10.0
@@ -96,9 +56,7 @@ engines:
9656
- "openproblems-bio/core#subdirectory=packages/python/openproblems"
9757

9858
runners:
99-
# This platform allows running the component natively
10059
- type: executable
101-
# Allows turning the component into a Nextflow module / pipeline.
10260
- type: nextflow
10361
directives:
10462
label: [midtime,midmem,midcpu]

0 commit comments

Comments
 (0)