Skip to contents

This property enables/disables the infinite sites model.

Details

When it is TRUE, the infinite sites model is enabled and new mutations are exclusively placed in mutation-free loci.

Examples

# create a demonstrative mutation engine
m_engine <- MutationEngine(setup_code = "demo")
#> 
 [█---------------------------------------] 0% [00m:00s] Loading context index                                

 [████████████████████████████████████████] 100% [00m:00s] Context index loaded                               

#> 
 [█---------------------------------------] 0% [00m:00s] Loading RS index                                     

 [████████--------------------------------] 19% [00m:01s] Loading RS index                                    

 [██████████████████----------------------] 43% [00m:02s] Loading RS index                                    

 [███████████████████████████-------------] 66% [00m:03s] Loading RS index                                    

 [███████████████████████████████████-----] 85% [00m:04s] Loading RS index                                    

 [████████████████████████████████████████] 100% [00m:04s] RS index loaded                                    

#> 
 [█---------------------------------------] 0% [00m:00s] Loading germline                                     

 [████████████████████████████████████████] 100% [00m:00s] Germline loaded                                    


# the infinite sites model is enabled by default
m_engine$infinite_sites_model
#> [1] TRUE

# the infinite sites model can be disabled
m_engine$infinite_sites_model <- FALSE

m_engine$infinite_sites_model
#> [1] FALSE