Skip to content

Commit 10569de

Browse files
committed
Fix tutorials/chromo and add a test.
1 parent c4efd6f commit 10569de

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

tutorials/chromo/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,14 @@ max_chromo = 26
296296
{% endsnippet %}
297297

298298
Now we get the observed chromosome counts from a tab-delimited file.
299-
```
300-
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
301-
```
299+
{% snippet scripts/ChromEvol_simple.Rev %}
300+
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
301+
{% endsnippet %}
302302
Finally, we initialize a variable for our vector of moves and monitors.
303-
```
303+
{% snippet scripts/ChromEvol_simple.Rev %}
304304
moves = VectorMoves()
305305
monitors = VectorMonitors()
306-
```
306+
{% endsnippet %}
307307

308308
### The Chromosome Evolution Model
309309

tutorials/chromo/scripts/BiChroM.Rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ phylogeny <- readBranchLengthTrees("data/aristolochia.tree")[1]
5252
max_chromo = 26
5353

5454
# Get the chromosome counts from a tab-delimited file.
55-
chromo_data = readCharacterDataDelimited("data/aristolochia_bichrom_counts.tsv", stateLabels=2*(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
55+
chromo_data = readCharacterDataDelimited("data/aristolochia_bichrom_counts.tsv", stateLabels=2*(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
5656

5757

5858
#########################

tutorials/chromo/scripts/ChromEvol_clado.Rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ phylogeny <- readBranchLengthTrees("data/aristolochia.tree")[1]
3737
max_chromo = 26
3838

3939
# Get the chromosome counts from a tab-delimited file.
40-
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
40+
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
4141

4242

4343
#########################

tutorials/chromo/scripts/ChromEvol_joint.Rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ monitors = VectorMonitors()
3535
max_chromo = 26
3636

3737
# Get the chromosome counts from a tab-delimited file.
38-
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
38+
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
3939

4040
# Get the DNA sequence alignment for the matK chloroplast gene.
4141
dna_seq = readDiscreteCharacterData("data/aristolochia_matK.fasta")

tutorials/chromo/scripts/ChromEvol_simmap.Rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ phylogeny <- readBranchLengthTrees("data/aristolochia.tree")[1]
3434
max_chromo = 26
3535

3636
# Get the chromosome counts from a tab-delimited file.
37-
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
37+
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
3838

3939

4040
#########################

tutorials/chromo/scripts/ChromEvol_simple.Rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ phylogeny <- readBranchLengthTrees("data/aristolochia.tree")[1]
3535
max_chromo = 26
3636

3737
# Get the chromosome counts from a tab-delimited file.
38-
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
38+
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
3939

4040

4141
#########################

tutorials/chromo/scripts/ChromoSSE_simple.Rev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ phylogeny <- readTrees("data/aristolochia-bd.tree")[1]
3535
max_chromo = 26
3636

3737
# Get the chromosome counts from a tab-delimited file.
38-
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", headers=FALSE)
38+
chromo_data = readCharacterDataDelimited("data/aristolochia_chromosome_counts.tsv", stateLabels=(max_chromo + 1), type="NaturalNumbers", delimiter="\t", header=FALSE)
3939

4040

4141
#########################

tutorials/chromo/tests.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts/ChromEvol_simple.Rev

0 commit comments

Comments
 (0)