Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from trick file format to YAML #74

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contrib/rapidyaml/rapidyaml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
// resulting in <stdarg.h> missing in arm-none-eabi-g++
// https://github.com/biojppm/rapidyaml/issues/193
#include <stdarg.h>

#include <charconv>



Expand Down
9 changes: 0 additions & 9 deletions examples/CMakeLists.txt

This file was deleted.

88 changes: 0 additions & 88 deletions examples/aa.dawg

This file was deleted.

145 changes: 145 additions & 0 deletions examples/aa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Test aa evaluationary models

sim:
reps: 10
seed: 420

tree:
initial:
scale: 0.666
abc:
tree: (A:0.3, B:0.2)C;
dec:
tree: (D:0.3, E:0.2)C;
fgc:
tree: (F:0.3, G:0.2)C;
hic:
tree: (H:0.3, I:0.2)C;
jkc:
tree: (J:0.3, K:0.2)C;
lmc:
tree: (L:0.3, M:0.2)C;
noc:
tree: (N:0.3, O:0.2)C;
pqc:
tree: (P:0.3, Q:0.2)C;

parts:
initial:
length: 10000
seq: AATGCTTTTTTTTTTGGCCAAAATTTTGGGGAAATTGGCCCCCCACACACACATTTTTATATATGG
code: 2

rules:
initial:
indel:
model:
ins: GEO
del: POWER-LAW
params:
ins: 1.039000, 50
del: 1.039000, 50
rate:
ins: 0.01
del: 0.01
max:
ins: 50.0
del: 50.0
aagtr:
subst:
model: aagtr
freqs: [0.443, 0.3113, 0.3, 0.2, 0.888, 0.6520, 0.9112, 0.3323, 0.2998,
0.7171, 0.443, 0.3113, 0.3003, 0.211, 0.5588, 0.43520, 0.487112,
0.76323, 0.1998, 0.44171]
params: [100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323,
48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520,
49.9112, 22.3323, 48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2,
40.888, 3.6520, 49.9112, 22.3323, 48.2998, 33.7171, 100.443,
49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323, 48.2998,
33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112,
22.3323, 48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888,
3.6520, 49.9112, 22.3323, 48.2998, 33.7171, 100.443, 49.3113,
66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323, 48.2998, 33.7171,
100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323,
48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520,
49.9112, 22.3323, 48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2,
40.888, 3.6520, 49.9112, 22.3323, 48.2998, 33.7171, 100.443,
49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323, 48.2998,
33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112,
22.3323, 48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888,
3.6520, 49.9112, 22.3323, 48.2998, 33.7171, 100.443, 49.3113,
66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323, 48.2998, 33.7171,
100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323,
48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520,
49.9112, 22.3323, 48.2998, 33.7171, 100.443, 49.3113, 66.3, 10.2,
40.888, 3.6520, 49.9112, 22.3323, 48.2998, 33.7171, 100.443,
49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112, 22.3323, 48.2998,
33.7171, 100.443, 49.3113, 66.3, 10.2, 40.888, 3.6520, 49.9112,
22.3323, 48.2998, 33.7171]
rate.model: ZERO
eq:
subst:
model: equ
rate.model: CONST
lg:
subst:
model: lg
rate.model: ZERO
wag:
subst:
model: wag
rate:
model: GAMMA
params: 8.0
wagstar:
subst:
model: wagstar
rate.model: CONST
jttdcmut:
subst:
model: jtt-dcmut
rate.model: ZERO
dayhoff:
subst:
model: dayhoff-dcmut
rate.model: ZERO
molphy:
subst:
model: molphy
rate.model: GAMMA

regions:
initial:
tree: initial
part: initial
rule: initial
segment: 0
aagtr:
tree: abc
rule: aagtr
equ:
tree: dec
rule: eq
segment: 1
lg:
tree: fgc
rule: lg
segment: 2
wag:
tree: hic
rule: wag
segment: 1
wagstar:
tree: jkc
rule: wagstar
jtt:
tree: lmc
rule: jttdcmut
segment: 1
dayhoff:
tree: noc
rule: dayhoff
segment: 0
molphy:
tree: pqc
rule: molphy
10 changes: 0 additions & 10 deletions examples/basic-dna-2.dawg

This file was deleted.

35 changes: 0 additions & 35 deletions examples/basic-dna-zero-rate.dawg

This file was deleted.

33 changes: 33 additions & 0 deletions examples/basic-dna-zero-rate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Example: Simulate DNA evolution along a tree
# See readme.txt for an explanation on the structure of an input file.
# Simulation results are sent to stdout.

sim:
reps: 10 # Simulate 10 alignments

# Use a constant tree.
tree:
man_mon_daw:
tree: ((Man:0.1,Monkey:0.1):0.2,Dawg:0.25);

parts:
part1:
length: 1000 # Simulate a sequence that is 1000 nt long

# Use an HKY substitution model with a transition of 2.0 and a transversion rate
# of 1.0. Allele frequencies are 0.3 A, 0.2 C, 0.2 G, and 0.3 T.

rules:
rule1:
subst:
model: HKY
params: [2.0, 1.0]
freqs: [0.3, 0.2, 0.2, 0.3]
rate:
model: ZERO

regions:
region1:
tree: man_mon_daw
rule: rule1
part: part1
35 changes: 0 additions & 35 deletions examples/basic-dna.dawg

This file was deleted.

Loading