Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion AMULET.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ def generateMatrix(data, cellids, unionoverlaps):

regioninfo = dict()

matrix = np.zeros((len(unionoverlaps), len(cellids)))
# Indicator matrix only ever stores 0/1 (peak-in-cell), so int8 is
# sufficient and 8x smaller than the float64 default. This is the
# binding memory constraint for high-per-cell-coverage assays
# (e.g. 10x Chromium multiome at 25K+ cells/library). See #28.
matrix = np.zeros((len(unionoverlaps), len(cellids)), dtype=np.int8)
for i in range(len(data)):
curchr = data[i,0]
curstart = data[i,1]
Expand Down