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

Assignment fails due to duplicate taxonomic rank entries #11

Closed
johnne opened this issue May 12, 2021 · 0 comments
Closed

Assignment fails due to duplicate taxonomic rank entries #11

johnne opened this issue May 12, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@johnne
Copy link
Collaborator

johnne commented May 12, 2021

Entries that have multiple definitions at a certain rank causes contigtax assign to fail with the error:

ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

For instance, this can be the result of a taxonomic id having:

rank   superkingdom phylum order genus species  class  family    class
182248         2759   7711  9443  9499   30589  40674  378855  1338369

This will be fixed in the next release by only selecting unique columns when setting up the lineage dataframe.

@johnne johnne added the bug Something isn't working label May 12, 2021
@johnne johnne mentioned this issue May 12, 2021
@johnne johnne closed this as completed May 12, 2021
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

1 participant