No articles match
Extending models with custom SLiM code8 days ago
Introduction | Disclaimers and caveats | slendr / SLiM "API" | Referring to populations: population() Eidos function | Referring to times: tick() Eidos function | Referring to model times: model_time() Eidos function | Logging: write_log() Eidos function | Saving and re-starting simulation state: save_state() and reset_state() | Global constants | Practical examples | Putting it all together: running a customized slendr simulation | Putting it all together: parametrizing a customized slendr simulation | Programming slendr/SLiM extension snippets directly in R scripts | Customizing genomic architecture (selective sweep simulations)
Installation instructions8 days ago
Quick installation | Software dependencies | sf, stars, rnaturalearth | macOS | Linux | SLiM | Adding SLiM to the $PATH | Fallback options | Python | Failing conda? | Information for Python experts | ModuleNotFoundError: No module named 'tskit' error
Introduction and basic tutorial8 days ago
Motivation | Geospatial data | Installation and setup | Defining the overall world map | Plotting geographic features and population ranges | Defining smaller geographic regions | Defining spatial population boundaries | Polygon population ranges | Circular population ranges | Population movement across a landscape | Spatial population expansion | Plotting multiple slendr objects | Defining gene flow events | Compile the whole model and load it in SLiM | Visualize the entire history of splits and gene flow | Interactive exploration of spatio-temporal models | Running the simulation | More information
Programming dispersion dynamics8 days ago
Spatially annotated tree sequences8 days ago
Introduction | Model specification | Scheduling sampling events and simulation | Extracting spatial tree sequence information | Using the simple features interface | Plotting locations of simulated sampled individuals | Extracting spatio-temporal ancestral relationships | Calculating distances and other statistics using the sf package
Standard SLiM and msprime tree sequences8 days ago
SLiM tree sequences | msprime tree sequences | Spatial SLiM tree sequences | Conclusion
Traditional, non-spatial models8 days ago
Extracting parameters from a model or tree sequences | Named samples
Tree-sequence processing and statistics8 days ago
Setting up Python environment | Model of Neanderthal introgression into Eurasians | Scheduling of sampling events | Named samples | R interface for tskit and pyslim | Loading and processing tree-sequence output files | Visualisation of trees and tree-sequences | Accessing tskit functionality directly | Calculating f-statistics | Estimating Neanderthal ancestry proportions | ADMIXTOOLS analyses | VCF output | Other statistics | $F_{st}$ | Tajima's $D$ | Diversity | Divergence | More information
Demes on a regular spatial grid6 months ago
Simple two-dimensional grid model | Population grid on a real geographic landscape | More customized spatial model
Extracting true ancestry tracts6 months ago
Demographic model | Tree sequence simulation | Extracting ancestry tracts | Summaries of ancestral proportions | "Chromosome painting" of ancestry tracts | Average tract lengths: | Distribution of ancestry tract lengths | Pure msprime tree sequence
Simulations using SLiM and msprime engines6 months ago
Detecting gene flow from msprime and SLiM tree sequences | Defining a model | Compiling the model and simulating data | Comparing the outputs of msprime and SLiM runs of a slendr model | Comparing results of population genetics statistics | Computing allele frequency spectra | Model definition | Conclusion
Basic overview of the admixr package7 months ago
Introduction | Installation | A note about EIGENSTRAT format | ind file | snp file (first 3 lines) | geno file (first 3 lines) | Philosophy of admixr | Internal representation of EIGENSTRAT data | D statistic | f4 statistic | f4-ratio statistic | f3 statistic | qpWave and qpAdm | qpWave | qpAdm | Grouping samples | Counting present/missing SNPs | Data filtering | Filtering based on a BED file | Filtering out potential ancient DNA damage SNPs | Merging EIGENSTRAT datasets | Examining log information
Running qpAdm models with the 'rotation' strategy7 months ago
Introduction | qpAdm "rotation" | Implementation in admixr | Concrete example | Performing exhaustive search by rotating sources/outgroups | Examining and filtering fitted models | Conclusions | Final remarks