Skip to content

Conversation

@ccbaumler
Copy link
Contributor

fixes #25

This pull request introduces a skip-missing-lineages argument to the CLI for the user to force the creation of the pangenome rank database.

However, the first step a user should try is checking that the taxonomy file is current and updating the taxonomy files that are used to create the pangenomic databases.

for k in get_close_matches(ident, taxdb):
print(f"* '{k}'")
sys.exit(-1)
if not getattr(args, "skip_missing_lineages", False):
Copy link
Member

Choose a reason for hiding this comment

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

Here you could if not args.skip_missing_lineages - no need to use getattr, since with argparse it will always create the attribute on the args object.

Suggest printing something out for continuing vs failing (i.e. "continuing past error because --skip-missing-lineages is set" or "error exiting!"). Helps people debug!

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.

CLI argument to allow skipping genomes when lineage_tup is None?

3 participants