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

GWAS calculation #4

Merged
merged 3 commits into from
Jul 22, 2024
Merged

GWAS calculation #4

merged 3 commits into from
Jul 22, 2024

Conversation

dcdehaas
Copy link
Collaborator

Perform GWAS using GRG.

dcdehaas and others added 3 commits July 22, 2024 16:05
During MapMutations we have all the information we need to track
how many individuals are coalescing (for diploids) at each node
that is visited/created. We pay essentially no cost for computing
this, and its about 1% increase in GRG size.

This is now accessible from grgl::NodeData via the
numIndividualCoals field, and is extremely useful for any
computations that requires {0, 1, 2} form for the matrix version
of the computation.

Added the copying of NodeData in GRG merge operation, since we
now have more than populationId (it should have always been copied)
* Add "zygosity information" command: Similar to allele frequency,
but emits the individual-based stats of how many AA, Aa, aa that
are for each variant.
* Better way to emit sorted calculations on mutations. New API
method getMutationsToNodeOrdered() emits nodes and mutation
IDs ordered by mutation position and allele.
* If you don't specify a phenotype file it will now use a random
vector.
* New flag --beta-only only calculates beta (the dot product), not
the additional statistics surrounding it (like plink does).
* GWAS can compute just beta (to mimic the dot-product calculation
  of XSI, which we compare against) or all of the fields necessary.
* Zygosity info breaks down how many individuals are hetero or
  homozygous in a particular variant.
* We optionally link in GNU Scientific Library (GSL) for computing
  p-values for GWAS. Use -DENABLE_GSL=ON to enable this, other
  the p-value will just be NaN (with a warning).
@dcdehaas dcdehaas merged commit e0bb4e1 into main Jul 22, 2024
3 checks passed
@dcdehaas dcdehaas deleted the gwas branch July 22, 2024 20:21
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