Skip to content

Commit 88e02ab

Browse files
committed
fix: pathway names
1 parent e804da2 commit 88e02ab

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

datasets/synthetic_data/Snakefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,22 @@ rule threshold:
8181
expand("thresholded/{threshold}/{{pathway}}/gold_standard_edges.txt", threshold=thresholds)
8282
shell:
8383
"uv run scripts/sampling.py {wildcards.pathway}"
84+
85+
rule make_pathway_map:
86+
input:
87+
"raw/pathways.txt"
88+
output:
89+
"processed/pathway_id_mapping.tsv"
90+
shell:
91+
"uv run scripts/list_curated_pathways.py"
92+
93+
for pathway in pathways:
94+
rule:
95+
input:
96+
"processed/pathway_id_mapping.tsv",
97+
"raw/pc-panther-biopax.owl"
98+
output:
99+
"intermediate/pathway-data/{pathway}.owl",
100+
"intermediate/pathway-data/{pathway}.sif"
101+
shell:
102+
f"uv run scripts/fetch_pathway.py {pathway}"

datasets/synthetic_data/pathways.jsonc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[
2-
// "CCKR signaling map", TODO: not a valid pathway name?
2+
// Commonly known as the "CCKR signaling map", PathwayCommons also does not map this one correctly:
3+
// TODO: report to PathwayCommons: see https://apps.pathwaycommons.org/pathways?uri=https%3A%2F%2Fidentifiers.org%2Fpanther.pathway%3AP06959
4+
"Gastrin_CCK2R_240212",
35
"Wnt signaling pathway",
46
"VEGF signaling pathway",
57
"Toll receptor signaling pathway",
@@ -15,7 +17,9 @@
1517
"Hedgehog signaling pathway",
1618
"FGF signaling pathway",
1719
"FAS signaling pathway",
18-
// "Endothelin signaling pathway", TODO: not a valid pathway name?
20+
// This is actually the Endothelin signaling pathway.
21+
// TODO: report to PathwayCommons: see https://apps.pathwaycommons.org/pathways?uri=https%3A%2F%2Fidentifiers.org%2Fpanther.pathway%3AP00019.
22+
"untitled",
1923
"EGF receptor signaling pathway",
2024
"Cadherin signaling pathway",
2125
"Apoptosis signaling pathway",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ line-length = 150
2828
exclude = ["spras"]
2929

3030
[tool.ruff.lint]
31-
unfixable = ["E712"]
31+
extend-ignore = ["E712"]
3232

3333
[tool.uv]
3434
package = true

0 commit comments

Comments
 (0)