aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorzsloan2021-10-12 19:15:55 +0000
committerzsloan2022-03-22 19:16:47 +0000
commitd7f9cd14089a23a3d3bab8b54320a9ef4844e560 (patch)
tree50983b223d9a2a742c8c6ecbe3fea1a5ba4fc86a /gn3
parent14cadeb87e2a98300c7d47cf51d19c2e3508affe (diff)
downloadgenenetwork3-d7f9cd14089a23a3d3bab8b54320a9ef4844e560.tar.gz
Fixed mypy typing errors
Diffstat (limited to 'gn3')
-rw-r--r--gn3/computations/rqtl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gn3/computations/rqtl.py b/gn3/computations/rqtl.py
index 8d066ef..4327cac 100644
--- a/gn3/computations/rqtl.py
+++ b/gn3/computations/rqtl.py
@@ -105,8 +105,8 @@ def pairscan_for_figure(file_name: str) -> Dict:
# Open the map file with the list of markers/pseudomarkers and their positions
with open(os.path.join(current_app.config.get("TMPDIR", "/tmp"),
"output", "MAP_" + file_name), "r") as the_file:
- chr_list = []
- pos_list = []
+ chr_list = [] # type: List
+ pos_list = [] # type: List
for i, line in enumerate(the_file):
if i == 0: # Skip first line
continue
@@ -188,7 +188,7 @@ def build_marker_pos_dict(genotype_file: str) -> Dict:
mb_exists = "Mb" in header_items
pos_column = header_items.index("Mb") if mb_exists else header_items.index("cM")
- the_markers = {}
+ the_markers = {"1": {}} # type: Dict[str, Dict]
for line in lines[1:]: # The lines with markers
line_items = line.split("\t")
this_chr = line_items[0]