summaryrefslogtreecommitdiff
path: root/examples/phylogenies/dating_evolutionary_events.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/phylogenies/dating_evolutionary_events.py')
-rw-r--r--examples/phylogenies/dating_evolutionary_events.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/phylogenies/dating_evolutionary_events.py b/examples/phylogenies/dating_evolutionary_events.py
index 98cd2b3..210000a 100644
--- a/examples/phylogenies/dating_evolutionary_events.py
+++ b/examples/phylogenies/dating_evolutionary_events.py
@@ -8,8 +8,8 @@ nw = """
,Mmu_001),((Hsa_004,Ptr_004),Mmu_004))),(Ptr_002,(Hsa_002,Mmu_002))));
"""
t = PhyloTree(nw)
-print "Original tree:",
-print t
+print("Original tree:\n")
+print(t)
#
# /-Dme_001
# /--------|
@@ -59,11 +59,11 @@ age2name = {
}
event1= t.get_common_ancestor("Hsa_001", "Hsa_004")
event2=t.get_common_ancestor("Hsa_001", "Hsa_002")
-print
-print "The duplication event leading to the human sequences Hsa_001 and "+\
- "Hsa_004 is dated at: ", age2name[event1.get_age(species2age)]
-print "The duplication event leading to the human sequences Hsa_001 and "+\
- "Hsa_002 is dated at: ", age2name[event2.get_age(species2age)]
+print()
+print("The duplication event leading to the human sequences Hsa_001 and "+\
+ "Hsa_004 is dated at: ", age2name[event1.get_age(species2age)])
+print("The duplication event leading to the human sequences Hsa_001 and "+\
+ "Hsa_002 is dated at: ", age2name[event2.get_age(species2age)])
# The duplication event leading to the human sequences Hsa_001 and Hsa_004
# is dated at: primates
#