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

Report errors mapping amino acids #40

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Report errors mapping amino acids #40

merged 2 commits into from
Apr 11, 2023

Conversation

kdm9
Copy link
Contributor

@kdm9 kdm9 commented Apr 11, 2023

Hi Heng,

Thanks for yet another brilliant tool!

This patch reports errors mapping amino acid files to the reference. AFAICT, the only non-zero exit code of mp_map_file() is for errors opening the faa file(s). I hit this due to a stupid error on my part: giving query.faa.gz when only query.faa existed on disk. Miniprot ran fine but of course gave an empty gff. Now, the user should at least get a warning and a non-zero exit code in case of stupidity :)

Best,
Kevin

kdm9 and others added 2 commits April 11, 2023 10:13
Hi Heng,

Thanks for yet another brilliant tool!

This patch reports errors mapping amino acid files to the reference. AFAICT, the only non-zero exit code of mp_map_file() is for errors opening the faa file(s).
I hit this due to a stupid error on my part: giving `query.faa.gz` when only `query.faa` existed on disk. Miniprot ran fine but of course gave an empty gff. Now, the user should at least get a warning and a non-zero exit code in case of stupidity :)

Best,
Kevin
@lh3 lh3 merged commit e61d7b4 into lh3:master Apr 11, 2023
@lh3
Copy link
Owner

lh3 commented Apr 11, 2023

Make sense. Thanks!

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.

2 participants