text: Search.setIndex({docnames:["api","apidoc/modules","apidoc/swnn","apidoc/swnn.builder","apidoc/swnn.graph2tree","apidoc/swnn.multipartite_graph","apidoc/swnn.utils","apidoc/swnn.utils.plot","apidoc/swnn.utils.process","citation","generated/swnn.Builder","generated/swnn.adaptive_tree","generated/swnn.change_names","generated/swnn.check_dirs","generated/swnn.describe_dataframe","generated/swnn.group_mean","generated/swnn.group_mean_adata","generated/swnn.groupwise_hvgs_freq","generated/swnn.normalize_default","generated/swnn.quick_preprocess_raw","generated/swnn.set_adata_hvgs","generated/swnn.set_precomputed_neighbors","generated/swnn.stagewise_knn","generated/swnn.wrapper_scale","index","installation","tutorial/tutorial_builder_based","tutorials"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":4,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,"sphinx.ext.todo":2,nbsphinx:3,sphinx:56},filenames:["api.rst","apidoc/modules.rst","apidoc/swnn.rst","apidoc/swnn.builder.rst","apidoc/swnn.graph2tree.rst","apidoc/swnn.multipartite_graph.rst","apidoc/swnn.utils.rst","apidoc/swnn.utils.plot.rst","apidoc/swnn.utils.process.rst","citation.rst","generated/swnn.Builder.rst","generated/swnn.adaptive_tree.rst","generated/swnn.change_names.rst","generated/swnn.check_dirs.rst","generated/swnn.describe_dataframe.rst","generated/swnn.group_mean.rst","generated/swnn.group_mean_adata.rst","generated/swnn.groupwise_hvgs_freq.rst","generated/swnn.normalize_default.rst","generated/swnn.quick_preprocess_raw.rst","generated/swnn.set_adata_hvgs.rst","generated/swnn.set_precomputed_neighbors.rst","generated/swnn.stagewise_knn.rst","generated/swnn.wrapper_scale.rst","index.rst","installation.rst","tutorial/tutorial_builder_based.ipynb","tutorials.rst"],objects:{"":{swnn:[2,0,0,"-"]},"swnn.Builder":{__init__:[10,2,1,""]},"swnn.builder":{Builder:[3,1,1,""],BuilderParams:[3,1,1,""]},"swnn.builder.Builder":{build_graph:[3,2,1,""],build_tree:[3,2,1,""],connect:[3,4,1,""],connect_bin:[3,4,1,""],distmat:[3,4,1,""],edgedf:[3,4,1,""],group_lbs:[3,4,1,""],refined_group_lbs:[3,4,1,""],stage_lbs:[3,4,1,""]},"swnn.builder.BuilderParams":{keys:[3,4,1,""],update:[3,2,1,""]},"swnn.graph2tree":{adaptive_tree:[4,3,1,""],agg_group_edge_props:[4,3,1,""],agg_group_edges:[4,3,1,""],connect_near_stages:[4,3,1,""],find_children:[4,3,1,""],make_children_dict:[4,3,1,""],make_stage_group_dict:[4,3,1,""],max_connection:[4,3,1,""]},"swnn.multipartite_graph":{approx_knn:[5,3,1,""],pca_transform:[5,3,1,""],stagewise_knn:[5,3,1,""]},"swnn.utils":{process:[8,0,0,"-"]},"swnn.utils.process":{change_names:[8,3,1,""],check_dirs:[8,3,1,""],describe_dataframe:[8,3,1,""],describe_series:[8,3,1,""],group_mean:[8,3,1,""],group_mean_adata:[8,3,1,""],group_mean_dense:[8,3,1,""],group_median_dense:[8,3,1,""],groupwise_hvgs_freq:[8,3,1,""],label_binarize_each:[8,3,1,""],make_binary:[8,3,1,""],normalize_default:[8,3,1,""],normalize_log_then_total:[8,3,1,""],quick_preprocess_raw:[8,3,1,""],reverse_dict:[8,3,1,""],set_adata_hvgs:[8,3,1,""],set_precomputed_neighbors:[8,3,1,""],take_high_freq_elements:[8,3,1,""]},swnn:{Builder:[10,1,1,""],adaptive_tree:[11,3,1,""],builder:[3,0,0,"-"],change_names:[12,3,1,""],check_dirs:[13,3,1,""],describe_dataframe:[14,3,1,""],graph2tree:[4,0,0,"-"],group_mean:[15,3,1,""],group_mean_adata:[16,3,1,""],groupwise_hvgs_freq:[17,3,1,""],multipartite_graph:[5,0,0,"-"],normalize_default:[18,3,1,""],quick_preprocess_raw:[19,3,1,""],set_adata_hvgs:[20,3,1,""],set_precomputed_neighbors:[21,3,1,""],stagewise_knn:[22,3,1,""],utils:[6,0,0,"-"],wrapper_scale:[23,3,1,""]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","function","Python function"],"4":["py","property","Python property"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:function","4":"py:property"},terms:{"0":[4,5],"07":[3,6,8],"0802073":26,"1":[3,4,5,8,11,18,19,22],"10":[3,26],"100":[4,8],"11":26,"11594469":26,"12":26,"12650372":26,"13":26,"13195746":26,"14":26,"1477":26,"15":[8,21,26],"1596":26,"16":26,"17":26,"18":[6,8,26],"1826":26,"19452356":26,"19844045":26,"2020":8,"2021":[3,6],"20785098":26,"2164":26,"23":26,"24410":26,"24499079":26,"25":3,"25703438":26,"25878315":26,"28615636":26,"29775":26,"3":[8,24],"30":[5,22,26],"35525173":26,"39":26,"4":26,"4098":26,"4399":26,"4448":26,"4613":26,"4775":26,"4992":26,"5":[3,5,22,24,26],"50":[3,5],"544568643":24,"581227":26,"584790":26,"6":[24,26],"676985":26,"7":26,"8":26,"9":26,"946490":26,"985633":26,"class":[3,8,10,15],"default":[3,4,5,8,11,18,22,26],"function":[8,15,23],"import":[0,24,26],"int":[3,4,5,8,19,22],"return":[3,4,5,8,11,12,16,17,18,19,22],"true":[3,4,5,8,15,16,17,19,20,22,23,26],"try":26,"var":26,"while":[3,5,22],And:24,For:8,If:[3,4,5,8,11,19,22,24,26],It:24,Or:25,The:[3,5,22,24],To:27,_:[3,4,11],__init__:[6,10],_lineag:26,_stage:26,_temp:26,ac:24,access:[8,16],across:24,adapt:[3,4,11,24],adaptive_tre:4,adata:[8,16,17,18,19,20,21,23,26],adata_norm1:26,adata_norm:26,adata_raw:26,add:26,adj:4,adj_max:[4,11],adjac:[4,5,11,22],adjust:[3,5,22],adopt:26,affect:[8,19],after:[3,5,8,19,22],agg_group_edg:4,agg_group_edge_prop:4,aggreg:26,algorithm:5,all:[8,16],alreadi:26,also:26,among:[8,17],amphioxu:24,amss:24,an:[4,11,26],analysi:[8,19],anndata:[8,16,17,18,19,23,26],api:24,append:26,approx_knn:5,approxim:[3,5,22],ar:[4,11,24,26],arrai:[4,11,26],asdf:4,assign:[4,11],asstr:8,attribut:10,author:[3,6,8],auto:5,automat:[3,4,11],averag:[8,16],axi:4,b:[24,26],b_0:26,b_1:26,b_2:26,back:26,backup:[8,20],ball_tre:5,balltre:[3,5,22],base:[3,24,26],base_on:5,batch:[8,17,19,23,26],batch_kei:[8,19,26],befor:[8,19],being:[8,17],better:[4,8,11,19,26],between:4,binar:[3,5,22],binari:[8,15,16],binary_edg:[3,5,22],bool:[3,5,8,15,16,17,19,22],brute:[3,5,22],build:[3,4,5,11,22],build_graph:[3,5,22,24,26],build_param:[3,10],build_tre:[3,24,26],builder:[0,1,2,24,26],builderparam:3,calcul:[3,5,22],callabl:26,can:[24,26],caus:[3,4,5,11,22],cd:[24,25],cell:[0,2,3,4,8,11,19,24],center:[8,19,23,26],chang:[8,19,20],change_nam:[8,26],check_dir:[8,26],children:4,children_dict:4,citat:24,cite:9,clone:[24,25],cluster:[3,4,8,11,19,24],cn:24,co:[8,19],code:24,color:26,column:[3,4,8,11,16,17,19,26],column_ch:4,column_pa:4,com:[24,25],commonli:26,complet:27,compon:[3,5,22],comput:[8,16,17,20,24],confound:8,connect:[3,4,5,8,21,22,24,26],connect_bin:3,connect_near_stag:4,construct:[0,2,24],content:1,copi:[8,18,19,20,23,26],cosin:[5,8,21],count:[8,17,18,19],cprocess:23,created:[3,6,8],csc_matrix:[4,11],csc_spars:4,csr_matrix:[3,5,22],current:[3,4,11],d:[8,26],data:[2,3,5,8,19,20,22,23,24],data_matrix:[24,26],datadir:26,datafram:[3,4,8,11,16],dataset:[8,18],decid:[4,11],depth:[8,19],descend:[4,26],describe_datafram:[8,26],describe_seri:8,descript:26,detail:[0,24],development:[0,2,3,4,11],df2edg:4,df:[8,14,15],df_tree:4,dict:[4,8,17],differ:[8,26],dimens:26,dimension:[8,19],directli:26,directori:26,distanc:[3,5,8,21,22],distmat:[3,5,22,24,26],distribut:[8,19],e:[3,4,8,11,19,24],each:[3,4,5,8,11,16,17,19,22,24],edg:[3,4,5,11,22,26],edgedf:[3,4,11,24,26],effici:[8,15],element:[4,26],embed:24,embryon:24,empti:[3,4,11],en:24,end:25,equal:[8,19],exact:[3,5,22,26],exampl:[4,11,23],exist:26,explicitli:[4,11],ext_sep:[3,4,11],extend:23,extract:[3,4,11],f:24,factor:[8,18],fall:26,fals:[4,5,8,15,16,18,19,20,22,23],faster:[3,5,22],featur:[8,15,16],fetch:25,figdir:26,figur:26,file:[3,6,8,26],find:[3,5,22],find_children:4,first:26,follow:[8,18,24],fontsiz:26,forc:[3,5,22],freq:8,frequenc:[8,17,26],from:[0,2,3,4,11,25],further:24,g3:[24,26],g3_0:26,g3_1:26,g3_2:26,g3_3:26,g3_4:26,g3_5:26,g3_6:26,g4:[24,26],g4_0:26,g4_1:26,g4_2:26,g4_3:26,g4_4:26,g4_5:26,g5:[24,26],g5_0:26,g5_1:26,g5_2:26,g5_3:26,g5_4:26,g5_5:26,g5_6:26,g5_7:26,g5_8:26,g5_9:26,g6:[24,26],g6_0:26,g6_10:26,g6_1:26,g6_2:26,g6_3:26,g6_4:26,g6_5:26,g6_6:26,g6_7:26,g6_8:26,g6_9:26,g:[3,4,8,11,19,24],gene:[8,17,19,20],gene_list:[8,20,26],gener:26,git:[24,25],github:24,give:[8,19],given:[4,8,16,20],go:[8,19],graph2tre:[1,2],graph:[3,4,5,11,22,24],group:[3,4,8,11,15,16,17],group_conn:4,group_label:[24,26],group_lb:[3,4,11],group_lbs0:4,group_lbs1:4,group_mean:8,group_mean_adata:8,group_mean_dens:8,group_median_dens:8,groupbi:[8,15,16,17,23,26],groups0:4,groups1:4,groupwise_hvgs_freq:[8,26],gt:26,guid:24,h5ad:26,ha:[8,19],had:26,handl:[8,15],have:[3,4,11,24,26],head:26,header:26,here:26,high:26,higher:[3,5,22],highli:[8,17,19,20],highly_vari:26,highly_variable_gen:[8,17,19],hot:26,html:24,http:[24,25],hvg:[8,17,19],hvg_dict:[8,17,26],hvg_freq:[8,17,26],hvg_kwd:[8,17,19],i:24,ignor:[3,4,5,11,22],ignore_pa:[3,4,11],iloc:26,includ:[8,19],independ:[8,17],index:[8,16,24],index_col:26,index_nam:8,indic:[8,20],inform:[0,3,5,22],initi:26,inplac:[8,19],input:[8,19,20,24],inspect:[8,15],instal:26,io:24,issu:24,iter:4,its:24,k:[5,22,24],kd_tree:5,kdtree:[3,5,22],keep:4,kei:[3,4,8,19],key_ad:[8,21],knn:[3,4,5,11,22,26],know:24,ks:[3,26],kwarg:[3,5,8,14,22],kwd:23,kwmap:[8,12],l0:[24,26],l0_0:26,l0_10:26,l0_11:26,l0_12:26,l0_13:26,l0_14:26,l0_15:26,l0_16:26,l0_17:26,l0_18:26,l0_19:26,l0_1:26,l0_20:26,l0_21:26,l0_22:26,l0_2:26,l0_3:26,l0_4:26,l0_5:26,l0_6:26,l0_7:26,l0_8:26,l0_9:26,label:[3,4,5,8,11,15,19,22,26],label_binarize_each:8,leaf:[3,5,22],leaf_siz:[3,5,22,26],leaf_size_max:5,learn:24,leiden_new:26,len:26,less:[3,5,8,19,22,26],let:24,level:[3,5,22],like:[8,17,26],lineag:[24,26],lineage_color:26,list:[3,4,8,11,12,17,24,26],liu:[3,6,8],locat:24,log1p:26,log:[8,18,19,26],log_first:[8,19],log_onli:[8,18],look:4,loss:[3,5,22],made:[8,20],mai:[3,4,5,8,11,15,19,20,22],mail:24,major:24,make:[4,8,19],make_binari:8,make_children_dict:4,make_stage_group_dict:4,manual:25,map:[8,12,26],mat:8,matrix:[3,4,5,8,11,15,22,23],max:4,max_cat:8,max_connect:4,max_valu:23,mean:[8,15],median:[8,19],method:[8,10,21,24],metric:[5,8,21],metric_kwd:[8,21],metric_param:5,might:[8,19],min_dist:26,min_freq:[8,26],modul:[0,1],more:[3,5,8,15,22],most:26,multi:24,multipartit:[3,5,22],multipartite_graph:[1,2],must:8,n0:[4,24,26],n0_0:26,n0_10:26,n0_11:26,n0_1:26,n0_2:26,n0_3:26,n0_4:26,n0_5:26,n0_6:26,n0_7:26,n0_8:26,n0_9:26,n1:[4,24,26],n1_0:26,n1_10:26,n1_1:26,n1_2:26,n1_3:26,n1_4:26,n1_5:26,n1_6:26,n1_7:26,n1_8:26,n1_9:26,n3:[24,26],n3_0:26,n3_10:26,n3_11:26,n3_12:26,n3_13:26,n3_14:26,n3_15:26,n3_16:26,n3_1:26,n3_2:26,n3_3:26,n3_4:26,n3_5:26,n3_6:26,n3_7:26,n3_8:26,n3_9:26,n:4,n_count:26,n_featur:[3,5,8,15,22],n_gene:26,n_neighbor:[8,21],n_ob:26,n_pc:[3,5,8,21,22,26],n_point:[4,11],n_sampl:[3,4,5,8,15,22],n_stage:[4,11],n_var:26,name:[4,8,15,16,17,19],ncol:26,ndarrai:[3,5,22],nearest:[3,5,22,24],neighbor:[3,5,22,24],new_group_lbs1:4,new_groups1:4,next:26,nine:24,node:[3,4,5,11,22,26],non:[8,16],none:[3,4,5,8,11,12,15,16,18,19,20,21,22,23,26],norm_dist:[5,22],normal:[5,8,18,19,22],normalize_default:[8,26],normalize_log_then_tot:[8,26],note:26,np:[3,4,5,11,22,26],number:[3,4,5,22],numpi:26,ob:[8,16,17,19,26],object:[3,8,17,18,19,26],observ:[8,19],one:26,ones:26,onli:[4,8,17,18,26],option:[4,8,11,15,19,26],order:[4,5,10,11,22],org:24,origin:[3,5,22],os:26,other:[3,4,8,17,19,26],our:26,packag:[1,26],page:24,pair:[5,22],palett:26,panda:26,param:26,paramet:[3,4,5,8,10,11,15,16,17,18,19,22],parent:[3,4,11,24,26],parent_bcd:26,pars:[3,4,11],pass:[3,5,22],past:26,path:[8,13],path_adata:26,path_hvg_freq:26,pathlib:26,pca:[3,5,8,19,22,26],pca_base_on:[3,5,22],pca_transform:5,pd:[3,4,8,11,16,26],pdf:26,perform:[3,5,8,18,19,22,26],pip:25,pipelin:[8,19],pl:26,plasma_r:26,pleas:[9,24],plot:[2,6],point:[4,11,26],pp:[8,17,19,26],practic:26,pre:[8,20],preci:5,precomput:26,primer:26,princip:[3,5,22],print:26,print_group:[8,15],process:[2,6],project:[3,6,8,24],promis:[3,5,22],prop:[3,4,11,26],properti:3,proport:[3,4,8,11,16],provid:[4,11],py:[3,6,8,24,25],pypi:24,python:[24,25],qq:24,quick_preprocess_raw:8,rang:24,raw:[8,16,20],re:26,read_csv:26,read_h5ad:26,readthedoc:24,realli:26,recogn:24,reduct:[3,5,8,19,22],refin:[3,4,11,24],refined_group:26,refined_group_lb:[3,24,26],remov:4,repres:[4,11],requir:24,resdir:26,result:[3,4,5,8,11,16,19,22],return_hvg:[8,17],reverse_dict:8,rna:[0,2,24],robust:[3,5,22],root:26,row:[3,4,11,26],run:[25,26],s:[4,26],same:3,sampl:[3,4,5,11,22,26],sample_data:26,save:26,sc:[8,17,19,23,26],scale:[8,18,19,23,26],scanpi:[24,26],scikit:24,score:[8,19],search:[24,26],see:[0,24],select:[8,17,19],sep:4,separ:[8,17],seq:[0,2,8,12],sequenc:[3,4,5,8,10,11,19,22,26],set:[3,4,5,8,11,18,20,22],set_adata_hvg:[8,26],set_figure_param:26,set_precomputed_neighbor:[8,26],setup:[24,25],seven:24,shape:[3,4,5,8,11,15,22,26],singl:[0,2,3,4,11,24],size:[3,5,22],skip:[8,18],slim:[8,20],some:[3,5,8,19,22,26],sourc:24,space:[3,5,22],spars:[3,4,5,8,11,15,22],sparse_out:8,specifi:[4,8,11,17,19,26],splitseq:[8,26],spmatrix:[4,11],spring:24,sr:8,stabl:24,stack:[3,5,22],stage1:[4,11],stage1_1:[4,11],stage:[3,4,5,10,11,22,24],stage_:24,stage_id:26,stage_label:[24,26],stage_lb:[3,4,5,11,22,24,26],stage_nam:26,stage_ord:[3,4,5,10,11,22,24,26],stage_prim:26,stage_stg_leiden:26,stagewis:[3,4,11],stagewise_clust:26,stagewise_knn:[3,5],stagewisenn:[0,2,3,6,8,25,27],start:24,step1:24,step2:24,stg_leiden:26,str:[3,4,5,8,11,16,22,26],string:[3,4,11],structur:8,submodul:1,subpackag:1,subsampled_b:26,subset:[8,16],sum:8,summat:4,swnn:[0,24,26],sy:26,take:26,take_high_freq_el:[8,26],taken:26,target:[8,19],target_sum:[8,18,19,26],than:[8,15],them:26,thi:[3,4,5,8,11,15,22,26],those:[8,17],through:[8,19],tl:26,to_dict:26,todo:26,tool:24,total:[3,8,18,19,26],tracker:24,transform:[8,18],tree:[0,2,3,4,11],tupl:[3,4,11],turn:[8,16],tutori:24,two:26,type:[4,8,12,16,18,19,26],umap:[8,21,24,26],umap_lineag:26,umap_stag:26,un:26,unexpect:[4,11],union:[3,5,22,26],uniqu:[4,26],unit:26,up:4,updat:3,us:[0,2,3,5,8,19,22,24,27],use_raw:[8,16],use_rep:[8,21,26],user:[4,11],util:[1,2],valu:[4,8,16],var_nam:[8,16],variabl:[8,17,19,20],varianc:26,verbos:4,version:24,visual:[8,24],vote:[3,4,11,24],wai:26,want:26,warn:26,we:[24,26],were:24,when:[8,15],where:[4,11,26],whether:[3,5,8,15,16,17,18,19,22],wise:24,within:23,word:[8,19],work:[8,15,26],would:[8,17],wrapper:23,wrapper_scal:26,x1:[3,5,22],x2:[3,5,22],x:[3,5,8,15,18,19,22,23,24,26],x_que:5,x_ref:5,xingyan:[3,6,8,24],xingyanliu:[24,25],xxx:9,y:[8,19],you:[8,17,24,26],your:26,z:[8,19],zeor:[8,16],zero_cent:23,zhanglabtool:24},titles:["API","swnn","swnn package","swnn.builder module","swnn.graph2tree module","swnn.multipartite_graph module","swnn.utils package","swnn.utils.plot module","swnn.utils.process module","Citation","swnn.Builder","swnn.adaptive_tree","swnn.change_names","swnn.check_dirs","swnn.describe_dataframe","swnn.group_mean","swnn.group_mean_adata","swnn.groupwise_hvgs_freq","swnn.normalize_default","swnn.quick_preprocess_raw","swnn.set_adata_hvgs","swnn.set_precomputed_neighbors","swnn.stagewise_knn","swnn.wrapper_scale","stagewiseNN - Building developmental tree from scRNA-seq","Installation","Tutorial for using stagewiseNN","Tutorials"],titleterms:{"0":26,"1":26,"2":26,"3":26,The:26,adaptive_tre:11,api:0,build:[24,26],builder:[3,10],cell:26,change_nam:12,check_dir:13,citat:9,comput:26,content:[2,6,24],contribut:24,data:[0,26],describe_datafram:14,development:[24,26],each:26,from:[24,26],further:26,github:25,graph2tre:4,graph:[0,26],group:26,group_mean:15,group_mean_adata:16,groupwise_hvgs_freq:17,hvg:26,indic:24,input:26,instal:[24,25],load:26,main:26,make:0,manag:0,modul:[2,3,4,5,6,7,8],multipartite_graph:5,normal:26,normalize_default:18,object:0,other:0,packag:[2,6],paramet:26,path:26,plot:7,preprocess:26,process:[0,8,26],pypi:25,quick_preprocess_raw:19,score:26,scratch:26,scrna:24,select:26,seq:24,set:26,set_adata_hvg:20,set_precomputed_neighbor:21,singl:26,stage:26,stagewise_knn:22,stagewisenn:[24,26],submodul:[2,6],subpackag:2,support:24,swnn:[1,2,3,4,5,6,7,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23],tabl:24,tree:[24,26],tutori:[26,27],us:26,usag:24,util:[6,7,8],visual:26,wise:26,wrapper_scal:23,z:26}})