Comments (2)
So, the main thing you'd need here is to be able to generate mutations at integer sites, which would happen on the msprime side.
This is done!!
from pyslim.
Thanks for the report.
annotate_defaults() does not convert the continuous-valued positions of mutations in .trees file into integer values, as is required by SLiM. (When the resulting SlimTreeSequence is loaded into SLiM, an error results.)
This is as it should be, because there's no good way to convert mutations at non-integer locations to integer locations, because in moving their positions you might move them to a different tree, where they don't make sense. So, the main thing you'd need here is to be able to generate mutations at integer sites, which would happen on the msprime
side. (and is something we intend to do)
I'll leave this open as a placeholder, though.
from pyslim.
Related Issues (20)
- recapitating merged trees HOT 9
- add VCF example to tutorial
- recapitate has surprisingly small diversity if WF simulation is started and saved in `late` HOT 7
- release tasks
- tsinfered tree sequences don't have 'type' key in top-level metdata but `set_tree_sequence_metadata` expects they do
- provide example of annotating existing mutations
- test on annotating tsinfer'ed tree sequence
- recapitation root time auto-adjust fails with root times > 1e5, resulting in an `msprime.InputError` HOT 2
- release tasks
- Annotating tree sequence with pre-existing (node) metadata can lead to erroneous metadata HOT 1
- AttributeError in jsonschema HOT 3
- edges are lost from tree sequence after SLiM step HOT 6
- Potential to use .frequencies() method in /tutorial.html
- update quickreference list at top of docs
- default sex ratio 0.0 HOT 1
- Discrepancies in diversity after recapitation and mutation overlay HOT 1
- Recapitation for complex demography with populations that died out HOT 11
- Strange warning in recapitation HOT 2
- Typo in `recapitate` function docstring HOT 1
- :meth: is not working in documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyslim.