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

Confusing error when input is unmapped #71

Open
keiranmraine opened this issue Sep 24, 2021 · 0 comments
Open

Confusing error when input is unmapped #71

keiranmraine opened this issue Sep 24, 2021 · 0 comments

Comments

@keiranmraine
Copy link
Contributor

This code isn't intended for unmapped BAM files, but logging how it appears.

When an alignment file is not mapped you will see an error similar to this:

[ERROR] (src/bam_access.c: bam_access_get_position_base_counts:454 errno: No such file or directory) Error detected (-2) when trying to iterate through region.
[ERROR] (./src/alleleCounter.c: main:448 errno: None) Error retrieving stats from bam file for position �:65885569

The error doesn't print the contig correctly for some reason at this line:

check(ret==0,"Error retrieving stats from bam file for position %s:%d",locis[j]->chr,locis[j]->pos);

Rather than this being confusing, this should be prevented by checking the header contains @SQ lines and giving an appropriate message if they are absent.

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

No branches or pull requests

1 participant