Skip to content

Commit 52e4ea9

Browse files
committed
chore: disable more pathways
:/
1 parent ede59e3 commit 52e4ea9

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

datasets/synthetic_data/pathways.jsonc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
"Notch signaling pathway",
1111
"JAK/STAT signaling pathway",
1212
"Interleukin signaling pathway",
13-
// TODO: Inspect why this pathway doesn't work well for sampling.
13+
// TODO: Inspect why these pathway doesn't work well for sampling.
1414
// "Interferon-gamma signaling pathway",
15-
"Integrin signalling pathway",
15+
// "Integrin signalling pathway",
1616
"Insulin/IGF pathway-protein kinase B signaling cascade",
17-
"Inflammation mediated by chemokine and cytokine signaling pathway",
17+
// TODO: and this one
18+
// "Inflammation mediated by chemokine and cytokine signaling pathway",
1819
"Hedgehog signaling pathway",
1920
"FGF signaling pathway",
2021
"FAS signaling pathway",

datasets/synthetic_data/scripts/sampling.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from tools.sample import attempt_sample
66
from tools.trim import trim_data_file
77
from datasets.synthetic_data.scripts.util.parser import parser
8+
import random
89

910
synthetic_directory = Path(__file__).parent.parent.resolve()
1011

@@ -63,7 +64,13 @@ def sources_and_targets(pathway_node_prizes_df: pandas.DataFrame) -> SourcesTarg
6364

6465

6566
def main():
66-
pathway_name = parser().parse_args().pathway
67+
arg_parser = parser()
68+
arg_parser.add_argument("--seed", "The seed to use", type=int, required=False)
69+
args = arg_parser.parse_args()
70+
pathway_name = args.pathway
71+
if args.seed is not None:
72+
random.seed(args.seed)
73+
6774
print("Reading interactome...")
6875
interactome_df = pandas.read_csv(
6976
synthetic_directory / "processed" / "interactome.tsv",

0 commit comments

Comments
 (0)