dot.dot 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. // Original source: http://www.graphviz.org/content/lion_share
  2. ##"A few people in the field of genetics are using dot to draw "marriage node diagram" pedigree drawings. Here is one I have done of a test pedigree from the FTREE pedigree drawing package (Lion Share was a racehorse)." Contributed by David Duffy.
  3. ##Command to get the layout: "dot -Tpng thisfile > thisfile.png"
  4. digraph Ped_Lion_Share {
  5. # page = "8.2677165,11.692913" ;
  6. ratio = "auto" ;
  7. mincross = 2.0 ;
  8. label = "Pedigree Lion_Share" ;
  9. "001" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  10. "002" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  11. "003" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  12. "004" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  13. "005" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  14. "006" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  15. "007" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  16. "009" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  17. "014" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  18. "015" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  19. "016" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  20. "ZZ01" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  21. "ZZ02" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  22. "017" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  23. "012" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  24. "008" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  25. "011" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  26. "013" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  27. "010" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  28. "023" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  29. "020" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  30. "021" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  31. "018" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  32. "025" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  33. "019" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  34. "022" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  35. "024" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  36. "027" [shape=circle , regular=1,style=filled,fillcolor=white ] ;
  37. "026" [shape=box , regular=1,style=filled,fillcolor=white ] ;
  38. "028" [shape=box , regular=1,style=filled,fillcolor=grey ] ;
  39. "marr0001" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  40. "001" -> "marr0001" [dir=none,weight=1] ;
  41. "007" -> "marr0001" [dir=none,weight=1] ;
  42. "marr0001" -> "017" [dir=none, weight=2] ;
  43. "marr0002" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  44. "001" -> "marr0002" [dir=none,weight=1] ;
  45. "ZZ02" -> "marr0002" [dir=none,weight=1] ;
  46. "marr0002" -> "012" [dir=none, weight=2] ;
  47. "marr0003" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  48. "002" -> "marr0003" [dir=none,weight=1] ;
  49. "003" -> "marr0003" [dir=none,weight=1] ;
  50. "marr0003" -> "008" [dir=none, weight=2] ;
  51. "marr0004" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  52. "002" -> "marr0004" [dir=none,weight=1] ;
  53. "006" -> "marr0004" [dir=none,weight=1] ;
  54. "marr0004" -> "011" [dir=none, weight=2] ;
  55. "marr0005" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  56. "002" -> "marr0005" [dir=none,weight=1] ;
  57. "ZZ01" -> "marr0005" [dir=none,weight=1] ;
  58. "marr0005" -> "013" [dir=none, weight=2] ;
  59. "marr0006" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  60. "004" -> "marr0006" [dir=none,weight=1] ;
  61. "009" -> "marr0006" [dir=none,weight=1] ;
  62. "marr0006" -> "010" [dir=none, weight=2] ;
  63. "marr0007" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  64. "005" -> "marr0007" [dir=none,weight=1] ;
  65. "015" -> "marr0007" [dir=none,weight=1] ;
  66. "marr0007" -> "023" [dir=none, weight=2] ;
  67. "marr0008" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  68. "005" -> "marr0008" [dir=none,weight=1] ;
  69. "016" -> "marr0008" [dir=none,weight=1] ;
  70. "marr0008" -> "020" [dir=none, weight=2] ;
  71. "marr0009" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  72. "005" -> "marr0009" [dir=none,weight=1] ;
  73. "012" -> "marr0009" [dir=none,weight=1] ;
  74. "marr0009" -> "021" [dir=none, weight=2] ;
  75. "marr0010" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  76. "008" -> "marr0010" [dir=none,weight=1] ;
  77. "017" -> "marr0010" [dir=none,weight=1] ;
  78. "marr0010" -> "018" [dir=none, weight=2] ;
  79. "marr0011" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  80. "011" -> "marr0011" [dir=none,weight=1] ;
  81. "023" -> "marr0011" [dir=none,weight=1] ;
  82. "marr0011" -> "025" [dir=none, weight=2] ;
  83. "marr0012" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  84. "013" -> "marr0012" [dir=none,weight=1] ;
  85. "014" -> "marr0012" [dir=none,weight=1] ;
  86. "marr0012" -> "019" [dir=none, weight=2] ;
  87. "marr0013" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  88. "010" -> "marr0013" [dir=none,weight=1] ;
  89. "021" -> "marr0013" [dir=none,weight=1] ;
  90. "marr0013" -> "022" [dir=none, weight=2] ;
  91. "marr0014" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  92. "019" -> "marr0014" [dir=none,weight=1] ;
  93. "020" -> "marr0014" [dir=none,weight=1] ;
  94. "marr0014" -> "024" [dir=none, weight=2] ;
  95. "marr0015" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  96. "022" -> "marr0015" [dir=none,weight=1] ;
  97. "025" -> "marr0015" [dir=none,weight=1] ;
  98. "marr0015" -> "027" [dir=none, weight=2] ;
  99. "marr0016" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  100. "024" -> "marr0016" [dir=none,weight=1] ;
  101. "018" -> "marr0016" [dir=none,weight=1] ;
  102. "marr0016" -> "026" [dir=none, weight=2] ;
  103. "marr0017" [shape=diamond,style=filled,label="",height=.1,width=.1] ;
  104. "026" -> "marr0017" [dir=none,weight=1] ;
  105. "027" -> "marr0017" [dir=none,weight=1] ;
  106. "marr0017" -> "028" [dir=none, weight=2] ;
  107. }