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

Posterior mean dosage 'DS' #136

Open
timothymillar opened this issue Apr 7, 2022 · 0 comments
Open

Posterior mean dosage 'DS' #136

timothymillar opened this issue Apr 7, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request vcf format

Comments

@timothymillar
Copy link
Collaborator

Related to #103

GWASpoly uses the DS field for posterior mean dosage. This is essentially posterior mean allele frequency * ploidy. However, the (informal standard) DS field doesn't report values for the reference allele. This is fine when reported for the full posterior distribution because the dose of the reference allele can be imputed as ploidy - sum(alts). But this is an issue for mchap assemble because we don't necessarily report all alleles (excluded infrequent alleles) resulting in a concatenated posterior distribution. This means the reference allele dosage can't be imputed. More importantly, the dose of the alternate alleles can't be normalized without the reference allele value. Use of the results from mchap assemble without normalization may bias downstream analysis.

There are a few options:

  • Make DS an option for machap call but not mchap assemble because mchap call always reports the full posterior
  • Normalise dosage for reported alleles in mchap assemble before discarding the reference allele: the resulting values will no-longer match the AFP field
  • Break the 'standard' and report the reference allele value: may cause downstream issues
  • Don't make DS an option: may loose ease of compatibility with down stream tools

The first option is probably the best option

@timothymillar timothymillar added enhancement New feature or request vcf format labels Apr 7, 2022
@timothymillar timothymillar self-assigned this Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vcf format
Projects
None yet
Development

No branches or pull requests

1 participant