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

What does the warning: "Bad alleles for marker '', expecting 'a/c' found 'a/g' mean? #23

Open
ghost opened this issue Jul 17, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 17, 2022

Hi, I am getting a lot of warnings with the above text.

I found the source code origin of the warning:

 if (allele1[marker] == "")
                allele1[marker] = tokens[firstColumn],
                allele2[marker] = tokens[secondColumn],
                original_flipped[marker] = flip ? 'Y' : 'N';
            else if (tokens[firstColumn] != allele1[marker] ||
                     tokens[secondColumn] != allele2[marker]) {
                if (++badAlleles > maxWarnings) continue;
                printf("## WARNING: Bad alleles for marker '%s', expecting '%s/%s' found '%s/%s'\n",
                       (const char *) tokens[markerColumn],
                       (const char *) allele1[marker],
                       (const char *) allele2[marker],
                       (const char *) tokens[firstColumn],
                       (const char *) tokens[secondColumn]);

But I can't understand what comparison is being made. It happens when I process the very GWAS file, so it is not comparing alleles with the other GWAS results. It reads as if it is being compared to a reference build but I dont see that in the source code.

Any further info would be appreciated.

@cwnag-c
Copy link

cwnag-c commented Nov 27, 2022

I alsohad the same problem, did you solve this problem?

@dbw198211
Copy link

I met this problem too, how to solve this problem?

@Stacy33333
Copy link

Did anyone solve this problem? I also met this error.

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

3 participants