Params
Parameter dataclasses and utilities.
AssayParams
dataclass
Parameters for assay data generation.
Source code in snailz/params.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
__post_init__()
Fill in missing dates and convert to standard format.
Source code in snailz/params.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
GenomeParams
dataclass
Gene sequence parameters.
Source code in snailz/params.py
69 70 71 72 73 74 75 76 77 |
|
GridParams
dataclass
Invasion percolation parameters.
Source code in snailz/params.py
80 81 82 83 84 85 86 |
|
SampleParams
dataclass
Sampled snail parameters.
Source code in snailz/params.py
89 90 91 92 93 94 95 96 |
|
StaffParams
dataclass
Staff parameters.
Source code in snailz/params.py
99 100 101 102 103 104 |
|
export_params(options)
Export parameter files.
This function is used to write default parameter files when the package is installed.
- options.outdir: directory to write to.
Source code in snailz/params.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
load_params(cls, filename)
Load parameters from file and return as object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cls
|
type
|
class to instantiate. |
required |
filename
|
str
|
file containing JSON representation of parameters. |
required |
Returns:
Type | Description |
---|---|
object
|
Populated instance of the given class. |
Source code in snailz/params.py
123 124 125 126 127 128 129 130 131 132 133 |
|