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

Add function for creating reference index column #75

Closed
alxndrkalinin opened this issue Jan 21, 2025 · 0 comments · Fixed by #76
Closed

Add function for creating reference index column #75

alxndrkalinin opened this issue Jan 21, 2025 · 0 comments · Fixed by #76

Comments

@alxndrkalinin
Copy link
Collaborator

Adding the reference index column (constant for perturbation profiles, index for controls) is currently used for phenotypic activity calculations to avoid: (i) forming positive pairs across controls (by pos diffby = ["pert_id", "ref_index"]), (ii) forming negative pairs between perturbation profiles (by neg diffby=["pert_id", "ref_index"]).

We found that adding this column manually can be a source of errors and confusion, so it would be more convenient to add a function that takes a condition as a parameter, which indicates where controls are, and returns a dataframe with the added reference index column.

alxndrkalinin added a commit to alxndrkalinin/copairs that referenced this issue Feb 3, 2025
@alxndrkalinin alxndrkalinin mentioned this issue Feb 3, 2025
johnarevalo pushed a commit to alxndrkalinin/copairs that referenced this issue Feb 5, 2025
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

Successfully merging a pull request may close this issue.

1 participant