Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

ERROR in pseudobulk_pyDeseq2.ipynb with pseudo replicates #19

Open
redvoidling opened this issue Aug 24, 2023 · 0 comments
Open

ERROR in pseudobulk_pyDeseq2.ipynb with pseudo replicates #19

redvoidling opened this issue Aug 24, 2023 · 0 comments

Comments

@redvoidling
Copy link

Hi,

I was testing your tutorial on pseudobulk with pseudo replicates and I noticed that all the replicates created by your script are identical because you did not slice with the pseudo_rep slice that you created from the indices.

I propose you change this line:

from
`
for i, pseudo_rep in enumerate(indices):

    rep_adata = sc.AnnData(X = samp_cell_subset.X.sum(axis = 0),
                           var = samp_cell_subset.var[[]])

`

to

rep_adata = sc.AnnData(X = samp_cell_subset[samp_cell_subset.obs_names.isin(pseudo_rep)].X.sum(axis = 0), var = samp_cell_subset.var[[]])

And thanks for the cool work you do :)

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

No branches or pull requests

1 participant