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: Population must be a sequence. For dicts or sets, use sorted(d). #293

Open
ericolo opened this issue Oct 20, 2024 · 4 comments
Open
Labels

Comments

@ericolo
Copy link

ericolo commented Oct 20, 2024

Hi !

I get this error and I can't debug why it happens, the input files look good to me

TypeError: Population must be a sequence. For dicts or sets, use sorted(d).

I'm using ppanggolin like this:
ppanggolin workflow --anno list_genomes.tsv -c 64 -o output --clusters clusters.tsv --infer_singletons --rarefaction

Thanks in advance !
Eric

@axbazin
Copy link
Member

axbazin commented Oct 21, 2024

Hi !

Any chance you could provide the complete log?
It's nearly impossible to identify the location of the problem without the full trace (which should be in the log file where this error is written) with something as generic as this kind of error.

Adelme

@ericolo
Copy link
Author

ericolo commented Oct 21, 2024

Hello,

Sorry for the very little info, this is the log file obtained on that run:
debug_log.txt

And here is the complete error message:
error.txt

Thanks !

@axbazin
Copy link
Member

axbazin commented Oct 22, 2024

I see, thanks a lot !

This is definitely a bug, and I think it's related to having exactly the number of genomes that you have in your run here (501?).
In the meantime, until we resolve this, I believe that increasing the chunk_size in the "partition" step might fix this error.

@axbazin axbazin added the bug label Oct 22, 2024
@ericolo
Copy link
Author

ericolo commented Oct 31, 2024

Indeed if I remove one genome from the list it works fine, haven't tried the chunk_size yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants