Current runMacs() does:
- Simulates local trees
- Simulates mutation events
- Drops mutations down the local trees to generate haplotypes (this is a memory bottleneck with the currently-implemented high mutation rates ~1e-8)
- Downsamples sites so we don't ran out of memory in downstream work with AlphaSimR
With @LynxJinyangii and @bryo-han wediscussed today that we would like to:
Are we missing anything in the above summary @LynxJinyangii?
Current
runMacs()does:With @LynxJinyangii and @bryo-han wediscussed today that we would like to:
mutRateargument torunMacs()so users can manipulate it as they needrunMacs()to return haplotypes - asMapPop, so that we can continue with the current standard AlphaSimR genome workflow:founderGenomes <- runMacs(...);SP <- SimParam$new(founderGenomes)runMacs()to possibly also return tree sequence - asRcppTskit::TreeSequenceand we then dots <- runMacs(...);founderGenomes <- asMapPop(ts, segSites=n);SP <- SimParam$new(founderGenomes)RcppTskit::TreeSequence(is this easy or very hard?)returnTreeSeqargument torunMacs()to control whether we returnRcppTskit::TreeSequenceorMapPopasMapPop(ts, segSites=n)could be used to downsample sites if neededAre we missing anything in the above summary @LynxJinyangii?