Skip to content

Commit b1e08b8

Browse files
authored
feat: dataset categories (#49)
* chore: fix up config, bump cores * chore: bump web dependencies * feat: use visjs * feat: categorization * chore: mv to type-category-dataset * chore: mv type category dataset slug * chore: mv again * feat: fully handle categories * feat: more prefix fixing * feat: type category * style: fmt * fix: up pnpm lock * fix: export datasets * style: fmt
1 parent 0665403 commit b1e08b8

File tree

24 files changed

+616
-348
lines changed

24 files changed

+616
-348
lines changed

configs/dmmm.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ algorithms:
4242
datasets:
4343
# TODO: use old paramaters for datasets
4444
# HIV: https://github.com/Reed-CompBio/spras-benchmarking/blob/0293ae4dc0be59502fac06b42cfd9796a4b4413e/hiv-benchmarking/spras-config/config.yaml
45-
- label: dmmmhiv060
45+
- label: dmmmhiv_060
4646
node_files: ["processed_prize_060.txt"]
4747
edge_files: ["../../../databases/irefindex/phosphosite-irefindex13.0-uniprot.txt"]
4848
other_files: []
4949
data_dir: "datasets/hiv/processed"
50-
- label: dmmmhiv05
50+
- label: dmmmhiv_05
5151
node_files: ["processed_prize_05.txt"]
5252
edge_files: ["../../../databases/irefindex/phosphosite-irefindex13.0-uniprot.txt"]
5353
other_files: []
@@ -58,21 +58,21 @@ datasets:
5858
edge_files: ["network1.txt"]
5959
other_files: []
6060
data_dir: "datasets/yeast-osmotic-stress/processed"
61-
- label: dmmmalopecia_areata
61+
- label: dmmmdiseases_alopecia_areata
6262
data_dir: datasets/diseases
6363
edge_files:
6464
- raw/string_interactome.txt
6565
node_files:
6666
- prize_files/alopecia_areata_prizes.txt
6767
other_files: []
68-
- label: dmmmdiabetes_mellitus
68+
- label: dmmmdiseases_diabetes_mellitus
6969
data_dir: datasets/diseases
7070
edge_files:
7171
- raw/string_interactome.txt
7272
node_files:
7373
- prize_files/diabetes_mellitus_prizes.txt
7474
other_files: []
75-
- label: dmmmcellline_fadu
75+
- label: dmmmdepmap_cellline_fadu
7676
data_dir: datasets/depmap
7777
edge_files: ["../../databases/irefindex/phosphosite-irefindex13.0-uniprot.txt"]
7878
node_files: ["processed/FADU_cell_line_prizes_input_nonzero.txt"]
@@ -81,12 +81,12 @@ gold_standards:
8181
- label: gs0
8282
node_files: ['GS_files/Alopecia_areata_GS.txt']
8383
data_dir: "datasets/diseases"
84-
dataset_labels: ["dmmmalopecia_areata"]
84+
dataset_labels: ["dmmmdiseases_alopecia_areata"]
8585
- label: gs1
8686
node_files: ['GS_files/Diabetes_mellitus_GS.txt']
8787
data_dir: "datasets/diseases"
88-
dataset_labels: ["dmmmdiabetes_mellitus"]
88+
dataset_labels: ["dmmmdiseases_diabetes_mellitus"]
8989
- label: gs_fadu
9090
node_files: ["processed/FADU_gold_standard.txt"]
9191
data_dir: datasets/depmap
92-
dataset_labels: ["dmmmcellline_fadu"]
92+
dataset_labels: ["dmmmdepmap_cellline_fadu"]

configs/pra.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ algorithms:
4949
include: true
5050

5151
datasets:
52-
- label: pramuscleskeletal2018
52+
- label: prarn_muscleskeletal2018
5353
node_files: ["sources.txt", "targets.txt"]
5454
# DataLoader.py can currently only load a single edge file, which is the primary network
5555
edge_files: ["interactome.tsv"]

web/.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 120,
3+
"plugins": ["prettier-plugin-astro"],
4+
"overrides": [
5+
{
6+
"files": "*.astro",
7+
"options": {
8+
"parser": "astro"
9+
}
10+
}
11+
]
12+
}

web/astro.config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @ts-check
2-
import { defineConfig } from 'astro/config';
2+
import { defineConfig } from "astro/config";
33

44
// https://astro.build/config
55
export default defineConfig({
6-
base: '/spras-benchmarking',
7-
trailingSlash: 'always'
6+
base: "/spras-benchmarking",
7+
trailingSlash: "always",
88
});

web/package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,25 @@
33
"type": "module",
44
"version": "0.0.1",
55
"scripts": {
6-
"prepare-output": "mkdir -p public/data && cp -r ../output/ public/data",
6+
"prepare-output": "mkdir -p public/data && cp -r ../output/ public/data && cp -r ../configs/ public/data",
77
"dev": "pnpm prepare-output && astro dev",
88
"build": "pnpm prepare-output && astro build",
99
"preview": "astro preview",
10-
"astro": "astro"
10+
"astro": "astro",
11+
"format": "pnpm exec prettier . --write"
1112
},
1213
"dependencies": {
1314
"@fontsource-variable/noto-sans": "^5.2.10",
1415
"astro": "^5.16.6",
1516
"dayjs": "^1.11.19",
1617
"medium-zoom": "^1.1.0",
17-
"sass": "^1.97.1"
18+
"sass": "^1.97.1",
19+
"yaml": "^2.8.2"
1820
},
1921
"devDependencies": {
22+
"prettier": "3.7.4",
23+
"prettier-plugin-astro": "0.14.1",
2024
"vis-data": "^8.0.3",
2125
"vis-network": "^10.0.2"
2226
}
23-
}
27+
}

web/pnpm-lock.yaml

Lines changed: 60 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/src/components/Colors.astro

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,41 @@
11
<style is:global lang="scss">
2-
@use 'sass:color';
2+
@use "sass:color";
33

4-
$color-1: oklch(0.6744 0.1426 151.9);
5-
$color-2: oklch(0.6376 0.2299 24.84);
6-
$color-3: oklch(0.8002 0.1669 74.36);
7-
$color-4: oklch(0.6465 0.1022 212.93);
4+
$color-1: oklch(0.6744 0.1426 151.9);
5+
$color-2: oklch(50.908% 0.1675 306.81);
6+
$color-3: oklch(0.6376 0.2299 24.84);
7+
$color-4: oklch(0.8002 0.1669 74.36);
8+
$color-5: oklch(0.6465 0.1022 212.93);
89

9-
.color-1 { color: color.adjust($color-1, $lightness: -20%); }
10-
.color-2 { color: color.adjust($color-2, $lightness: -20%); }
11-
.color-3 { color: color.adjust($color-3, $lightness: -20%); }
12-
.color-4 { color: color.adjust($color-4, $lightness: -20%); }
10+
.color-1 {
11+
color: color.adjust($color-1, $lightness: -20%);
12+
}
13+
.color-2 {
14+
color: color.adjust($color-2, $lightness: -20%);
15+
}
16+
.color-3 {
17+
color: color.adjust($color-3, $lightness: -20%);
18+
}
19+
.color-4 {
20+
color: color.adjust($color-4, $lightness: -20%);
21+
}
22+
.color-5 {
23+
color: color.adjust($color-5, $lightness: -20%);
24+
}
1325

14-
.color-1-dark { color: color.adjust($color-1, $lightness: -40%); }
15-
.color-2-dark { color: color.adjust($color-2, $lightness: -40%); }
16-
.color-3-dark { color: color.adjust($color-3, $lightness: -40%); }
17-
.color-4-dark { color: color.adjust($color-4, $lightness: -40%); }
26+
.color-1-dark {
27+
color: color.adjust($color-1, $lightness: -40%);
28+
}
29+
.color-2-dark {
30+
color: color.adjust($color-2, $lightness: -40%);
31+
}
32+
.color-3-dark {
33+
color: color.adjust($color-3, $lightness: -40%);
34+
}
35+
.color-4-dark {
36+
color: color.adjust($color-4, $lightness: -40%);
37+
}
38+
.color-5-dark {
39+
color: color.adjust($color-5, $lightness: -40%);
40+
}
1841
</style>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import mediumZoom from 'medium-zoom';
2+
import mediumZoom from "medium-zoom";
33

4-
mediumZoom('[data-zoomable]')
4+
mediumZoom("[data-zoomable]");
55
</script>

0 commit comments

Comments
 (0)