Skip to content

Commit 316092d

Browse files
committed
black applied
1 parent b567fa4 commit 316092d

File tree

7 files changed

+43
-16
lines changed

7 files changed

+43
-16
lines changed

grim/conf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424

2525

2626
__author__ = """Martin Maiers"""
27-
__email__ = '[email protected]'
28-
__version__ = '0.0.7'
27+
__email__ = "[email protected]"
28+
__version__ = "0.0.7"

grim/imputation/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222

2323
__author__ = """Martin Maiers"""
24-
__email__ = '[email protected]'
25-
__version__ = '0.0.7'
24+
__email__ = "[email protected]"
25+
__version__ = "0.0.7"

grim/imputation/graph_generation/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222

2323
__author__ = """Martin Maiers"""
24-
__email__ = '[email protected]'
25-
__version__ = '0.0.7'
24+
__email__ = "[email protected]"
25+
__version__ = "0.0.7"

grim/imputation/imputegl/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323

2424

2525
__author__ = """Martin Maiers"""
26-
__email__ = '[email protected]'
27-
__version__ = '0.0.7'
26+
__email__ = "[email protected]"
27+
__version__ = "0.0.7"

grim/imputation/imputegl/impute.py

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,31 @@ def clean_up_gl(gl):
119119

120120

121121
class Imputation(object):
122-
__slots__ = 'logger', 'verbose', 'populations', 'netGraph', 'priorMatrix', 'full_hapl', 'index_dict', 'full_loci', \
123-
'factor', '_factor_missing_data', 'cypher', 'cypher_plan_b', 'matrix_planb', 'count_by_prob', \
124-
'number_of_options_threshold', 'plan', 'option_1', 'option_2', \
125-
'haplotypes_number_in_phase', 'save_space_mode', 'nodes_for_plan_A', 'unk_priors'
122+
__slots__ = (
123+
"logger",
124+
"verbose",
125+
"populations",
126+
"netGraph",
127+
"priorMatrix",
128+
"full_hapl",
129+
"index_dict",
130+
"full_loci",
131+
"factor",
132+
"_factor_missing_data",
133+
"cypher",
134+
"cypher_plan_b",
135+
"matrix_planb",
136+
"count_by_prob",
137+
"number_of_options_threshold",
138+
"plan",
139+
"option_1",
140+
"option_2",
141+
"haplotypes_number_in_phase",
142+
"save_space_mode",
143+
"nodes_for_plan_A",
144+
"unk_priors",
145+
)
146+
126147
def __init__(self, net=None, config=None, count_by_prob=None, verbose=False):
127148
"""Constructor
128149
Intialize an instance of `Imputation` with a py2neo graph
@@ -394,7 +415,6 @@ def get_haplo_freqs(self, haplos, epsilon, n=25000):
394415
# haplos_joined = ["~".join(sorted(item)) for sublist in haplos for item in sublist]
395416
return self.netGraph.adjs_query(haplos_joined)
396417

397-
398418
# def get_haplo_freqs_miss(self, haplos, epsilon):
399419
# haplo_probs = {}
400420
# haplos_joined = ["~".join(sorted(item)) for sublist in haplos for item in sublist]

grim/imputation/imputegl/networkx_graph.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ def missing(labelA, labelB):
99

1010

1111
class Graph(object):
12-
__slots__ = 'graph', 'labelDict', 'whole_graph', 'full_loci', 'nodes_plan_a', 'nodes_plan_b'
12+
__slots__ = (
13+
"graph",
14+
"labelDict",
15+
"whole_graph",
16+
"full_loci",
17+
"nodes_plan_a",
18+
"nodes_plan_b",
19+
)
1320

1421
def __init__(self, config):
1522
self.graph = nx.DiGraph()

grim/validation/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121

2222

2323
__author__ = """Martin Maiers"""
24-
__email__ = '[email protected]'
25-
__version__ = '0.0.7'
24+
__email__ = "[email protected]"
25+
__version__ = "0.0.7"

0 commit comments

Comments
 (0)