question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Chromosome painting' with tree sequences

See original GitHub issue

Hello, thanks for the excellent software! This is a request for a feature rather than an `issue’.

It would be really useful to be able to track the local ancestry of each leaf along a chromosome so that the simulated chromosomes can be ‘painted’ according to their population of origin. Ie. traverse back up the tree from a leaf until you get to the ancestor at the time of the relevant admixture, but at every tree and every sequence.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gtsamboscommented, Sep 29, 2020

Blast from the past! 🕰

1reaction
gtsamboscommented, Sep 27, 2018

Hi @jeromekelleher and @gdurif - thanks for your comments and thoughtful engagement with this! I am about to fly to New Zealand and will be computer-less for a few days, but will engage with this properly next week when my brain is back in work mode.

Just quickly though:

Thanks for the feature request @gtsambos — we’re actually thinking about something pretty similar at the moment where we want to compute for every node in the tree sequence, the mean fraction of samples descending from that node that are from each population. So, suppose we had node in a tree that had 100 samples from p1 below it and 100 samples from p2 below it (and these we only have two populations, p1 and p2). Then the fractions would be 0.5 and 0.5.

Is this similar to what you’re thinking about?

I was thinking about this at the more de-aggregated level of individual leaf nodes, like @gdurif is describing. Say the two admixing populations are labelled X and Y, and you’re using msprime to generate sequences from admixed descendants of these populations. Then for any specific tree in a TreeSequence, every leaf node should descend from exactly one of those populations, and thus have ancestry with that population. Say your TreeSequence has 3 trees spanning the intervals [0,1], [1,2] and [2,3]; then a sample might have ancestry X on [0,1], Y on [1,2] and X on [2,3] for example.

Will write more when I’m back from holidays!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chromosome Painting 23andMe Ancestry Results
The Chromosome Painting feature is an in-depth way of looking at your Ancestry Composition results. It shows a colorful representation of the 23...
Read more >
Chromosome painting and its applications in cultivated and ...
Another successful chromosome painting method is based on PCR amplification to pool a large number of single-copy sequences.
Read more >
Chromosome Painting In Silico in a Bacterial Species Reveals ...
Using chromosome painting and fineSTRUCTURE, we analyzed the complete genome sequences of H. pylori strains from various parts of the world.
Read more >
chromosome painting method: Topics by Science.gov
Chromosome Painting is emerging as a powerful tool in the exact localization of different gene sequences of chromosomes at the microscopic level.
Read more >
Chromosome painting using repetitive DNA sequences as ...
To identify all maize chromosomes, a multicolor fluorescence in situ hybridization procedure was developed. The procedure uses tandemly repeated DNA sequences ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found