aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorzsloan2021-10-12 19:15:55 +0000
committerzsloan2021-10-12 19:15:55 +0000
commit30d00f4db20ea9dce827fc4f4ac3d50221ad3823 (patch)
treecf9a40dbcdd4f94a780773147e08d0fe735c8207 /gn3
parent0f396f4a1a753d449cf2975fc425d587d9350689 (diff)
downloadgenenetwork3-30d00f4db20ea9dce827fc4f4ac3d50221ad3823.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 45232e3..bb28dc3 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
@@ -187,7 +187,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]