Man pages for robjohnnoble/demonanalysis
Analysis and plotting of demon data

add_columnsAdd derived variables to a dataframe
add_relative_timeAdd relative time column to a dataframe, and diversity at the...
adjust_mig_rateTwo-dimensional adjusted migration rate
all_outputCreate a composite dataframe for a batch of simulations,...
all_statusesReturn the final line (or an earlier line) of every error log...
ancestryGet the ancestry of each genotype
apply_combinationsApply a function to every combination of some sequences
apply_combinations_parallelApply a function to every combination of some sequences...
combine_dfsCombine (and optionally process) data for one simulation
corCI_highFunction to return the upper bound of the confidence interval...
corCI_lowFunction to return the lower bound of the confidence interval...
cor_pvalFunction to return the p.value of a two.sided test, using the...
cor_summaryCorrelations between diversities and "outcome"
count_driversCount the number of ancestors of a node in a phylogenetic...
count_parametersCount the number of parameters in a parameter file in a...
count_seedsCount the number of rows in a dataframe per parameter set.
create_plots_batchCreate image files for every simulation in a batch
dataExample dataframe combining output from many simulations
depth_wait_cor_summaryCorrelations between diversities and "waiting_time" for...
disp_rateExpected disperal speed for migration model
disp_rate_demonDemon dispersal rate
disp_rate_fissionDispersal speed for deme fission model
disp_rate_maxMaximum limit on dispersal speed for migration model
disp_rate_minMinimum limit on dispersal speed for migration model
dominantFind the latest-occurring mutation shared by at least a...
driver_geno_div_df_batchCreate a data frame of genotype diversity versus time for a...
driver_matrixExample relatedness matrix
driver_phyloExample phylogeny dataframe
filter_by_generation_or_numcellsFilter a data frame by Generation or NumCells
final_error_messageReturn the final line (or an earlier line) of an error log of...
final_generationReturn the final generation number of a simulation
find_correlationsGeneric function to find a correlation between two columns of...
first_inc_momentGet the first incomplete moment from frequency data
geno_distGet genotype frequencies in increasing order of size
get_cor_summaryGenerate summary dataframe of correlations with "outcome"
get_summaryGet summary metrics for one or more simulations
get_tree_from_matrixGet a "phylo" object from a relatedness matrix
get_Variable_cor_summaryGenerate summary dataframe of correlations with the variable...
get_Variable_cor_summary_FinalSizeGenerate summary dataframe of correlations with the variable...
get_wait_cor_summaryGenerate summary dataframe of correlations with...
grid_plotPlot a grid from a properly formatted data frame.
hist2Alternative to base hist function (using dplyr)
image_df_from_grid_fileRead a file containing grid states and process it into a...
inv_Simpson_indexCalculate the inverse Simpson index
lambdaExpected migration rate per deme
lambda_invasionRate of migration followed by survival
make_dirCreate a directory name including parameter names and values
make_image_file_nameCreate an image file name including parameter names and...
metricsCalculate average number of ancestors per node (n) and...
mig_rateDemon migration rate
muller_df_from_fileRead a "phylo" dataframe and process it for plotting
outputExample output dataframe
output_allele_countsExample allele counts dataframe
output_driver_allele_countsExample driver allele counts dataframe
output_driver_genotype_countsExample driver genotype counts dataframe
output_genotype_countsExample genotype counts dataframe
output_passengersgridExample grid
parameter_names_and_valuesFind the names and final values of parameters that were...
parametersExample parameters file
plot_all_chartsPlot a set of charts representing allele frequencies and...
plot_allelecount_vs_origintimePlot allele count versus origin time
plot_all_imagesCreate a set of grid and Muller plots
plot_corr_outcome_versus_periodPlot correlation between outcome and diversity, versus...
plot_corr_waiting_time_versus_depthPlot correlations between waiting time and diversity measured...
plot_corr_waiting_time_versus_start_sizePlot correlation between waiting time and diversity, versus...
plot_countsPlot counts of variant allele frequencies on linear scales
plot_cum_distPlot cumulative density of variant allele frequencies versus...
plot_curves_facetedPlot relationship between two variables faceted by K (rows)...
plot_driver_geno_divPlot genotype diversity versus time
plot_figure2Create a set of plots for Figure 2
plot_first_inc_momentPlot first incomplete moment from frequency data
plot_logit_freq_distPlot a histogram of variant allele frequencies with logit...
plot_mutation_wavesPlot numbers of cells with n mutations for each value of n
plot_R2_verus_sweep_metricPlot R-squared versus mean sweep metric
plot_scatter_outcome_diversityExample scatter plots of outcome versus diversity
plot_scatter_waiting_time_diversityExample scatter plots of waiting time versus diversity
plot_trajectories_by_diversityPlot growth trajectories, coloured by driver edge diversity
plot_trajectories_by_KPlot growth trajectories, coloured by K
plot_treePlot a phylogenetic tree
plot_viol_sweep_metricViolin plot of mean sweep metric (genotype frequency...
prob_successful_migrationFor cells at the boundary of a population, find mean...
quadratic_diversityRao's quadratic diversity, using a binary distance measure,...
read_delim_specialAttempt to read a tab-delimited file and return the contents,...
reflect_on_diagonalReflect a matrix on its leading diagonal (useful if distance...
refresh_data_filesDon't use this; it's just for refreshing data files on Rob's...
rhoProbability of fixation in a Moran process
sum_dfExample summary data
summarySummary data for many simulations
sweep_sequenceCalculate how the genotype frequency distribution changes...
sweep_timesFind generations at which sweeps (or at least partial sweeps)...
T_grow_jMoran growth waiting time
time_expectedMigration waiting time (any population size)
time_fixationConditional fixation time
time_migrationMigration waiting time from fully occupied deme
trans_rateMoran process transition rates
wait_cor_summaryCorrelations between diversities and "waiting_time"
robjohnnoble/demonanalysis documentation built on June 30, 2020, 12:47 a.m.