INNER CODE UNIT · Python
cluster_counts
wheaton5/souporcell · consensus.py:205
cluster_counts = [0]*(max_cluster+1)
for (cell, cluster) in cell_clusters.items():
cluster_counts[cluster] += 1
cell_index = {}
total_lost = 0
loci_counts = {}
loci_full_counts = {}
cell_counts = {}
with open(args.ref_matrix) as ref:
with open(args.alt_matrix) as alt:
alt.readline()
alt.readline()
tokens = alt.readline().strip().split()
cells = int(tokens[1])
total_loci = int(tokens[0])
ref.readline()
ref.readline()