Skip to content

Pipeline or function to allow triallelic sites for inference? #670

Open

Description

@hyanwong

As described briefly in #228 (comment), it should be possible to use triallieic and tetraallelic sites for inference, rather than (as at present) simply placing the alleles using parsimony. The key is that we don't know which of the derived states is derived from the ancestral, and which (if any) are derived from other states, so we simply treat some of the allelic states as "missing data". There are some organisms in which there are a lot of triallelic sites (i.e. ones with high mutation rates), so I wonder if this is worth turning into some sort of formal preprocessing step, and testing if it works. Here's how it would go:

  1. Assume we have large numbers of trialleleic or tetrallelelic site in which the ancestral state is known
  2. For each site independently, take one of the non ancestral states as the one on which to base the inference (probably the non-ancestral state with the highest frequency?)
  3. Run through the sample data file through a pipeline which creates a new sample data file which marks all other states as missing. This allows these states to be placed either as mutations from the ancestral state or as mutations from the derived state
  4. Do the inference
  5. Map the original site data onto the tree (possibly using parsimony?) to add in the extra mutations necessary.

We could test the effectiveness of this by simulation quite easily.

Activity

  1. hyanwong commented on May 25, 2022

    @hyanwong
    MemberAuthor

    Pinging @stsmall as this may be of interest for AG1000 data - we could use the stdpopsim AnoGam model (not fully documented yet) or the more documented Aedes one. I wonder how many triallelic sites they tend to generate?

  2. andrewkern commented on May 27, 2022

    @andrewkern
    Member

    good question @hyanwong -- I wonder how many sites multiallelic sites the AnoGam model produces. We know from the empirical Ag1kg data that ~1/3 of sites are multiallelic, but we ignored those for demographic inference

  3. hyanwong commented on May 31, 2022

    @hyanwong
    MemberAuthor

    Thanks @andrewkern - of the multiallelic sites, what's the lowest freq allele? Is it the case that most of the time there's one of the 3 alleles at a vanishingly rare freq?

  4. andrewkern commented on Jun 1, 2022

    @andrewkern
    Member

    yeah good question. i'll defer to @stsmall on this as he has his hands on the data right now.

  5. stsmall commented on Jun 14, 2022

    @stsmall

    To pick this back up. The majority of multiallelic sites are singletons.
    [Ref, Alt, Alt1, Alt2]
    percent singleton Alt1 : 0.5881852164112996
    percent singleton Alt2 : 0.7144287770714822
    percent singleton Alt1 & Alt2 : 0.2824007940955862

  6. hyanwong commented on Jun 14, 2022

    @hyanwong
    MemberAuthor

    Oh, well that's easy then, right? Just mark the allele that's a singleton as missing for the moment. I can't see any reason why not to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions