Skip to content

Commit

Permalink
Move total_bins out
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Apr 28, 2024
1 parent 4a4f99b commit 3f1c377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jcvi/assembly/hic.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ def heatmap(args):
logger.debug("Resolution set to %d", resolution)
# Load the matrix
A = np.load(npyfile)
total_bins = header["total_bins"]

# Select specific submatrix
if contig:
Expand All @@ -741,7 +742,6 @@ def heatmap(args):
contig_end = contig_start + contig_size
A = A[contig_start:contig_end, contig_start:contig_end]
else:
total_bins = header["total_bins"]
A = A[:total_bins, :total_bins]

# Convert seqids to positions for each group
Expand Down

0 comments on commit 3f1c377

Please sign in to comment.