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

functions for DEG analysis #106

Open
jianglch opened this issue Mar 7, 2024 · 1 comment
Open

functions for DEG analysis #106

jianglch opened this issue Mar 7, 2024 · 1 comment

Comments

@jianglch
Copy link

jianglch commented Mar 7, 2024

Dear cellxgene_vip authors,
I am looking into the script used for DEG analysis VIPInterface.py and can't figure out where function "compute_diffexp_ttest"
come from. I guess it is corresponding to the cellxgene t-test option in the frontend.
scripts relevant:
if data['DEmethod']=='default':
if sum(mask[0]==True)<10 or sum(mask[1]==True)<10:
raise ValueError('Less than 10 cells in a group!')
#with app.get_data_adaptor(url_dataroot=data['url_dataroot'],dataset=data['dataset']) as scD:
scD=data['data_adapter']
if scD is not None:
#res = diffDefault.diffexp_ttest(scD,mask[0].to_numpy(),mask[1].to_numpy(),scD.data.shape[1])# shape[cells as rows, genes as columns]
res = scD.compute_diffexp_ttest(mask[0].to_numpy(),mask[1].to_numpy(),scD.data.shape[1]-1,0.01)

Thanks for your input!

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