Skip to content

Commit ed7b619

Browse files
committed
add metadata file in web report
1 parent edba17d commit ed7b619

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stream/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4551,6 +4551,8 @@ def save_web_report(adata,n_genes=5,file_name='stream_report',preference=None,
45514551
dict_nodes_label = nx.get_node_attributes(flat_tree,'label')
45524552
dict_label_node = {value: key for key,value in nx.get_node_attributes(flat_tree,'label').items()}
45534553

4554+
adata.obs[['label','label_color']].to_csv(os.path.join(reportdir,'metadata.tsv'),sep = '\t',index = True)
4555+
45544556
print('Generating coordinates of cells in 3D plots...')
45554557
#coordinates of cells in 3D plots
45564558
df_sample = adata.obs[['label','label_color']].copy()

0 commit comments

Comments
 (0)