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.

removing fixed mutations

See original GitHub issue

We 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:open
  • Created 4 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
jeromekellehercommented, Jul 15, 2019

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 it monomorphic or whatever as I think this is misleading in the multiple mutation case.

0reactions
petrelharpcommented, Jun 25, 2022

You did, and it was tricky, but it’s probably a good bit easier now - we’ve got more tools.

Read more comments on GitHub >

github_iconTop 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 >

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