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

TypeError: clone_overlap() got an unexpected keyword argument 'colorby' #392

Open
NicolaasVanRenne opened this issue Jun 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NicolaasVanRenne
Copy link

Description of the bug

I am running the tutorial V(D)J analysis. When I run
ddl.tl.clone_overlap(adata, groupby="leiden", colorby="leiden", weighted_overlap=True)
I get this error:
Traceback (most recent call last):
File "", line 1, in
TypeError: clone_overlap() got an unexpected keyword argument 'colorby'

No idea why it does not work.

I can remove the colorby by running ddl.tl.clone_overlap(adata, groupby="leiden", weighted_overlap=True)

But when I plot it, I get this lousy image:

shared_clonotype

I have no idea why this goes wrong....

Minimal reproducible example

No response

The error message produced by the code above

No response

OS information

No response

Version information

No response

Additional context

No response

@NicolaasVanRenne NicolaasVanRenne added the bug Something isn't working label Jun 18, 2024
@zktuong
Copy link
Owner

zktuong commented Jun 19, 2024

hi @NicolaasVanRenne ,

the function you called is ddl.tl.clone_overlap, which doesn't have the colorby option, hence that error message.
https://sc-dandelion.readthedocs.io/en/latest/modules/dandelion.tools.clone_overlap.html

The reason why the lines are very thick is because you have specified:
weighted_overlap=True - the thickness scales to the number of cells. if False, then it will just be a thin line like in the tutorial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants