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

Fixed splitting perturboutcome by cell_line #352

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

Conversation

dalloliogm
Copy link

The example mentioned in the PerturbOutcome page (https://tdcommons.ai/multi_pred_tasks/counterfactual) does not work.

The example reads:

from tdc.multi_pred.perturboutcome import PerturbOutcome
data = PerturbOutcome(name = 'scperturb_drug_SrivatsanTrapnell2020_sciplex2')
split = data.get_split()

This raises a AttributeError: 'AnnData' object has no attribute 'groupby' on the line cell_line_groups = df.groupby("cell_line")

I think this change should fix the error.

The example mentioned in the  PerturbOutcome page (https://tdcommons.ai/multi_pred_tasks/counterfactual) does not work.

The example reads:
```
from tdc.multi_pred.perturboutcome import PerturbOutcome
data = PerturbOutcome(name = 'scperturb_drug_SrivatsanTrapnell2020_sciplex2')
split = data.get_split()
```

This raises a `AttributeError: 'AnnData' object has no attribute 'groupby'` on the line `cell_line_groups = df.groupby("cell_line")`

I think this change should fix the error.
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