You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"name": "TypeError",
"message": "'NoneType' object is not iterable",
"stack": "---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[8], line 1
----> 1 gene_level_graph, num2gene, gen2num = pre.construct_genelevel_graph(grns, celllevel_adj, node_type=\"int\")
3 len(gene_level_graph.nodes())
File ~/sur/GRN/clarify/src/preprocessing.py:261, in construct_genelevel_graph(disjoint_grns, celllevel_adj_list, node_type, lrgenes)
258 num2gene = {} #dictionary that maps the supergraph integer nodes to the gene name (Cell#_gene#)
259 gene2num = {} #dictionary that maps the gene name (Cell#_gene#) to the supergraph integer node
--> 261 assert max(lrgenes) <= numgenes
263 grn_graph_list = []
264 for cellnum, grn in enumerate(track(disjoint_grns, description=f\"[cyan]3a. Combining individual GRNs\")):
TypeError: 'NoneType' object is not iterable"
}
In your preprocessing.ipynb file, you call the pre.construct_genelevel_graph function without passing lrgenes. lrgenes defaults to None, but you use lrgenes later
The text was updated successfully, but these errors were encountered:
In your
preprocessing.ipynb
file, you call thepre.construct_genelevel_graph
function without passinglrgenes
.lrgenes
defaults toNone
, but you uselrgenes
laterThe text was updated successfully, but these errors were encountered: