Closed GreenGilad closed 2 years ago
Hi,
I have a few suggestions you can try first:
the do_magic_bool is now replaced by "do_impute_bool" (I'll update this in the NB later). If you intend to do any gene imputation, please set "do_impute_bool" to True so that the imputation function can be called when needed later on: v0 = via.VIA(anndata.obsm['X_pca'][:, 0:n_pcs], knn=20, ..., do_imputebool = True) ..... df = pd.DataFrame(anndata.X) #create dataframe for input to imputation function df_.columns = [i for i in ad.var_names]
gene_list_impute = ['IL3RA', 'IRF8', 'GATA1', 'GATA2', 'ITGA2B', 'MPO', 'CD79B', 'SPI1', 'CD34', 'CSF1R', 'ITGAX']
df_imputed= v0.do_impute(df_, magic_steps=3, gene_list=gene_list_magic)
I had already played with the different parameters and it didn't help, but I (in a very silly manner) misinterpreted the preserve_disconnected
parameter. preserve_disconnected=True
solved it.
As for only using the 2 components I might run it over the higher dimension dataset from which I obtained this PHATE embedding, but that too is not in single cell scale but of about 100 dims.
Hi again,
I'm trying to use VIA to find trajectories in a small 2D (PHATE) embedding. The data itself is not single cell but is derived from a single cell dataset. Based on the analysis I suspect several connected trajectories as well as a couple of disconnected ones. Since I do not have any real
true_label
to give these data points I am passing[0,.....,0]
.The above code outputs the following logs:
And then fails with the error
I am not able to figure out what is causing this error and how to fix it.
In addition, along the way I found two minor bugs:
sc_ATAX-seq_HumanHematopoesis
notebook passes ado_magic_bool
argument tovia.VIA
which does not exissts.