Skip to content

Commit

Permalink
add metadata file in web report
Browse files Browse the repository at this point in the history
  • Loading branch information
huidongchen committed Mar 19, 2019
1 parent edba17d commit ed7b619
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stream/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4551,6 +4551,8 @@ def save_web_report(adata,n_genes=5,file_name='stream_report',preference=None,
dict_nodes_label = nx.get_node_attributes(flat_tree,'label')
dict_label_node = {value: key for key,value in nx.get_node_attributes(flat_tree,'label').items()}

adata.obs[['label','label_color']].to_csv(os.path.join(reportdir,'metadata.tsv'),sep = '\t',index = True)

print('Generating coordinates of cells in 3D plots...')
#coordinates of cells in 3D plots
df_sample = adata.obs[['label','label_color']].copy()
Expand Down

0 comments on commit ed7b619

Please sign in to comment.