Skip to content

Commit

Permalink
small fix to differential and regionpositional
Browse files Browse the repository at this point in the history
  • Loading branch information
zouter committed May 23, 2024
1 parent f1e696d commit c9795d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/chromatinhd/models/diff/interpret/regionpositional.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ def get_plotdata(self, region: str, clusters=None, relative_to=None) -> (pd.Data
def scored(self):
return len(self.probs) > 0

def calculate_slices(self, prob_cutoff=0.0, clusters_oi=None, cluster_grouping=None, step=1):
def calculate_slices(self, prob_cutoff=1.5, clusters_oi=None, cluster_grouping=None, step=1):
start_position_ixs = []
end_position_ixs = []
data = []
Expand Down Expand Up @@ -530,7 +530,7 @@ def calculate_top_slices(self, slices, fc_cutoff=2.0):
)
return differential_slices

def select_windows(self, region_id, max_merge_distance=500, min_length=50, padding=500, prob_cutoff=0.5):
def select_windows(self, region_id, max_merge_distance=500, min_length=50, padding=500, prob_cutoff=1.5):
"""
Select windows based on the number of fragments
Expand Down
2 changes: 1 addition & 1 deletion src/chromatinhd/models/diff/plot/differential.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def _draw_differential(ax, plotdata_cluster, plotdata_mean, cmap_atac_diff, norm


def _scale_differential(ax, ymax):
ax.set_yscale("symlog", linthresh=5)
ax.set_yscale("symlog", linthresh=25)
ax.set_ylim(0, ymax)


Expand Down

0 comments on commit c9795d6

Please sign in to comment.