Class for generating a SLiM input file
Attributes
| initialization_file | |
| recomb_rates | |
| seed |
Methods
| add_chromosome_element(el_type, start, end) | Adds a chromosomal element to the simulation |
| add_element_type(nickname, mut_types) | Adds a genomic element type to the simulation |
| add_initialization_file(file) | Adds an initialization file to start the population at a certain state |
| add_interval_recomb_rate(start, end, recomb_rate) | Adds a specific recombination rate to a given interval. |
| add_mutation_type(nickname, h, dfe_type[, ...]) | Adds a mutation type to the simulation |
| add_output_option(generation, output_type[, ...]) | Adds an output option the the simulation |
| add_population(pop_nickname, ...[, source_pop]) | Adds a new population to the simulation |
| add_predetermined_mutation(generation, ...) | Adds a predetermined mutation to a population at a given time |
| change_pop_migration(source_pop_nickname, ...) | Changes the migration rate from a source to a target population |
| change_pop_selfing(pop_nickname, ...) | Changes the selfing rate of a population |
| change_pop_size(pop_nickname, ...) | Changes the size of a population starting at a given generation |
| set_gene_conversion(fraction, mean_stretch) | Adds gene conversion to the simulation |
| set_random_seed(seed) | Sets the seed for the random number generator |
| write_input_file(file[, max_size]) | Writes the input file for the SLiM simulation |
Instantiates an object capable of generating a SLiM file.
Also adds a single neutral mutation type as m1 (nickname ‘neutral’)
| Parameters: | mu : float
generations : int
chrom_length : int
recomb_rate : float
starting_pop_size : int
starting_pop_nickname : str
|
|---|
Adds a chromosomal element to the simulation
| Parameters: | el_type : str
start : int
end : int
|
|---|
Adds a genomic element type to the simulation
| Parameters: | nickname : str
mut_types : dict
|
|---|
Adds an initialization file to start the population at a certain state
| Parameters: | file : str
|
|---|
Adds a specific recombination rate to a given interval. Note that the remaining pieces of the chromosome, unspecified, will remain at the basal rate
| Parameters: | start : int
end : int
recomb_rate : float
|
|---|
Adds a mutation type to the simulation
| Parameters: | nickname : str
h : float
dfe_type : str
mean_s : float
shape_alpha : float
|
|---|
Adds an output option the the simulation
| Parameters: | generation : int
output_type : str
random_sample_pop : float
random_sample_size : int
mutation_track_type : str
|
|---|
Adds a new population to the simulation
| Parameters: | pop_nickname : str
generation_start : int
pop_size : int
source_pop : str
|
|---|
Adds a predetermined mutation to a population at a given time
| Parameters: | generation : int
mut_type : str
pos : int
pop_nickname : str
n_homo : int
n_hetero : int
partial : boolean
|
|---|
Changes the migration rate from a source to a target population
| Parameters: | source_pop_nickname : str
target_pop_nickname : str
generation_start : int
rate : float
|
|---|
Changes the selfing rate of a population
| Parameters: | pop_nickname : str
generation_start : int
new_rate : float
|
|---|
Changes the size of a population starting at a given generation
| Parameters: | pop_nickname : str
generation_start : int
new_size : int
|
|---|
Adds gene conversion to the simulation
| Parameters: | fraction : float
mean_stretch : int
|
|---|
Sets the seed for the random number generator
| Parameters: | seed : int
|
|---|
Writes the input file for the SLiM simulation
| Parameters: | file : str
max_size : str
|
|---|