-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSnakefile
More file actions
executable file
·80 lines (65 loc) · 1.65 KB
/
Snakefile
File metadata and controls
executable file
·80 lines (65 loc) · 1.65 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
import json
import pickle
from functools import partial
import cyvcf2
import os
import os.path
import pandas as pd
config["human_mutation_rate"] = 1.29e-8
os.environ["SCRM_PATH"] = config["scrm_path"]
os.environ["PSMC_PATH"] = config["psmc_path"]
import matplotlib.pyplot as plt
import matplotlib
import matplotlib as mpl
import matplotlib.transforms as mtransforms
import scienceplots
plt.style.use('science')
mpl.rcParams['font.size'] = 12
mpl.rcParams['mathtext.fontset'] = 'stix'
mpl.rcParams['text.latex.preamble'] = r'''
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{times}
'''
def load_file(path):
if path.endswith("json"):
decoder = json
mode = "t"
else:
assert path.endswith("pkl"), path
decoder = pickle
mode = "b"
with open(path, "r" + mode) as f:
return decoder.load(f)
def dump_file(obj, path):
if path.endswith("json"):
encoder = json
mode = "t"
else:
assert path.endswith("pkl")
encoder = pickle
mode = "b"
with open(path, "w" + mode) as f:
encoder.dump(obj, f)
workdir: config["workdir"]
ALL_OUTPUT = []
def input_for_all(_):
return ALL_OUTPUT
rule all:
input:
input_for_all,
include: "snakefiles/unified"
include: "snakefiles/ccr"
include: "snakefiles/sim"
include: "snakefiles/phlash"
include: "snakefiles/psmc"
include: "snakefiles/smcpp"
include: "snakefiles/h2h"
include: "snakefiles/bottleneck"
include: "snakefiles/composite"
include: "snakefiles/fitcoal"
include: "snakefiles/msmc2"
include: "snakefiles/independence"
include: "snakefiles/adna"
include: "snakefiles/misc_plots"
include: "snakefiles/bench"