class Wgsim::Mutate::Core

Included Modules

Defined in:

wgsim/mutate/core.cr

Constructors

Instance Method Summary

Instance methods inherited from module Wgsim::CoreUtils

perform_substitution(base : UInt8, i : Int) : UInt8 perform_substitution, reverse_complement(sequence : Slice(UInt8)) : Slice(UInt8) reverse_complement

Constructor Detail

def self.new(substitution_rate : Float64, insertion_rate : Float64, deletion_rate : Float64, insertion_extension_probability : Float64, deletion_extension_probability : Float64, seed : UInt64 | Nil = nil) #

[View source]

Instance Method Detail

def delete_nucleotide(n : UInt8) : RefBase #

[View source]
def deletion_extension_probability : Float64 #

[View source]
def deletion_extension_probability=(deletion_extension_probability : Float64) #

[View source]
def deletion_rate : Float64 #

[View source]
def deletion_rate=(deletion_rate : Float64) #

[View source]
def generate_insertion : Slice(UInt8) #

Generate insertion based on given size and indel extension probability


[View source]
def insert_nucleotide(n : UInt8) : RefBase #

[View source]
def insertion_extension_probability : Float64 #

[View source]
def insertion_extension_probability=(insertion_extension_probability : Float64) #

[View source]
def insertion_rate : Float64 #

[View source]
def insertion_rate=(insertion_rate : Float64) #

[View source]
def log_deletion : Nil #

[View source]
def log_insertion(n, ins) : Nil #

[View source]
def log_substitution(n, nn) : Nil #

[View source]
def nochange_nucleotide(n : UInt8) : RefBase #

[View source]
def rand(*args, **options) #

[View source]
def rand(*args, **options, &) #

[View source]
def randn(*args, **options) #

[View source]
def randn(*args, **options, &) #

[View source]
def seed : UInt64 | Nil #

[View source]
def seed=(seed : UInt64 | Nil) #

[View source]
def simulate_mutations(sequence : Slice(UInt8)) : Tuple(RefSeq, Array(EventRecord)) #

[View source]
def substitute_nucleotide(n : UInt8) : RefBase #

[View source]
def substitution_rate : Float64 #

[View source]
def substitution_rate=(substitution_rate : Float64) #

[View source]