removing fixed mutations
See original GitHub issueWe can at times end up with a large number of fixed mutations. It would be nice to have a way to remove these. I think we discussed having simplify()
do this, but it does not:
ts = msprime.simulate(10, recombination_rate=2, mutation_rate=2)
sts = ts.simplify([0,1])
sts.genotype_matrix()
###
array([[1, 1],
[1, 1],
[1, 1],
[1, 0],
[1, 1],
[1, 1],
[1, 1],
[1, 1]], dtype=uint8)
This would require a bit of bookkeeping (e.g. updating the ancestral state at sites that still have a segregating mutation). Not sure whether to propose this as an argument to simplify (filter_fixed_mutations) or as its own function. This is not urgent, as far as I know, but if we were to change the default behavior of simplify, it would be nice to do it soon.
Issue Analytics
- State:
- Created 4 years ago
- Comments:22 (22 by maintainers)
Top Results From Across the Web
DNA proofreading and repair (article) | Khan Academy
To prevent such mutations, a glycosylase from the base excision repair pathway detects and removes deaminated cytosines. Once the base has been removed,...
Read more >Mutation, Repair and Recombination - Genomes - NCBI - NIH
Origins of replication could conceivably be made non-functional by mutations that change, delete or disrupt sequences recognized by the relevant binding ...
Read more >DNA Replication and Causes of Mutation - Nature
During mismatch repair, enzymes recognize and fix these deformities by removing the incorrectly paired nucleotide and replacing it with the correct ...
Read more >What is gene editing and how can it be used to rewrite the ...
When the cell tries to fix the damage, it often makes a hash of it, and effectively disables the gene. This in itself...
Read more >Repair Of Mutations - Repair Of Dna - MCAT Content
In some cases, a cell can fix DNA damage simply by reversing the chemical reaction that caused it. Sometimes, DNA damage can refer...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah, I see. Should we add a
filter_fixed_simple_sites
(or something) option to simplify then? I think catching the single mutation fixed sites is pretty easy? I don’t want to call itmonomorphic
or whatever as I think this is misleading in the multiple mutation case.You did, and it was tricky, but it’s probably a good bit easier now - we’ve got more tools.