-
Notifications
You must be signed in to change notification settings - Fork 26
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
clearer dataset requirements for mixscape #210
Comments
Dear @marcus-r-kelly , thank you very much for the issue! Could you please share the error for Cheers |
Sorry for the delay, this is kind of a scouting-ahead project for me and I've been swamped the last two weeks.
This error is pretty puzzling to me. Here are shapes of relevant objects in
What is supposed to have 6380 or 3523 rows? What is the scalar parent whose dimensions obsm is supposed to match? |
@marcus-r-kelly Thank you so much for finding these issues! Could you please share your current notebook? It would be very helpful. |
Notebook attached. All the files referred to are the ones in the GEO dataset I linked in the OP. |
@marcus-r-kelly Thanks for your reply! I just checked, it turns out one argument "control" is missing in your case. The error information is not from pertpy and it is indeed not directly related to the error itself. I will improve the documentation and also the function argument settings! |
Description of feature
Hello! As a python/scanpy user, I am happy to see that you are working on a scverse impelementation of mixscape. I have attempted to follow along with this notebook : https://github.com/theislab/pertpy-tutorials/blob/main/mixscape.ipynb using a third-party dataset (this. I have been using pertpy 0.3
I have had difficulty, however, because the names of some columns/features are occasionally required to have a certain value. For example,
pt.tl.Mixscape.pert_sign
apparently requires that the suppliedAnnData
object has a column in its.obs
table of the format<gene_target>g<#>
that has the same name as the nontargeting control. As far as I can tell, this is not documented.Similarly, in
pt.tl.Mixscape.lda
value of thelabels
keyword argument must be 'gene_target' for proper function, since that is hard-coded elsewhere in the function.These are just the functions that I have been able to make work.
pt.pl.ms.barplot
fails to work, and I cannot decipher the traceback to understand how to reconfigure myAnnData.obs
table properly. I also cannot find how to makept.pl.ms.lda
work properly, since some array is getting reshaped during function runtime in ways that I cannot understand.If this pipeline is working as designed, I would greatly appreciate a tool or guide to make sure that my
AnnData.obs
table has all required columns formatted properly.The text was updated successfully, but these errors were encountered: