From 09a80c440daeda7f33cb1930cbff964a012bf5b6 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 21 Oct 2020 15:36:42 -0500 Subject: Ensured all Y axis ticks in the mapping figure are below the top of the figure, but it would probably be ideal to scale things such that the top tick is at the top of the figure * wqflask/wqflask/marker_regression/display_mapping_results.py - Set LRS_LOD_Max (the top tick value) as the maximum value between the significant value (if permutations are used) and the max LRS/LOD value; previously it would set it as the significant value * 1.1 if the significant value exists and is higher than the max LRS/LOD value. --- wqflask/wqflask/marker_regression/display_mapping_results.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index 79266df2..a74f87bd 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -2074,9 +2074,7 @@ class DisplayMappingResults(object): pass if self.permChecked and self.nperm > 0 and not self.multipleInterval: - if self.significant > LRS_LOD_Max: - LRS_LOD_Max = self.significant * 1.1 - #LRS_LOD_Max = max(self.significant, LRS_LOD_Max) + LRS_LOD_Max = max(self.significant, LRS_LOD_Max) else: LRS_LOD_Max = 1.15*LRS_LOD_Max -- cgit v1.2.3 From e2b803a0721ef8589b304661d1420967c419003d Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 21 Oct 2020 15:48:17 -0500 Subject: Removed code setting the maximum tick value to 1.15* the max LRS/LOD if permutations aren't used --- wqflask/wqflask/marker_regression/display_mapping_results.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index a74f87bd..c364c0db 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -2075,8 +2075,6 @@ class DisplayMappingResults(object): if self.permChecked and self.nperm > 0 and not self.multipleInterval: LRS_LOD_Max = max(self.significant, LRS_LOD_Max) - else: - LRS_LOD_Max = 1.15*LRS_LOD_Max #genotype trait will give infinite LRS LRS_LOD_Max = min(LRS_LOD_Max, webqtlConfig.MAXLRS) -- cgit v1.2.3