This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def triu(arr, value=np.nan, k=0, copy=False): | |
| """ | |
| Upper triangle of an array. | |
| Modifies input array, such that its elements below the k-th diagonal | |
| are filled with value (returns modified copy, when requested instead). | |
| Assumes that the input array is 2D. | |
| Parameters | |
| ---------- |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import numpy as np | |
| from itertools import combinations | |
| from functools import partial | |
| from scipy.linalg import toeplitz | |
| import pandas as pd | |
| from cooltools.lib.checks import ( | |
| is_compatible_viewframe, | |
| is_valid_expected, | |
| is_cooler_balanced, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| f = clr.open('r') | |
| reader = cooler.core._rangequery.CSRReader(f['pixels'], f['indexes/bin1_offset'][:]) | |
| sel = cooler.core._rangequery.DirectRangeQuery2D(reader, "count", bbox=[0,1000,0,1000], chunksize=1_000_000) | |
| sel_low = cooler.core._rangequery.FillLowerRangeQuery2D(reader, "count", bbox=[0,1000,0,1000], chunksize=1_000_000) | |
| cooler.core._rangequery.FillLowerRangeQuery2D | |
| plt.imshow(np.log(sel_low.to_array())) | |
| sel.tasks | |
| for g in sel: | |
| print(g) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder