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

[fix] check presence of taxtree in index #227

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Conversation

h-2
Copy link
Member

@h-2 h-2 commented Jan 8, 2024

No description provided.

Comment on lines 594 to 595
if (taxaWithoutNameCount * 100 / taxonNames.size() > 10)
std::cerr << "Warning: More than 10% of taxa have no valid name entry.\n";
Copy link
Collaborator

@SGSSGene SGSSGene Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might should be:

Suggested change
if (taxaWithoutNameCount * 100 / taxonNames.size() > 10)
std::cerr << "Warning: More than 10% of taxa have no valid name entry.\n";
if (taxaWithoutNameCount * 10 > taxonNames.size())
std::cerr << "Warning: More than 10% of taxa have no valid name entry.\n";

The issue is that taxaWithoutNameCount * 100 / taxonNames.size() might be 10.9 which will be rounded to 10 and then no warning will be given even though it's above 10%.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I mean the whole check / the exact value is not super-important, but you are right of course!

@sarahet
Copy link
Member

sarahet commented Jan 9, 2024

LGTM (minus Github mac test issues)

@sarahet sarahet merged commit febf14a into seqan:lambda3 Jan 9, 2024
8 checks passed
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.

None yet

3 participants