Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
katerinakazantseva committed Jun 6, 2024
1 parent dbfd603 commit 53f6ebb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion strainy/clustering/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def clusters_vis_stats(G, cl, clN, uncl, edge, I):
plt.close()

# Calculate statistics
logger.debug("Summary for: %s" + edge)
logger.debug("Summary for: " + edge)
logger.debug("Clusters found: " + str(clN))
logger.debug("Reads unclassified: " + str(uncl))
logger.debug("Number of reads in each cluster: ")
Expand Down Expand Up @@ -99,6 +99,10 @@ def cluster(i, flye_consensus):
m.to_csv("%s/adj_M/adj_M_%s_%s_%s.csv" % (StRainyArgs().output_intermediate, edge, I, StRainyArgs().AF))
logger.info("### Removing overweighed egdes...")
m = matrix.remove_edges(m, R)

#m1 = m
m.columns = range(0,len(cl['ReadName']))
m.index=range(0,len(cl['ReadName']))
# BUILD graph and find clusters
logger.info("### Creating graph...")
G = gfa_ops.from_pandas_adjacency_notinplace(matrix.change_w(m.transpose(), R))
Expand Down

0 comments on commit 53f6ebb

Please sign in to comment.