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 support for perturbation magnitude/direction #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

giladmishne
Copy link

Modifies perturbation names to include an optional magnitude, separated from the gene name by *, i.e. p53*200, brca2*0. The magnitude is an integer, interpreted as a percentage change from base (i.e. 0 is a knockout), and is used to multiply the perturbation embedding. If no magnitude is provided, a default one of 100% is used (to be backward-compatible with the current implementation).

Many of the changes are trailing-whitespace removals from an auto-formatter; the only real modifications are parsing and storing an additional pert_magnitude array with the rest of the data and using it to modify the embedding.

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 this pull request may close these issues.

1 participant