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

binarization #594

Open
Flu09 opened this issue Nov 11, 2024 · 1 comment
Open

binarization #594

Flu09 opened this issue Nov 11, 2024 · 1 comment

Comments

@Flu09
Copy link

Flu09 commented Nov 11, 2024

i want to ask if binarization should be done for each condition alone or merged composed of multiple conditions. thank you.

@robertzeibich
Copy link

robertzeibich commented Jan 15, 2025

Hi @Flu09,

Have you made any progress? I have also opened an issue because I was curious how they generated the following:

image

I am working with snRNA-seq case-control data.

I would binarize and compare two conditions at a time.

image

I ran pyscenic on oligo cells.
Binarized the auc_mtx.
Split the auc_mtx between cases and controls.
Plotted auc_mtx, auc_mtx_case and auc_mtx_control.
The regulon FOSB(+) seems to be active in cases but not in controls.

I needed to adjust the threshold. So, if you want to use the binarized output, you would need to check the thresholds for each regulon and adjust accordingly.
Then you would need to binarize the adjusted regulons again.

np.where(auc_mtx['FOSB(+)'] > 0.07,1,0)

I also ran pyscenic on all cells. Extracted oligo cells. Picked a regulon. However, the results were less promising/clear.

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

2 participants