Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Small mistake in tutorial #15

Open
SarahAncheta opened this issue Mar 23, 2023 · 0 comments
Open

Small mistake in tutorial #15

SarahAncheta opened this issue Mar 23, 2023 · 0 comments

Comments

@SarahAncheta
Copy link

Hi! I was following the tutorial (https://velovi.readthedocs.io/en/latest/tutorial.html), and it has an error. It is returning a dataframe and an array in step (1), which causes an error in step (2).

ext_uncertainty_df = compute_extrinisic_uncertainty(adata, vae) ##Step (1)

for c in ext_uncertainty_df.columns:
    adata.obs[c + "_extrinisic"] = np.log10(ext_uncertainty_df[c].values) ##Step (2)

The mistake is easily fixed by choosing the first item (the dataframe) from ext_uncertainty_df.

ext_uncertainty_df = compute_extrinisic_uncertainty(adata, vae) ## Step (1)

ext_uncertainty_df = ext_uncertainty_df[0] ## Added to fix Step (1)

for c in ext_uncertainty_df.columns:
    adata.obs[c + "_extrinisic"] = np.log10(ext_uncertainty_df[c].values) ## Step (2) now runs with no issues

Thank you! The tutorial is very clear and I appreciate it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant